Summary of runtime considerations for processing database files

This topic shows the parameters that control your program's use of the database file member, where these parameters can be specified.

For parameters that can be specified in more than one place, the system merges the values. The Override with Database File (OVRDBF) command parameters take precedence over program parameters, and Open Database File (OPNDBF) or Open Query File (OPNQRYF) command parameters take precedence over create or change file parameters.
Note: Any override parameters other than TOFILE, MBR, LVLCHK, SEQONLY, SHARE, WAITRCD, and INHWRT are ignored by the OPNQRYF command.

A table of database processing options specified on control language (CL) commands is shown here.

Table 1. Database processing options specified on CL commands
Description Parameter Command
CRTPF, CRTLF CHGPF, CHGLF OPNDBF OPNQRYF OVRDBF
File name FILE X X1 X X X
Library name   X X2 X X X
Member name MBR X   X X X
Member processing options OPTION     X X  
Record format lock state RCDFMTLCK         X
Starting file position after open POSITION         X
Program performs only sequential processing SEQONLY     X X X
Ignore keyed sequence access path ACCPTH     X    
Time to wait for file locks WAITFILE X X     X
Time to wait for record locks WAITRCD X X     X
Prevent overrides SECURE         X
Number of records to be transferred from auxiliary to main storage NBRRCDS         X
Share open data path with other programs SHARE X X     X
Format selector FMTSLR X3 X3     X
Force ratio FRCRATIO X X     X
Inhibit write INHWRT         X
Level check record formats LVLCHK X X     X
Expiration date checking EXPCHK         X
Expiration date EXPDATE X4 X4     X
Force access path FRCACCPTH X X      
Commitment control COMMIT     X X  
End-of-file delay EOFDLY         X
Duplicate key check DUPKEYCHK     X X  
Reuse deleted record space REUSEDLT X4 X4      
Coded character set identifier CCSID X4 X4      
Sort Sequence SRTSEQ X X   X  
Language identifier LANGID X X   X  

1 File name: The CHGPF and CHGLF commands use the file name for identification only. You cannot change the file name.

2 Library name: The CHGPF and CHGLF commands use the library name for identification only. You cannot change the library name.

3 Format selector: Used on the CRTLF and CHGLF commands only.

4 Expiration date, reuse deleted records, and coded character set identifier: Used on the CRTPF and CHGPF commands only.

A table of database processing options specified in programs is shown here.

Table 2. Database processing options specified in programs
Description RPG/400® Language COBOL/400® Language iSeries™ BASIC iSeries PL/I iSeries Pascal
File name X X X X X
Library name     X X X
Member name     X X X
Program record length X X X X X
Member processing options X X X X X
Record format lock state     X X  
Record formats the program will use X   X    
Clear physical file member of records   X X   X
Program performs only sequential processing X X   X X
Ignore keyed sequence access path X X X X X
Share open data path with other programs       X X
Level check record formats X X X X  
Commitment control X X   X  
Duplicate key check   X      
Note: Control language (CL) programs can also specify many of these parameters. See Table 1 for more information about the database processing options that can be specified on CL commands.