30.06.2013 Views

File Management - IBM

File Management - IBM

File Management - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

22 <strong>File</strong> <strong>Management</strong> V4R5<br />

LVLCHK(*NO) causes the system to omit the level identifier check when the file<br />

opens. For example, suppose that you add a field to the end of a record format in<br />

a database file, but the program does not use the new field. You can enter the<br />

Override with Database <strong>File</strong> (OVRDBF) command with LVLCHK(*NO) to enable<br />

the program to run without compiling again.<br />

There are several CL commands available to you to check the changes. You can use<br />

the Display <strong>File</strong> Field Description (DSPFFD) command to display the record-level<br />

and field-level descriptions or, if you have the source entry utility (SEU), you can<br />

display the source file containing the DDS for the file. You can display the format<br />

level identifier that is defined in the file by using the Display <strong>File</strong> Description<br />

(DSPFD) or the DSPFFD commands. The format level identifier which was used<br />

when the program was created can be displayed by the Display Program<br />

References (DSPPGMREF) command.<br />

There are also some changes to a file description that will not cause an error when<br />

the file opens. These happen because the record format identifiers did not change<br />

or because your program does not use the changed formats. You can add or<br />

remove formats from a file without affecting existing programs that do not use the<br />

added or deleted formats.<br />

Even though the level identifier does not change, some DDS functions that you<br />

add or delete could require changes in the logic of your program. You should<br />

review the functions you added or deleted to determine whether the program logic<br />

requires changes.<br />

Normally, the use of LVLCHK(*YES) is a good file integrity practice. The use of<br />

LVLCHK(*NO) can produce unpredictable results.<br />

Displaying information about open files<br />

You can display information about your open files in two ways:<br />

v Type dspjob option(*opnf) on any command line and press Enter.<br />

v Type wrkjob option(*opnf) on any command line and press Enter.<br />

The following screen displays:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!