What u mean by include statement in JCL ?

Answers were Sorted based on User's Feedback



What u mean by include statement in JCL ?..

Answer / guest

An include statement identifies a member of a pds or pdse
that contains. This set of JCL statements is called an
include group. The system replaces the include statement
with the statements in the include group.

Is This Answer Correct ?    32 Yes 4 No

What u mean by include statement in JCL ?..

Answer / arnab gupta

INCLUDE Statement
A set of JCL statements coded within a member of a PDS can be included to a JCL using an INCLUDE statement. When the JES interprets the JCL, the set of JCL statements within the INCLUDE member replaces the INCLUDE statement.

Syntax
Following is the basic syntax of a JCL INCLUDE statement:

//name INCLUDE MEMBER=member-name
The main purpose of INCLUDE statement is reusability. For example, common files to be used across many JCLs can be coded as DD statements within INCLUDE member and used in a JCL.

Dummy DD statements, data card specifications, PROCs, JOB, PROC statements cannot be coded within an INCLUDE member. An INLCUDE statement can be coded within an INCLUDE member and further nesting can be done up to 15 levels.

Is This Answer Correct ?    5 Yes 0 No

What u mean by include statement in JCL ?..

Answer / sathya

include is use to extract the selected fields from input
dataset and copy to ouput dataset using sort utility.

//SORTTA EXEC
PGM=SORT
//SYSIN DD
*
SORT FIELDS=COPY
INCLUDE COND=
(52,9,CH,EQ,Cā€™123456789ā€™)

/*

//SORTIN DD DSN=ā€¦,DISP=SHR
//SORTOUT DD DSN=ā€¦
//SYSOUT DD
SYSOUT=*
//
The INCLUDE control statement is used to establish
Selection criteria for the records to be included in the
Output dataset.

Is This Answer Correct ?    19 Yes 19 No

Post New Answer

More JCL Interview Questions

File1 has 100 records and file2 has 200 records i want to copy 50 records which r in both file into file3

7 Answers  


Hi, My dataset have multiple records, say 100. I want to start copy records only after a record contain a specific value that may be in a specific position. Secondly I want to stop copying rest records if certain record contains a specific value. Can it be done using SORT/ICETOOL utilities?

5 Answers   Patni,


how are instream data terminated?

3 Answers   Tech Mahindra,


I have multiple jobs ( JCLs with several JOB cards ) in a member. What happens if I submit it?

16 Answers  


which parameter is use to declare the name of dataset in dd statement?

0 Answers   IBM,






Explain the function of the steplib dd statement?

0 Answers  


i want to avoid the positional parameter how to code it ?

3 Answers   TCS,


I have GDG defined e.g. GDG.smaplegdg.base, after processing the GDG. it contains some records and which is input to the second step2. How can I use GDG to use it as input file at step2.

3 Answers   Wipro,


What parameter directs the output of the job log dataset?

0 Answers  


I have a Symbolic Parameter which can have a value say 01 or 02 etc. Now consider i have another Symbolic parameters which is used to get 3 digit code of months (JAN, FEB, etc) but for that i need to check the first symbolic parameter's value and provide its corresponding month's name in the second symbolic parameter. Say IF sym1 = 01 then sym2='Jan' ENDIF etc... In JCL, IF condition is used for RC, ABEND purposes of a step etc. When i use Symbolic parameter in IF clause it is showing Error message. Is there a way to get the above result possible in JCL. If you could provide me with an example, i would understand it better.

0 Answers  


Suppose a proc step has a DD statement like //ABC DD DSN=TEST.FILE1,DISP=SHR DSN=TEST.FILE2,DISP=SHR and the above DD name is overridden from the JCL as given below //procstepname.ABC DD DSN=TEST.FILE3 - Will the DD statement now have just TEST.FILE3 or it will be TEST.FILE3 and TEST.FILE2? Suppose if it is overridden twice like //procstepname.ABC DD DSN=TEST.FILE3 //procstepname.ABC DD DSN=TEST.FILE4 Will this give a JCL error? If not, what will be final output?

2 Answers  


which statement is used to end the in-stream procedure in a jcl?

1 Answers   IBM,


Categories