Posted: Mon Jun 06, 2005 1:46 pm Post subject: Record count
Hi,
i have to create an output file which has a header, detailed records and finally a trailer
this detailed record will be avialable in one seperate file which i can use as a input.
The trailer is constant.The value will be "TRAILER EOF "
The header will vary based on the record count and date.the format is "HEADER YYYYMMDD COUNT"
If there are 50 records today in the detail file then the header will be HEADER 20050606 50"
is it possible to do that in Jcl itself. can any one helpme to do it.
Joined: 26 Nov 2002 Posts: 12369 Topics: 75 Location: San Jose
Posted: Mon Jun 06, 2005 2:10 pm Post subject:
subbuY2K,
The following JCL will give you the desired results. In the first step we take the detail file and create the header record with the count. In the next step we concatenate this file to the detail file and create the desired output file.
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum