Tags

, , , , , , ,

When you have a catalogues procedure and you call that proc in a job, you usually see parameters as part of Job and as part of proc as well.

Why do we specify that at both the places.

If nothing is specified in job (when calling the proc) then whatever is available in the proc will be used

If the symbolic parm is specified in both the job and the proc, then the parm value in the job takes precedence.

This is usually done when the same job is run multiple times like daily, weekly, monthly, quarterly. Proc can have symbolic parameter for the daily job. But if the same job is run during other frequencies, parameter related to that frequency can be placed in job so that it overrides whatever is in proc.

Ex:

Even though the proc is having a value of D (Daily) for the parm FREQ, it will be overridden by the value in job (M – Monthly)

Job
//JOBCARD
//STEP01 EXEC PROC01,FREQ=M

Proc
//PROC01 PROC FREQ=D
//STEP10 EXEC PGM=PGM01,PARM=’&FREQ’

 

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

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
HOW TO SUBMIT A BATCH JOB FROM THE CICS PROGRAM
CICS – EXEC interface block – EIBRESP Values
CICS – EXEC interface block Fields
Flow of control between COBOL programs, run units, and CICS
CICS INTERVIEW QUESTIONS
CICS TIPS
COBOL – COPY and INCLUDE statements
COBOL – PERFORMANCE IMPROVEMENT
COBOL – SIGN STORED IN COMP, COMP-3 AND DISPLAY FORMATS
SHORTEST COBOL PROGRAM
RESTART LOGIC IN COBOL DB2 Program
GOBACK – EXIT PROGRAM – STOP RUN
Continuation lines in COBOL
Computational items – COMP, COMP 1 , COMP 2, COMP 3
COBOL program format
cobol indicator area column-7 and area a and area b
COBOL INTERVIEW QUESTIONS
COBOL TIPS
COBOL COMPILER OPTIONS
The IDENTIFICATION DIVISION