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

Write Matched and UnMatched rcords in separate files.


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

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Thu Nov 10, 2011 12:30 am
Reply with quote

Hello,

I have a requirement as mentioned below.

File1 : LRECL - 354 bytes

11111111 ....................
22222222 ....................
33333333 ....................

File2 : LRECL - 354 bytes

22222222 ....................
77777777 ....................

Output file1 - LRECL- 354 bytes ( Record with matched key )

22222222 ....................

Output file2 - LRECL- 354 bytes ( Record with unmatched key )

11111111 ....................
33333333 ....................
77777777 ....................


Can this be done through join keys using syncsort? If so then can i have the code for the same.
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: Thu Nov 10, 2011 1:09 am
Reply with quote

Hello,

After 3 years and still post a Syncsort topic in the DFSORT part of the forum. . . icon_sad.gif

There are examples of doing what you want in the JCL part of the forum. Pick one and modify it for your use.

If there are problems, post what you have tried and what went wrong (syntax error, abend, or undeisred results). Someone should be able to clarify it you have a problem that you cannot correct.
Back to top
View user's profile Send private message
xknight

Active User


Joined: 22 Jan 2008
Posts: 117
Location: Liberty city

PostPosted: Fri Nov 11, 2011 9:52 am
Reply with quote

Hello,

Quote:
Can this be done through join keys using syncsort? If so then can i have the code for the same.


Guessing, search (posts) options is not working for you..

Check here:

ibmmainframes.com/viewtopic.php?t=47436&highlight=join+keys
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