How to find out the number of records in a file using JCL
Answer Posted / mohanasundaram
step1 exec pgm=idcams
sysprint dd sysout=*
sysout dd sysout=*
infile dd dsn=filename,disp=shr
sysin dd *
print(filename)-
count(3)
/*
//
In input file 3 records is there means it will be show maxcc=0 else it will show maxcc=4
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
what is the purpose of coding class parameter in job statement?
what is use of dsn parameter in dd statement?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
What is the significance of addrspc parameter in exec statement?
What do you understand by jcl?
What statement can be used to send data to another mvs jes3 node?
Mention the types of job control statements?
Explain how can the submitting users racf authority be overridden in a job stream?
how do you access an uncataloged dataset in a jcl?
How do you access an uncatalogued dataset in a jcl?
define cond parameter in jcl?
Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You
How to do automated restart when a job abend?
Is there any command to check wether the ps file is in sorted order?
What is one line to pass PARM from JCL to COBOL?