Hello,
Can someone please help me with a solution.
Requirement: There are 8 files to merge . Each will be of same length of 500.Each file has one header, detail records and one trailer.Header will be having the report field names. Trailer will have the report name along with date and time and the total detail record count.
The merged file should have only one header and one trailer which it can take from any of the 8 files. And I have to update three things in the trailer record.
1) Date(4MD - format: 20180725)
2) Time (000000 - should be zeroes by default)
3) Count
Positions of all the above fields are fixed
I used IFTRAIL with TRLID and with TRLUPD and updated the count. But now the requirement has been changed to update the date( as run date) and time (as 000000) .
Note: I have searched few document in IBM site and found that using TRLUPD, it is only possible to update the count and total.
I am using TRLUPD because my trailer is having report name and few other details as well.
Kindly help me with any suggestions
Need a help on using TRLUPD
Moderators: Frank Yaeger, Moderator Group
-
- Member
- Posts: 2
- Joined: Wed Jul 25, 2018 6:13 am
If TRLUPD is not possible is it possible to delete the existing trailer record which was created in merge and create the new trailer with the updated count and date.geethu0212 wrote:Hello,
Can someone please help me with a solution.
Requirement: There are 8 files to merge . Each will be of same length of 500.Each file has one header, detail records and one trailer.Header will be having the report field names. Trailer will have the report name along with date and time and the total detail record count.
The merged file should have only one header and one trailer which it can take from any of the 8 files. And I have to update three things in the trailer record.
1) Date(4MD - format: 20180725)
2) Time (000000 - should be zeroes by default)
3) Count
Positions of all the above fields are fixed
I used IFTRAIL with TRLID and with TRLUPD and updated the count. But now the requirement has been changed to update the date( as run date) and time (as 000000) .
Note: I have searched few document in IBM site and found that using TRLUPD, it is only possible to update the count and total.
I am using TRLUPD because my trailer is having report name and few other details as well.
Kindly help me with any suggestions
Thanks in advance.
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page