Joined: 02 Jun 2006 Posts: 27 Location: Blue Bell, PA
Could you please provide a solution to the below problem?
1. I have 5 files each with n number of records.
2. These 5 files needs to be concatenated.
3. Need to add header and trailer which includes the time stamp (date and current time).
4. Need to insert the count in the trailer record (including the total number of combined records).
Assuming all of the files are VB, or FB with the same LRECL, you can use a DFSORT job like the following to do what you asked for. You can change the formatting of the date, time and count appropriately depending on what you want them to look like.