File Management - IBM

File Management - IBM File Management - IBM

as400bks.rochester.ibm.com
from as400bks.rochester.ibm.com More from this publisher
30.06.2013 Views

60 File Management V4R5 Command 7 displays a merged override for file PRTB at level 2 with text descriptions of each keyword and parameter, as shown in Figure 8. The to-file is PRTA because of command 4, and the COPIES attribute is 3 because of command 1. Display Override with Printer File File ..............: PRTB Call level . . . ........: * Merged . . . . . . . . . . ...: *YES Keyword Value Name of file being overridden ..: FILE PRTB Overriding to printer file ...: TOFILE PRTA Library . ............: *LIBL Number of copies . . . . ....: COPIES 3 Press Enter to continue. F3=Exit F12=Cancel Figure 8. Override with Printer File Display Command 8 calls program B and creates the new call level 3. Command 9 causes an override at level 3 from file DSPE to file DSPF. An override done via a call to the QCMDEXC program takes the call level of the program that called the QCMDEXC program. Command 10 causes an override of file DBC to file DBD. Command 11 displays all overrides for file DBC from the job level to level 3, as shown in Figure 9 on page 61. The overrides specified by commands 10, 5, and 2 are displayed in keyword-parameter form. Observe that this form of the DSPOVR command shows all the overrides for the selected file, regardless of redirection. The three overrides that are shown would not be merged because of the name change at level 3.

Display All File Overrides Call level ...........: 3 Type options, press Enter. 5=Display override details Opt File Level Type Keyword Specifications _ DBC 3 DB TOFILE(*LIBL/DBD) _ 2 DB WAITFILE(60) _ 1 DB WAITFILE(*IMMED) F3=Exit F5=Refresh F12=Cancel Figure 9. All File Overrides Display (One File) Command 12 attempts to display all file overrides for file DBD from the job level to level 2. Because no overrides for file DBD exist at levels 1 or 2, no overrides are displayed, and the override-not-found escape message (CPF9842) is sent. Command 13 monitors for message CPF9842 on the preceding command. The monitor specifies no action to be taken, but will prevent a function check if the message is sent. Command 14 causes an override of the display file CREDITS to the display file DEBITS. The override is scoped to the activation group level of activation group 5. OVRSCOPE(*ACTGRPDFN) is the default. Command 15 displays the merged overrides at the job level to call level 3 for all files in keyword-parameter form, as shown in Figure 10 on page 62. File DBC is overridden to file DBD because of command 10 (commands 5 and 2 are therefore not effective). File DSPE is overridden to file DSPF because of command 9. File PRTB is overridden to file PRTA and COPIES(3) because of commands 4 and 1. File DBE is overridden to file DBF because of command 6. The file DEBITS overrides the file CREDITS because of command 14. Chapter 3. Using overrides 61

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

Command 7 displays a merged override for file PRTB at level 2 with text<br />

descriptions of each keyword and parameter, as shown in Figure 8. The to-file is<br />

PRTA because of command 4, and the COPIES attribute is 3 because of<br />

command 1.<br />

Display Override with Printer <strong>File</strong><br />

<strong>File</strong> ..............: PRTB<br />

Call level . . . ........: *<br />

Merged . . . . . . . . . . ...: *YES<br />

Keyword Value<br />

Name of file being overridden ..: FILE PRTB<br />

Overriding to printer file ...: TOFILE PRTA<br />

Library . ............: *LIBL<br />

Number of copies . . . . ....: COPIES 3<br />

Press Enter to continue.<br />

F3=Exit F12=Cancel<br />

Figure 8. Override with Printer <strong>File</strong> Display<br />

Command 8 calls program B and creates the new call level 3.<br />

Command 9 causes an override at level 3 from file DSPE to file DSPF. An override<br />

done via a call to the QCMDEXC program takes the call level of the program that<br />

called the QCMDEXC program.<br />

Command 10 causes an override of file DBC to file DBD.<br />

Command 11 displays all overrides for file DBC from the job level to level 3, as<br />

shown in Figure 9 on page 61. The overrides specified by commands 10, 5, and 2<br />

are displayed in keyword-parameter form. Observe that this form of the DSPOVR<br />

command shows all the overrides for the selected file, regardless of redirection.<br />

The three overrides that are shown would not be merged because of the name<br />

change at level 3.

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

Saved successfully!

Ooh no, something went wrong!