How to find out the number of records in a file using JCL

Answer Posted / ravi

Logesh,

I'm not sure where the output (record count) is written to.

Can you let me know how to write it to spool & dataset.

My output should be:

Record count is: <count>

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the use of JCL?

897


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

2417


What dd statement is used to supply the name of a dataset?

1083


How to submit jcl through a cobol program?

890


How does jcl act on a cobol code?

856


What is the function of the dd mgmtclas keyword in sms datasets?

1003


what is DSN in JCL and what are the parameters to declare the DSN?

966


Are there any set of rules for the names of the steps used in a job? What are they?

808


if the submitter of a job wants to inform another user about the job completion, how can it be done?

993


Explain in DD statement what is the use of DCB parameter?

890


how to do automated restart when a job abends?

1095


Matching Logic in Jcl not in cobol.Could any one please answer this question

3919


how you can direct the data to spool using SYSOUT option?

1167


What is the purpose of dd * statement in jcl?

1015


How to override loadlib?

1636