Download FDRMOVE FDRERASE - Innovation Data Processing
Transcript
FDRPAS GENSWAP JCL, ST A T E ME N T S , A N D EXA MPL E S GENSWAP MODEL DEFINITION RUN FDRPAS MONITOR AS A STARTED TASK 305.6 Monitor jobs can be executed as jobs or started tasks. If you are swapping thousands of volume at the same time (CONFIRMSWAP), the monitors can run as started tasks so all your initiators are not tied up. Substitute this JCL for the MONITOR PASPROC if you want the MONITOR to be a started task instead of a job. This replaces statements (22) through (26), (30) through (33), and (37) through (41) in the following sample procedure. Program FDREMCS is used to: 1. copy the MONITOR control statements from SYSUT1 to a SYSUT2 data set on DASD on the LPAR where the MONITOR task runs 2. issue a start command for the MONITOR on the LPAR where the MONITOR task runs FDREMCS then terminates and the output is returned to the originating LPAR or as directed by the /*ROUTE PRINT statement. The data set name on the SYSUT2 DD must include “&JOBNAME”. GENSWAP substitutes the job name from the JOB statement (statements (20), (28) and (35)) so that each started task inherits the same name as the FDREMCS job, ensuring that each of the started tasks generated from this GENSWAP procedure has a unique name. The SYSOUT from the MONITOR task stays on the LPAR where the MONITOR runs. //SUBMONA EXEC PGM=FDREMCS //STEPLIB DD DISP=SHR,DSN=fdrpas.loadlib (a) //SYSPRINT DD SYSOUT=* //SYSUDUMP DD SYSOUT=* //SYSUT1 DD * MONITOR TYPE=SWAP,DURATION=2,ALLOWPAV=YES MOUNT SWAPUNIT=&&&& /* //SYSUT2 DD UNIT=temp_unit_name, (b) // DSN=fdrpas.&JOBNAME.input.to.monitor, // DISP=(,CATLG),SPACE=(TRK,(1,1)), // DCB=BLKSIZE=3200 //SYSIN DD * COMMAND=S PASPROC,JOBNAME=&JOBNAME, LIB=fdrpas.loadlib, (d) IN=fdrpas.&JOBNAME.input.to.monitor, (e) D='(OLD,DELETE),FREE=CLOSE' /* (c) (a) fdrpas.loadlib – change this to the name of the FDRPAS load library. (b) temp_unit_name – change this to a valid unit name. (c) fdrpas.&JOBNAME.input.to.monitor – change this to a valid data set name. (&JOBNAME must be coded as a node in the data set name). This data set can be SMS-managed. (d) fdrpas.loadlib – change this to the name of your FDRPAS load library. (e) fdrpas.&JOBNAME.input.to.monitor – change this to a valid data set name (must be the same name as specified on the SYSUT2 statement). CHAPTER 305 – PAGE 305-11 –