Documente Academic
Documente Profesional
Documente Cultură
Comments Initial Updated as per SAMARTH Competency Model Changed the Errors that were Identified
Page 2 of 8
Table of Contents
1. THE REQUIREMENT STATEMENT: .......................................................................... 4 2. PROCESS STEPS: ..................................................................................................... 4 A. PROCESS STEPS FOR JCL EXERCISES: ............................................................... 4 1. JOB STATEMENT..................................................................................... 4 2. EXEC STATEMENT .................................................................................. 5 3. DD STATEMENT ..................................................................................... 5 B. PROCESS STEPS FOR JCL CASE STUDY ............................................................. 6 1. CASE STUDY 1 .............................................................................................. 6 2. CASE STUDY 2 .............................................................................................. 7 3. CASE STUDY 3 .............................................................................................. 7
Page 3 of 8
Page 4 of 8
2. EXEC STATEMENT Find out the JCL errors if any in the following statements. Correct the errors. 1. //STEPNAME EXEC PGM=PROGNAME,PARM=12/08/87 2. //COMPILE EXEC COBCLGPROC,TIME=,2 3. //EXEC PROGRAM=GA20, COND=ABEND 4. //EXEC PGM = SN50, REGION=513K 5. COMPILESTEP PROC=COBCLG,PARM=JANUARY. For the following questions, please write down the required JCL, and record your assumptions 1. Write down the EXEC statement with step name STEP4 to execute a program DREC. Pass values 3018 to the program as parameters. 2. Write down the EXEC statement with no step name to execute a program ENTRY. Program should not execute for more than 150 secs CPU time. 3. Write down the EXEC statement with step name FOR to execute a procedure PROC480. CPU time to be accounted to DB1528. 4. Write down the EXEC statement with step name STEP6 to execute a program DISKUTIL. The job step should be bypassed if STEP4 gets a return code less than 4. 3. DD STATEMENT Find out the JCL errors if any in the following DD statements and correct the errors: 1. 2. 3. 4. //OUT1 DD DSN=ABC.TXNS,DISP=SHR //DD SYSOUT=* //INDD DD DSN=LTVS.SOURCE.COBOL.DISP=(DELT.OLD) //XYZ DD DSN=IOB.RAS.COBOL,DISP=(,CATLG), //UNIT=3380, VOL=SER=TATA01, SPACE=(TRK,(1,1,5) //DCB=(RECFM=FB,LRECL=80,BLKSIZE=6160)
1. Write the DD statement to allocate a new PDS (partitioned data set) called UTI-PAY-COBOL to store 80 source programs (average size of code is 1000 lines) on a disk pack DEV001. Allocation should be made only in terms of blocks. 2. Write the DD stmt to create a sequential dataset (give valid name) on a tape with tape serial# being tat100 as second file. Data has a record length of 132 bytes. 3. Write the DD stmt to read a sequential dataset (give any valid name) on disk (on work01 pack), in a) Exclusive mode b) Shared mode. 4. Write the DD statement to append data on to an existing catalogued sequential dataset UTI.NEW.TXNS.
Page 5 of 8
Copy the sample JCL named: JCL1 from TRG1T.ILP.JCLCASE to this dataset using ISPF 3.3 option Specify UNIT=TEMPDA wherever you code DD statements in this Case Study. Case I 1. Change DSN=******** to DSN=TRxxxx.TRIAL.FB and change the DISP and DCB parameters as mentioned below. Dataset Specifications: TRxxxx.TRIAL.FB Recfm= FB, Length = 80 bytes, Block Size = 800, Sequential Dataset 2. Submit the JCL. Ensure proper completion of the job by checking the return code. Verify whether the dataset has been catalogued or not. Case II 1. Change DSN=TRxxxx.TRIAL.FB to DSN=TRxxxx.TRIAL.FBA and change the DISP and DCB parameters mentioned below. Dataset Specifications: TRxxxx.TRIAL.FBA Recfm= FBA, Length = 133 bytes, Block Size = 1330, Sequential Dataset 2. Submit the JCL. Ensure proper completion of the job by checking the return code. Verify whether the dataset has been catalogued or not. 3. Edit the dataset and enter some data starting from the first column. Save the dataset and come out of Edit Session. Then open the dataset again in the browse mode and note the output. Case III 1. Now change DSN=TRxxxx.TRIAL.FBA to DSN=TRxxxx.TRIAL.VB and change the DISP and DCB parameters mentioned below. Dataset Specifications: TRxxxx.TRIAL.VB Recfm= VB, Length = 132 bytes, Block Size = 1320, Sequential Dataset 2. Submit the JCL. Ensure proper completion of the job by checking the return code. Verify whether the dataset has been catalogued or not. 3. Notice that there is a change in the way the block size is specified. (For VB: Block Size = Multiple of Record Length + 4. This is because when you open a VB DataSet in EDIT mode the record length is the original record length -4)
Page 6 of 8
4. Edit the dataset and note what is different. Case IV 1. Change DSN=TRxxxx.TRIAL.VB to DSN=TRxxxx.TRIAL.VBA and change DCB and DISP parameters. Dataset Specifications: TRxxxx.TRIAL.VBA Recfm=VBA, Length = 133 bytes, Block Size = 1330, Sequential Dataset 2. Submit the JCL. Ensure proper completion of the job by checking the return code. Verify whether the dataset has been catalogued or not. 2. Case Study 2 1. Copy the sample JCL named: JCL2 from the dataset TRG1T.ILP.JCLCASE 2. This JCL contains Errors. Make the JCL error free. 3. Submit a report on the errors you found and how you corrected it along with the corrected JCL. Hint: Use TYPRUN=SCAN for finding Some Errors. TYPRUN=SCAN works only when there are errors in your JCL. 3. Case Study 3 1. Copy the sample JCL named: JCL4 from TRG1T.ILP.JCLCASE (or) refer Appendix A. The program RUNRC should give the return codes as per the following table: Data to be passed in SYSIN card 0000 0001 0002 0003 Return Code 0 4 8 Abend
The SYSIN card in the JCL should contain the values given in the Table above. All the Return Codes must be checked by giving the appropriate value in the SYSIN data. CASE
CASE 1 CASE 2 CASE 3 CASE 4
STEP 2
SYSIN 0000 0000 0002 0000 RC 0 0 8 0 EXECUTION YES YES YES YES SYSIN 0001 0000 ---0003
STEP 3
RC 4 0 ABEND EXECUTION YES YES NO YES SYSIN -------------
STEP 4
RC EXECUTION NO YES NO NO
The values of SYSIN card of STEP2 should be set to match the return code specified in the table. Give Condition statement in STEP3 and STEP4 such that execution of STEP3 and STEP4 occurs according to the table given above.
Page 7 of 8
APPENDIX A
//TRGXXXJ JOB NOTIFY=&SYSUID //STEP1 EXEC PGM=RUNRC //STEPLIB DD DSN=TRG1T.ILP.JCLCASE.LOADLIB,DISP=SHR //SYSIN DD DUMMY //* //STEP2 EXEC PGM=RUNRC //STEPLIB DD DSN= TRG1T.ILP.JCLCASE.LOADLIB,DISP=SHR //SYSIN DD * 0000 /* //STEP3 EXEC PGM=RUNRC,COND=(4,LT,STEP2) //STEPLIB DD DSN= TRG1T.ILP.JCLCASE.LOADLIB,DISP=SHR //SYSIN DD * 0003 /* //STEP4 EXEC PGM=IEFBR14,COND=(4,LT,STEP2) //STEPLIB DD DSN=TRGM13.CICS.TEST,DISP=(NEW,CATLG,DELETE), // SPACE=(TRK,(1,2,1),RLSE), // DCB=(RECFM=FB,LRECL=80,BLKSIZE=800) //SYSIN DD * //SYSPRINT DD SYSOUT=* //SYSOUT DD SYSOUT=* //
Page 8 of 8