Is it possiable to use a gdg in the INCLUDE statement in a
SORT jcl? I am using this because I want to change the
condition with out changing the jcl. Please provide with a
sample code.



Is it possiable to use a gdg in the INCLUDE statement in a SORT jcl? I am using this because I wan..

Answer / soni

anyways u will just give the position of file in include
stt of your sort card, the file may be ps or gdg file.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More JCL Interview Questions

what are the statements that are not valid to be included in an include statement?

0 Answers   IBM,


I need exexution process for JCL programs

0 Answers  


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

0 Answers   IBM,


What are the basic JCL Statements for a Job?

1 Answers  


what is the use of IEBGENER utility?

0 Answers  






Current version of GDG is ID.GDG.FILE.G0001V00. JCL has procedure with 2 steps like below,  What will be the output file name in each step ?  PROC starts      Step 1 has ID.GDG.FILE(+1)      Step2 has  ID.GDG.FILE(+4) PEND Similarly, JCL has 2 steps in 2 separate procedure. What will be the output file names here ?  PROC starts      Step 1 has ID.GDG.FILE(+1) PEND PROC1 starts      Step2 has  ID.GDG.FILE(+4) PEND

2 Answers   FIS,


How are GDGs concatenated?

1 Answers  


I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ............ //s3 exec .......... //s4 exec ........ //s5 exec ............... my question is i want to exeute only s2 and s4 steps... please advice me how to do this:

4 Answers   ITC Infotech, TCS,


How do you submit a JCL under CICS environment ?

1 Answers   IBM,


What are the common keyword parameters in both job and exec statements

4 Answers   Cap Gemini,


how can we pass external data to instream procedures

5 Answers   IBM, Infosys, Ocwen,


how to resolve the soc4 error?

5 Answers   ITC Infotech,


Categories