How to find out the number of records in a file using JCL
Answer Posted / logeshwaran
//COUNT EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=INPUT DATASET,
// DISP=SHR
//TOOLIN DD *
COUNT FROM(IN)
/*
Is This Answer Correct ? | 18 Yes | 0 No |
Post New Answer View All Answers
Explain how can an in-stream dataset be terminated?
what is the JCL statement consists of?
What is one line to pass PARM from JCL to COBOL?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
how you can access an uncataloged dataset in a JCL?
What is the purpose of the dd keylen parameter?
how to compare two datasets without using superce because output is limited to 133 bytes
Explain the purpose of dd dummy statement?
Can we call instream to catalog and catalog to instream?
How jcl work to handle various input output file operations?
Explain the purpose of dd * statement in jcl?
Explain dd statement in jcl?
What is notcat 2 - gs?
Can I send output of job to my remote device careerride123?
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you