Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Syncsort - combine the 2 files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Syncsort - combine the 2 files
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    Post subject:
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

Site Director


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

PostPosted: Mon Apr 19, 2010 9:28 pm    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Mon Apr 19, 2010 10:16 pm    Post subject:
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    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 Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us