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


Please Help Members By Posting Answers For Below Questions

Explain how can an in-stream dataset be terminated?

950


what is the JCL statement consists of?

891


What is one line to pass PARM from JCL to COBOL?

4662


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

1133


how you can access an uncataloged dataset in a JCL?

864


What is the purpose of the dd keylen parameter?

912


how to compare two datasets without using superce because output is limited to 133 bytes

1772


Explain the purpose of dd dummy statement?

890


Can we call instream to catalog and catalog to instream?

883


How jcl work to handle various input output file operations?

855


Explain the purpose of dd * statement in jcl?

805


Explain dd statement in jcl?

842


What is notcat 2 - gs?

1159


Can I send output of job to my remote device careerride123?

876


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

802