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
List the various advantages of using jcl language?
Which dd parameters are required?
in ways data can be passed to a COBOL program from JCL?
can any one plzzzzzz tell the jcl code for creating ps using idcams
which utility is used to sort a file in jcl?
How jcl work to handle various input output file operations?
Mention the types of job control statements?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
How can return codes be tested before execution of a job step?
How to run cobol program using jcl?
Explain the hierarchy levels in jcl?
Is automatic restart possible in jcl?
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?
Explain dfsort utility?
What is the function of //cntl statement?