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: 1922
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 Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm
No new posts Squeeze record left so that zeroes ar... Vignesh Sid SYNCSORT 5 Fri Nov 10, 2017 1:40 pm
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm
No new posts Updating multiple counts in trailer!! Vignesh Sid SYNCSORT 4 Mon Nov 06, 2017 1:04 pm

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