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.

Program A (in user default activation group)<br />

Call Level 2 OVRPTRF FILE(YYY) FOLD(*YES) OVRSCOPE(*CALLLVL)<br />

CALL PGM B<br />

Call Level 3 Program B (in activation group 8)<br />

OVRPTRF FILE(ZZZ) TOFILE(YYY) DEV(P1) LPI(6) +<br />

OVRSCOPE(*CALLLVL)<br />

CALL PGM C<br />

Call Level 4 Program C (in user default activation group)<br />

OVRPTRF FILE(ZZZ) CPI(12) OVRSCOPE(*CALLLVL)<br />

CALL PGM D<br />

Call Level 5 Program D (in activation group 21)<br />

OVRPTRF FILE(YYY) DEV(P2) OVRSCOPE(*JOB)<br />

CALL PGM E<br />

Call Level 6 Program E (in activation group 21)<br />

OVRPTRF FILE(ZZZ) LPI(12) OVRSCOPE(*ACTGRPDFN)<br />

CALL PGM F<br />

Call Level 7 Program F (in activation group 8)<br />

OVRPTRF FILE(ZZZ) LPI(9) OVRSCOPE(*CALLLVL)<br />

CALL PGM G<br />

Call Level 8 Program G (in activation group 8)<br />

OVRPTRF FILE(ZZZ) DUPLEX(*NO) +<br />

OVRSCOPE(*ACTGRPDFN)<br />

CALL PGM H<br />

Call Level 9 Program H (in activation group 8)<br />

OVRPTRF FILE(YYY) LPI(5) OVRSCOPE(*ACTGRPDFN)<br />

CALL PGM I<br />

Call Level 10 Program I (in activation group 8)<br />

OPEN FILE(ZZZ)<br />

Figure 6. Example of Override Processing in Multiple Activation Groups<br />

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

When program I opens file ZZZ, file ZZZ has the following attributes:<br />

CPI(12)<br />

From call level 4<br />

FILE(YYY)<br />

From call level 3<br />

LPI(5) From call level 9<br />

FOLD(*YES)<br />

From call level 2<br />

DEV(P2)<br />

From call level 5<br />

The system processes the overrides in the following order:<br />

1. <strong>File</strong> ZZZ opens at call level 10. The system looks for any overrides issued at<br />

call level 10 that were scoped to the call level. There are no such overrides.<br />

2. The system searches the next previous call level (level 9) for applicable<br />

overrides that were scoped to the call level. There are no such overrides. (The<br />

override issued in call level 9 is for file YYY and does not apply.)<br />

3. The system searches call level 8 for applicable overrides that were scoped to<br />

the call level. There is an override for file ZZZ; however, it is scoped to the

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

Saved successfully!

Ooh no, something went wrong!