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

How do you override a parameter in Positional parameters?

4 Answers   Thomson Reuters,


How different is the JCL executing a COBOL program? 1) if the program is using VB file as input. 2) if the program is using FB file as input.

1 Answers   HSBC,


how do u send return code from cobol to jcl ?

2 Answers   TCS,


In your JCL, run the even numbered steps if date is even and run odd numbered steps if date is odd . Where do you generate the date ??in cobol or JCL ??

2 Answers   CSC,


If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

0 Answers  






State the uses of syspring, sysin, sort fields, sum fields and dummy.

0 Answers  


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

0 Answers  


Please explain with syntax and an example, the Inrec fields and Outrec build in sort.

4 Answers   CTS, TCS,


Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed

0 Answers  


What are the maximum and minimum sizes of any CONTROL AREA (VSAM datasets) ?

2 Answers   Patni,


In DCB, what is LRECL,BLKSIZE,DSORG

1 Answers   TCS,


How can a job send a status message to a tso user at the completion of a job?

1 Answers  


Categories