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
Name the parameters which can be used to limit the number of records written to a sysout dataset?
what are the types of abends that occur on job failure? And explain the possible causes of these
how JCL works?
What is the syntax of JCL statement?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
define cond parameter in jcl?
in ways data can be passed to a COBOL program from JCL?
Explain how can values be passed from the job stream to an executable program?
What is the function of the dd avgrec keyword in sms datasets?
Explain how can a jobs execution priority be modified?
Explain the function of a dd statement?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
How to run cobol program using jcl?
A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
Can I send output of job to my remote device careerride123?