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
How does jcl act on code(if you take a cobol program)?
How do you create a temporary dataset?
How can the attributes of one sms dataset be copied to another dataset?
Matching Logic in Jcl not in cobol.Could any one please answer this question
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
What statement can be used to send data to another mvs jes3 node?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
What is the purpose of dd * statement in jcl?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
how JCL works?
How to resolve the error "WER488A JOIN CAPACITY EXCEEDED" I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem? I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem?
Explain the function of dd name parameter with a 2 part structure; audit.report?
What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?