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
 

 

Requirement to compare data at different positions

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
naveen_amudalapelly
Warnings : 1

New User


Joined: 15 Oct 2004
Posts: 16

PostPosted: Mon Nov 13, 2006 2:01 pm    Post subject: Requirement to compare data at different positions
Reply with quote

HI,

i have the requirement to compare data at different positions of two different data set and write the matched data in one file and unmatched data in another file.

both are fixed length files of same lRECL
say i have one customer no in file 1 from 20 to 29 and in match 1-9
FILE1 20:9
FILE2 1:9

FILE1 (20:9) SHOULD BE COMPARED WITH FILE2 (1:9) AND IF MATCHES WRITTEN IN FILE3 ELSE IN FILE4.
could you please provide this using pgm=sort.

Thanks and regards,

Naveen
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Mon Nov 13, 2006 11:00 pm    Post subject:
Reply with quote

The "Create files with matching and non-matching records" Smart DFSORT Trick shows techniques for doing this kind of thing for different situations:

http://www.ibm.com/servers/storage/support/software/sort/mvs/tricks/

If you need more specific help, give the RECFM and LRECL of the input files, indicate whether file1 can have duplicates within it, indicate whether file2 can have duplicates within it, and show an example of the records in each input file (with duplicates if possible) and what you expect for output.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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 how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am


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