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 compare files and write in a new generation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
srajanbose
Warnings : 1

New User


Joined: 11 Oct 2004
Posts: 69
Location: chennai

PostPosted: Tue Jun 15, 2010 8:51 pm    Post subject: Syncsort compare files and write in a new generation
Reply with quote

Hi,

I have a requirement as below.

input file : abc.xyz.

Code:
acc.no    name  age
0001      a         15
0002      b         20
0003      c         25
0004      d         30
0005      e         35


Output file1 : abc.cde(0)

Code:
acc.no    name  age   points
0001      a         15          34
0003      c         25          56
0005      e         35          67


Output file2 : abc.error

Code:
acc.no    name  age
0002      b         20
0004      d         30


previous generation of output file1 : abc.cde(-1)

Code:
acc.no    name  age   points
0001      a         15          34
0002      b         20          66
0003      c         25          56
0004      d         30          77
0005      e         35          67



I need to copy the records from previous generation input file to the current output file for the records present in error file.
Back to top
View user's profile Send private message

Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 500
Location: USA

PostPosted: Tue Jun 15, 2010 9:48 pm    Post subject:
Reply with quote

You should be able to use SyncSort's JOIN feature to accomplish this, but I am not quite clear what your requirements are.
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 SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 5 Sat Jan 21, 2017 4:02 am
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
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