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
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
what is the difference between JES3 and JES2?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
What does a disposition of (new,catlg,keep) for a dsn mean?
How can the disposition of sysout datasets be set for an entire jobstream?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
What is the function of dd name parameter with a 2 part structure; audit.report?
how to do automated restart when a job abends?
In job processing, what happens in conversion stage?
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
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
Is automatic restart possible in jcl? If yes, how?
What are the jcl procedures?