//{name} INCLUDE MEMBER=memname {comments}
in the include statement, what actually happens when its
executed? The membername conatains a list of valid JCL
statements, so will the include statement be substituted by
these statements and how can we mention the pds that
conatains the member? How does the include group differ from
a PROC?
how is include statement connected to JOBLIB and STEPLIB?

Answers were Sorted based on User's Feedback



//{name} INCLUDE MEMBER=memname {comments} in the include statement, what actually happens when its..

Answer / devang1783

INCLUDE is used ONLY on MVS/ESA Version 4 or higher systems
to name an INCLUDE group. An INCLUDE group is a set of one
or more valid JCL statements that are stored together in a
JCLLIB data set or a system procedure library, and that are
read in and used to replace the INCLUDE statement itself
within the job. Any number of INCLUDE statements can be
used in a job, but the name field value used on each should
be unique within the job. The INCLUDE statements can appear
in a job anywhere after the JOB statement, but may not
appear between a CNTL and ENDCNTL
JCL statement.

Is This Answer Correct ?    11 Yes 1 No

//{name} INCLUDE MEMBER=memname {comments} in the include statement, what actually happens when its..

Answer / max

We are using two sysres volume for 4 lpar, one online e one
offline for maintenance.Using INCLUDE member=memname in the
jcl (or proc), in joblib o steplib,for switch from one
library to other ptf library(standing in the other sysres
offline volume), how can i involve in the specific case of OMVS?
There is the problem, that for aplly ptf, i'll mount root
directory of the voleume sysres offline. Infact with two
unique sysres, on e system cloud have different sysres
online. And thus? i can't apply ptf on the root file if it's
mounted on other system lpar.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More JCL Interview Questions

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 to pass the temp dataset form one JOB step to another?

6 Answers   IBM,


A file has dta in S9(09) COMP format. How do I move the data into a character field X(10)?

2 Answers  


whats the difference between empty and noempty of GDG?

4 Answers   Patni,


How do you submit JCL via a Cobol program?

2 Answers   Cap Gemini,






What is the function of dd disp parameter?

0 Answers  


There are two steps in a JCl, the first one generates a report while the second step send an email saying the report has been generated, but the second steps should only be executed when the report file is non-empty. How can it be acheived. We may include steps in between.

3 Answers   IBM,


I have an job having three job steps.Suppose i want to call a pgm in step2 and aproc in step3.How to write the code?

2 Answers   IBM,


why jobstep can't be more than 255 and for GDG has max limit 255 . Is there any relation between the two

1 Answers   IBM, Perot Systems,


If there are five steps in a JCL i have to execute the 3rd step, bypass the 4th step and execute the 5th step how do i do this?

13 Answers   Cognizant, Convergys, IBM, TCS, Wipro,


you have one jcl .in sort step 5 files are there.if out of 5 files if one file is uncataloged or not there then how will you correct your jcl so that problem does not come. you should not create this file externally.how will u overcome it.

3 Answers  


i have two flat files.i want to select one record from that file by using jcl.for example file1 contains emp no,name,joining date. file2 has same details.emp no is primary key. i will give empno.that emp details send to outfile.please let me know if any one knows it.give sample code.

1 Answers   TCS,


Categories