Tags

, , , , , , , , , ,

1. CONSIDER THE BELOW SCENARIO.

JOB SAMPLEJB EXECUTES THE PROGRAM SAMPLEPG AS PROVIDED BELOW.

//STEP01 EXEC PGM=SAMPLEPG
//INPUT DD DSN=INPUT.FILE,DISP=SHR
//OUTPUT1 DD DSN=OUTPUT.FILE01,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(CYL,(100,100),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)
//OUTPUT2 DD DSN=OUTPUT.FILE02,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(CYL,(100,100),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)

A NEW REQUIREMENT CAME TO STOP CREATING THE OUTPUT2. PROGRAMMER HAS MADE CHANGES ONLY TO THE JCL BY REMOVING THE OUTPUT2 DETAILS.
HE HAS FORGOT TO MAKE CHANGES TO THE PROGRAM SAMPLEPG. WHEN THE JOB RUNS AFTER THE CHANGES, DO YOU SEE ANY ISSUES. PLEASE JUSTITY YOUR ANSWER.

A. THE JOB COMPLETES SUCCESSFULLY WITHOUT ANY FAILURE. NO NEED TO
PROVIDE ANY DUMMY STATEMENT IN THE JCL. SYSTEM AUTOMATICALLY
CREATES A TEMPORARY DATASET FOR THE OUTPUT DD OUTPUT2 AND
COMPLETES THE EXECUTION OF THE PROGRAM SAMPLEPG.
FORMAT OF THE TEMPORARY DATASET THAT SYSTEM GENERATES IS

SYSYYDDD.THHMMSS.RA000.JJOBNAME.RGGNNNNN.

FOR SAMPLE JOB DETAILS, PLEASE DO CONTACT ME.

PLEASE NOTE THAT ANSWER TO THE QUESTION 1 IN WEEK5 QUIZ MAY VARY BASED ON SYSTEM INSTALLATION. IF THE SYSTEM ADMINISTRATOR HAS DEFINED A DEFAULT STORAGE CLASS AND DATA CLASS, THEN THE
TEMPORARY DATASET WOULD BE CREATED AS MENTIONED IN THE PREVIOUS

2. IN CA7, AT THE REQUIREMENTS OF A PARTICULAR JOB, YOU WOULD HAVE SEEN LEADTM (LEAD TIME). WHAT DOES IT MEAN WHEN THE REQUIREMENT HAS LEADTM=00 AND LEADTM=99.

EX: PROVIDE YOUR ANSWER CONSIDERING THE BELOW EXAMPLE.
JOB MAINJOB HAS JOBS REQJOB1 AND REQJOB2 AS REQUIREMENTS.

REQJOB1 HAS LEADTM=00 AND REQJOB2 HAS LEADTM=99.

A. LEAD TIME 00 – SPECIFIES THAT THE PREDECESSOR JOB MUST HAVE STARTED AND COMPLETED SUCCESSFULLY SINCE THE LAST RUN OF THE DEPENDENT JOB.

LEAD TIME 99 – SPECIFIES THAT THE REQUIREMENT IS NEVER CONSIDERED

INITIALLY SATISFIED WHEN THIS JOB ENTERS THE REQUEST QUEUE. THE
DEPENDENT JOB MUST COMPLETE NORMALLY WHILE THIS JOB IS IN THE REQUEST QUEUE.

EX: MAINJOB – Requirement REQJOB1 (LEADTM=00) AND REQJOB2 (LEADTM=99)

REQJOB1 HAS LEADTIME=00 MEANS THAT THE REQJOB1 JOB MUST HAVE STARTED AND COMPLETED SUCCESSFULLY SINCE THE LAST RUN OF THE MAINJOB JOB.
REQJOB2 HAS LEADTIME=99 MEANS THAT THE REQJOB2 JOB MUST COMPLETE

NORMALLY WHILE THE JOB MAINJOB IS IN THE REQUEST QUEUE.
3. WHAT IS THE IBM UTILITY PROGRAM THAT ALWAYS RETURNS A COMPLETION CODE OF “0”.

A. IEFBR14 IS THE UTILITY PROGRAM THAT ALWAYS RETURNS A COMPLETION CODE OF “0”.

——————————————————————————————————–

In United States, If you would like to Earn Free Stocks, Credit card Points and Bank account Bonuses, Please visit My Finance Blog

——————————————————————————————————–

You may also like to look at:

Working on Mainframes – Is Change to a different technology necessary
Important SQL CODES and ABEND CODES
SORT JOIN – TO JOIN TWO FILES BASED ON A KEY
KNOW YOUR MAINFRAME
REXX – INITIAL SETUP
KNOW YOUR MAINFRAME
KNOW YOUR MAINFRAME – WEEK 1
KNOW YOUR MAINFRAME – WEEK 1 – SOLUTIONS
KNOW YOUR MAINFRAME – WEEK 2
KNOW YOUR MAINFRAME – WEEK 2 – SOLUTIONS
KNOW YOUR MAINFRAME – WEEK 3
KNOW YOUR MAINFRAME – WEEK 3 – SOLUTIONS
KNOW YOUR MAINFRAME – WEEK 4
KNOW YOUR MAINFRAME – WEEK 4 – SOLUTIONS
KNOW YOUR MAINFRAME – WEEK 5
KNOW YOUR MAINFRAME – WEEK 5 – SOLUTIONS
KNOW YOUR MAINFRAME – WEEK 6
KNOW YOUR MAINFRAME – WEEK 6 – SOLUTIONS