what are the symbolic parameters? why do we use symbolic
parameters ?

Answers were Sorted based on User's Feedback



what are the symbolic parameters? why do we use symbolic parameters ?..

Answer / fayazsha.,

//MYJOB JOB(P,U202,SH1),'FRANK SMITH',CLASS=A
//STEP1 EXEC PGM=PROGRAM1,SYSTEM=PROD,DEPT=INV,TYPE=DATA
//FILEIN DD DSNAME=&SYSTEM..&DEPT..&TYPE,DISP=SHR
//FILEOUT DD DSNAME=&SYSTEM..&DEPT..DATA,DISP=
(NEW,CATLG,DELETE),
// AVGREC=U,SPACE=(80,(100,20),RLSE),
// DCB=(LRECL=80,RECFM=FB)

A.Referring to the above coding, what is the effective
dataset name for the data definition FILEOUT?

PROD.INV.DATA

Here we are referring the symbolic variable with single &
Ampersand.

Is This Answer Correct ?    51 Yes 6 No

what are the symbolic parameters? why do we use symbolic parameters ?..

Answer / abha

Example: If symbolic parameter is defined as CLASS=H
and later on in JCL we use SYSOUT=&&CLASS

At runtime SYSOUT=&&CLASS will be relaced by SYSOUT=H.

Hence here we have used CLASS as a symbolic paramter and
its usage is to increase maintainability because if later
we need to change the class it can be changed just at one
place instead of changing it at all the palces of it's
usage.

Is This Answer Correct ?    38 Yes 16 No

Post New Answer

More JCL Interview Questions

How to DEBUG a JCL?

9 Answers   Satyam,


Explain how can an in-stream dataset be terminated?

0 Answers  


WHAT WILL HAPPEN TO A FILE IF DISP=(MOD,DELETE,DELETE)

8 Answers   ADP,


if time parameter is not coded on the job card and job step then what is the default time assigned to the entire job and for each step in the job by the systyem ?

2 Answers   ITC Infotech,


can u execute a proc from another proc?

5 Answers   Logica CMG,






what is the sortcard for comparing two files with a field key and get the duplicates in onefile and noduplicates in another file

3 Answers   Virtusa,


How to pass data to a program that is coded in an exec statement?

0 Answers  


Where can program checkpoints be stored for use in a restart?

0 Answers  


A job has 150 steps i want to execute only 57th step

3 Answers   Cognizant,


What is the error in the following JCL statements : I) //step#three exec pgm=hkbc762 ii) //step#3 exec pgm = hkbc762 iii) //step#3 exec pgr = hkbc672

6 Answers  


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

0 Answers   IBM,


When a dataset is UNCATALOGED in a JOBSTEP, how to get its UNIT and VOL in JCL to refer in subsequent steps ?

1 Answers   IBM,


Categories