What u mean by include statement in JCL ?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
How can values be passed from the job stream to an executable program?
When a dataset is UNCATALOGED in a JOBSTEP, how to get its UNIT and VOL in JCL to refer in subsequent steps ?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
what is alternate index?
How dummy is used in jcl?
How does jcl specify the job to the operating system?
What happens if both JOBLIB & STEPLIB is specified ?
HOw to submit a job from other user id.? for exp some other job name like "t4622sdx".now i want to submit that job from my user id?(we don't know that location at all Just we know job name)
Are there any set of rules for the names of the steps used in a job?
What is a procedure?
How can I write the joblog in the spool on normal end of a job step and direct the joblog to a dataset only if the step abends?
Write a JCL by using the below requirement: File1 =1, File2 =11 and output needs to come as File3 =111?