Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us