Wednesday, 15 May 2013

How to count no of records in file using JCL...?

Using JCL we can count number of files in a record using a tool called ICETOOL in DFHSORT.
 
This sample program is used to count number of records in input data set given in IN dd name:
 
//S1   EXEC  PGM=ICETOOL
//TOOLMSG   DD  SYSOUT=*
//DFSMSG    DD  SYSOUT=*
//IN DD DSN=...  INPUT DATA SET....,DISP=SHR
//TOOLIN DD *
     COUNT FROM(IN)
/*
//

No comments:

Post a Comment

Expense Handler Application with advance technologies

Budget Planner  One of the application developed with Ionic 4 and Python-Flask.  Ionic 4 code:  https://github.com/logeshbuiltin/Expense...