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
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
what is the resolution for sb37 error
What do you understand by the term job time – out and how can you overcome that?
is there any way to execute more than one proc in the same exec statement at the same time..?
List the different jcl statements that are not permitted in the procedures?
What do you understand by the term notcat 2 – gs?
In job processing, what happens in execution stage?
Can we use DISP=SHR in output file in JCL
A dd statement consists of 4 fields. Name them?
how you can direct the data to spool using SYSOUT option?
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
Is it possible to code instream data in a PROC?
How to submit a jcl from cics?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
How jcl work to handle various input output file operations?