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 VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm
No new posts Finding difference between two PS fil... Vignesh Sid SYNCSORT 5 Mon Oct 30, 2017 1:13 pm

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