What u mean by include statement in JCL ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

how can you check if a file is empty using jcl?

816


I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?

2111


Explain the function of dd name parameter with a 2 part structure; audit.report?

906


How can the attributes of one sms dataset be copied to another dataset?

863


What is the significance of addrspc parameter in exec statement?

735






How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

862


Explain how can the disposition of sysout datasets be set for an entire jobstream?

638


what is use of dsn parameter in dd statement?

675


What is the function of //jcllib statement?

814


When space is allocated for an output dataset, what units can be used?

757


What do you understand by the terms: joblib and steplib?

626


what is use of dcb parameter in dd statement?

778


Explain the function of //jcllib statement?

708


How is the record format of an output dataset specified?

748


a dd statement has 2 types of parameters. Name them?

654