Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Merge two files and update Trailer record with ttl and count

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Yashashri

New User


Joined: 12 Feb 2016
Posts: 5
Location: India

PostPosted: Thu May 04, 2017 12:54 pm    Post subject: Merge two files and update Trailer record with ttl and count
Reply with quote

Hi Guys,

I have two input files and want to merge them. Both files has Header, Detail and trailer record. I want to merge details records and write Header and trailer record only once in Output file and add both files trailer record count and amount field. File is FB and 239.

File 1 :
HEADER AICN021601SCSFTP2017021622510201N
ISCSCNAP160000036BB1702000003 123456 100232INTOIBROUSD201702162
ISCSCNAP160000036BB1702000004 123456 100232INTOIIRAUSD201702162
TRAILER AICN021601SCSFTP000000020000000000000183450+

File 2:

File 2 :
HEADER AICN021601SCSFTP2017021622510201N
ISCSCNAP160000036BB1702000005 123456 100232INTOIBROUSD201702162
ISCSCNAP160000036BB1702000006 123456 100232INTOIIRAUSD201702162
TRAILER AICN021601SCSFTP000000020000000000000183450+

Output Should be :

HEADER AICN021601SCSFTP2017021622510201N
ISCSCNAP160000036BB1702000003 123456 100232INTOIBROUSD201702162
ISCSCNAP160000036BB1702000004 123456 100232INTOIIRAUSD201702162
ISCSCNAP160000036BB1702000005 123456 100232INTOIBROUSD201702162
ISCSCNAP160000036BB1702000006 123456 100232INTOIIRAUSD201702162
TRAILER AICN021601SCSFTP000000040000000000000366900+

Please help. This is urgent.
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1868
Location: UK

PostPosted: Thu May 04, 2017 5:08 pm    Post subject:
Reply with quote

We do not do "urgent". Neither JCL or VSAM can do this. Locked.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us