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

Answer Posted / anilkumar

//COUNT EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=INPUT DATASET,
// DISP=SHR
//TOOLIN DD *
*option1
COUNT FROM(IN)
*Instead of count u can aslo use stats operator
*option2
stats from(IN) on(20,5,ZD)
*output will be available in spool ie.in toolmsg
/*

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can the disposition of sysout datasets be set for an entire jobstream?

827


How to submit jcl through a cobol program?

866


what is DD statement is used in JCL?

869


Describe the various parameters utilized in the creation of a gdg?

856


What are the parameter we cannot use in procedure?

813






Explain the jcl exec statement?

853


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

864


which utility is used a dummy utility?

1053


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

1068


In sms datasets, what is the function of the dd avgrec keyword?

821


Does jcl support automatic restart?

960


List the different components of jcl statement?

854


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

859


Define concatenating?

848


what is the JCL statement consists of?

881