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 fuzzy compare Martylin JCL & VSAM 7 Thu Mar 30, 2017 2:45 pm
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 Write R1 and R2 to OP1 and R1 to OP2 bhaskar_kanteti DFSORT/ICETOOL 10 Fri Mar 03, 2017 11:18 am
No new posts Can you write 2 recs on SORTOUT when ... Sysaron DFSORT/ICETOOL 6 Thu Feb 23, 2017 12:07 am
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am


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