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
Immediate Job opening for mainframe professionals in Keane Bangalore. Please find the below details: Organization: Keane India Location: Bangalore Skill: COBOL, JCL,VSAM,DB2,CICS,IMS,REXX,CLIST Exp: 1 to 4 years only Employment Type: Permenant Employee Note: If you have attended keane interview in past 6 months please ignore this job opening. Please respond to email id keanemfjob@gmail.com OR keanemfjob@yahoo.in with your latest resume and following details, We will contact you within 24 hours: Total IT Exp: Exp in Mainframe: Current CTC: Expected CTC: Notice Period:
What do you understand by the term notcat 2 – gs?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
What is notcat 2 - gs?
Why include statement is used in a jcl?
How does jcl act on a cobol code?
How do you overcome this limitation ?
How can unused space allocation be returned to the system when a dataset is closed?
What is the function of a dd statement?
what are the various stages of job processing?
How can a fb file convert to vb file using sort program?
What dd statement is used to supply the name of a dataset?
what sort card you will use to copy the data from one dataset to another dataset?
Explain how can a stopped job be started again?
Can an individual step be restricted from using all the jobs allowed cpu time?