How to find out the number of records in a file using JCL
Answer Posted / logeshwaran
//COUNT EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=INPUT DATASET,
// DISP=SHR
//TOOLIN DD *
COUNT FROM(IN)
/*
| Is This Answer Correct ? | 18 Yes | 0 No |
Post New Answer View All Answers
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file
What is the function of dd name parameter with a 2 part structure; audit.report?
What are hierarchy levels in jcl?
which utility is used to sort a file in jcl?
List the different jcl statements that are not permitted in the procedures?
What is the purpose of the dd keylen parameter?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
how can the same proc be re-used and called by many jobs?
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?
What is the significance of addrspc parameter in exec statement?
What do you understand by the term job time – out and how can you overcome that?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
How do you access an uncatalogued dataset in a jcl?
How jcl work to handle various input output file operations?