IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Syncsort - combine the 2 files


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sudhakar1979

New User


Joined: 23 Aug 2005
Posts: 24

PostPosted: Mon Apr 19, 2010 9:20 pm
Reply with quote

I have 2 files. Both have the same layout and header and trailer records.

1st file

Header 201004151.7
SUD 919844318SUDHAKAR XXXXXXXX B80311
SUD 919866128XXXXXXXX XXXXXXXX C50802
TRAILER 00000002


2ND file

Header 201004151.7
SUD 919844318aaaaaaaaaA XXXXXXXX X80311
SUD 919866128bbbbbbbbbb XXXXXXXX M50802
TRAILER 00000002

NOW I WANT TO COMBINE 2 FILES AND THE O/P SHOULD BE
Header 201004151.7
SUD 919844318SUDHAKAR XXXXXXXX B80311
SUD 919866128XXXXXXXX XXXXXXXX C50802
SUD 919844318aaaaaaaaa XXXXXXXX X80311
SUD 919866128bbbbbbbbb XXXXXXXX M50802
TRAILER 00000004

HEADER IS SAME IN BOTH INPUT AND OUTPUT FILES. ONLY TRAILER COUNTS NEED TO BE ADDED AND SHOULD SHOWN IN O/P FILES.

Sudhakar.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Apr 19, 2010 9:26 pm
Reply with quote

Quote:
I have syncsort in my shop. i have tried DF sort example and its not working

Being 5 year old to forum.. You should have posted it to JCL part..
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Apr 19, 2010 9:28 pm
Reply with quote

Hello,

What if the 2 headers have different values?

Quote:
I have a job with 300 steps. if i submit the job what error code it will return.
If this is part of your "signature", suggest removing it.

If you want to see what happens, submit the job with TYPRUN=SCAN. . .
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Mon Apr 19, 2010 10:16 pm
Reply with quote

Quote:
i have tried DF sort example and its not working.
Please provide the JCL and errors.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top