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 ? | 6 Yes | 0 No |
Post New Answer View All Answers
Where can program checkpoints be stored for use in a restart?
What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?
Explain in DD statement what is the use of DCB parameter?
what is DD statement is used in JCL?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
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 operation is performed by job statement?
Can I share my data with other jobs? How?
Explain how can a stopped job be started again?
What is catelog procedure and how many catelog procedure to use in one job?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
What is the function of the dd mgmtclas keyword in sms datasets?
What dd statement is used to supply the name of a dataset?
Explain the function of dd disp parameter?
Explain the function of the dd dcb keyword?