22.12.2012 Views

z/TPF Program Management - IBM

z/TPF Program Management - IBM

z/TPF Program 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.

Terminal Addr Index into Selective Activation Table<br />

------------- ------------------<br />

020103 0<br />

030567 0, 1<br />

002203 1<br />

292834 1, 2<br />

Figure 11. Selective activation index example<br />

Create a disable command<br />

92 z/<strong>TPF</strong> <strong>Program</strong> <strong>Management</strong><br />

Note: Figure 11 contains a list of ECB origins (terminal addresses) and the<br />

associated index into the selective activation table. In this example, ECBs<br />

originating on terminal 292834 can enter programs and files from loadsets<br />

Sally or Fred1.<br />

The user-defined disable command should stop an ECB from using a loadset. This<br />

message should remove the index pointer for the selective activation index entry,<br />

and if there are no more index entries that reference the specified loadset, remove<br />

the associated selective activation table entry (if there are no more ECB origins that<br />

reference a loadset, there is no longer a need to maintain the activation number in<br />

the selective activation table). If there are no more loadsets enabled to be used by<br />

the specified ECB origin, then the index entry can be removed. By removing the<br />

table index from the index entry, ECBs originating from that origin will not have the<br />

specified loadset's activation number in their activation number list (which is used<br />

by Enter / Back to determine which version of a program or file to use). If a file<br />

copy of the mapping structure is maintained, then it will have to be updated to<br />

reflect the disable request.<br />

Note: It is entirely possible that the loadset name will not be found in either table.<br />

The user-written disable code should handle this condition. This can occur<br />

for 2 reasons:<br />

1. The loadset was selectively activated, but never enabled. Here, a table<br />

entry for the loadset was never created.<br />

2. It is possible that the loadset was enabled; however, the mapping<br />

structure is not recorded on file (for example, the enables do not survive<br />

an IPL). If an IPL were to occur after the enable and before the disable<br />

request, the disable code would not find the loadset in the tables.

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

Saved successfully!

Ooh no, something went wrong!