30.06.2013 Views

File Management - IBM

File Management - IBM

File Management - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Applying OVRPRTF with *PRTF: scenario<br />

You can apply the OVRPRTF command to all printer files by specifying *PRTF as<br />

the file name.<br />

The OVRPRTF command with *PRTF is applied if there is no other override for the<br />

printer file name at the same call level. The following example shows how *PRTF<br />

works:<br />

Override 1 OVRPRTF FILE(OUTPUT) COPIES(6) +<br />

LPI(6)<br />

Override 2 OVRPRTF FILE(*PRTF) COPIES(1) +<br />

LPI(8)<br />

CALL PGM(X)<br />

When program X opens the file OUTPUT, the opened file has the following<br />

attributes:<br />

COPIES(6)<br />

From Override 1<br />

LPI(6) From Override 1<br />

When program X opens the file PRTOUT (or any printer file other than OUTPUT),<br />

the opened file has the following attributes:<br />

COPIES(1)<br />

From Override 2<br />

LPI(8) From Override 2<br />

Applying OVRPRTF with *PRTF from multiple call levels:<br />

scenario<br />

The following example shows how printer-file overrides are applied from multiple<br />

call levels by using the *PRTF value.<br />

Program A<br />

Override 1 OVRPRTF FILE(*PRTF) COPIES(1)<br />

Override 2 OVRPRTF FILE(PRT2) COPIES(2)<br />

Override 3 OVRPRTF FILE(PRT4) COPIES(2)<br />

CALL PGM(B)<br />

Program B<br />

Override 4 OVRPRTF FILE(*PRTF) LPI(4)<br />

Override 5 OVRPRTF FILE(PRT3) LPI(8)<br />

Override 6 OVRPRTF FILE(PRT4) LPI(8)<br />

CALL PGM(X)<br />

When program X opens the file PRT1, the opened file has the following attributes:<br />

COPIES(1)<br />

From Override 1<br />

LPI(4) From Override 4<br />

Because no specific overrides are found for PRT1, *PRTF overrides (1 and 4) are<br />

applied.<br />

When program X opens the file PRT2, the opened file has the following attributes:

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

Saved successfully!

Ooh no, something went wrong!