Previous Topic: Example G: PDS Members Containing List of RemotesNext Topic: Example I: Multiple PDS Members Containing List of Remotes with Different Options


Example H: Multiple PDS Members Containing List of Remotes

The following is an example of multiple PDS members containing list of remotes:

//REMOTES DD DSN=RMTLIST.DATA(RMTMEM1),DISP=SHR
//DD DSN=RMTLIST.DATA(RMTMEM2),DISP=SHR
Contents of RMTLIST.DATA(RMTMEM1):

BROWSE RMTLIST.DATA(RMTMEM1) Command ===> ******************** Top of Data ******** Y,Y,Y,Y,N,N,,'SEQ.DATA.SET.CASCADE.RMT' Y,Y,Y,Y,Y,N,,'SEQ.DATA.SET.NAME1.RMT' Y,Y,Y,Y,Y,N,,'SEQ.DATA.SET.NAME2.RMT' ******************* Bottom of Data ******

Contents of RMTLIST.DATA(RMTMEM2):

BROWSE RMTLIST.DATA(RMTMEM2) Command ===> ******************** Top of Data ******** Y,Y,Y,Y,Y,N,RMTNAME3,'PDS.DATA.SET' Y,Y,Y,Y,Y,N,RMTNAME4,'PDS.DATA.SET' ******************* Bottom of Data ******

Just like in the foreground process, you may choose to perform certain actions against the remote in multiple passes (indicate to do Register, Split, and Compose for Remote A on one line and indicate to do Execute and Install on another). This allows common action blocks to be split out from the various remotes and compiled once.