How to find out the number of records in a file using JCL
Answer Posted / anilkumar
//COUNT EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=INPUT DATASET,
// DISP=SHR
//TOOLIN DD *
*option1
COUNT FROM(IN)
*Instead of count u can aslo use stats operator
*option2
stats from(IN) on(20,5,ZD)
*output will be available in spool ie.in toolmsg
/*
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Mention the types of job control statements?
Is automatic restart possible in jcl?
Explain how can a jobs execution priority be modified?
Is it possible to left uncode disp? If yes, how?
can any one plzzzzzz tell the jcl code for creating ps using idcams
a dd statement has 2 types of parameters. Name them?
A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
How jcl work to handle various input output file operations?
how JCL works?
Explain how can return codes be tested before execution of a job step?
what is use of disp parameter in dd statement?
What is the function of dd name parameter with a 2 part structure; audit.report?
Which dd parameters are required?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
Can I send output of job to my remote device careerride123?