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
Explain how can the disposition of sysout datasets be set for an entire jobstream?
How to submit jcl through a cobol program?
what is DD statement is used in JCL?
Describe the various parameters utilized in the creation of a gdg?
What are the parameter we cannot use in procedure?
Explain the jcl exec statement?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
which utility is used a dummy utility?
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
In sms datasets, what is the function of the dd avgrec keyword?
Does jcl support automatic restart?
List the different components of jcl statement?
Explain in DD statement what is the use of DCB parameter?
Define concatenating?
what is the JCL statement consists of?