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
IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C
Differentiate between the joblib and the steplib statements?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
What is the difference between run mode and addressing mode?
How does jcl act on code(if you take a cobol program)?
which parameter is use to declare the name of dataset in dd statement?
What are the 4 fields in dd statement?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
What is notcat 2 - gs?
How can the submitting users racf authority be overridden in a job stream?
Is condition checking possible in jcl?
What parameter of the job statement is used to limit the cpu time consumed by the job?
How to submit jcl through a cobol program?
What is the function of the steplib dd statement?
Explain how can the submitting users racf authority be overridden in a job stream?