IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Requirement to compare data at different positions


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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 Developer


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

PostPosted: Mon Nov 13, 2006 11:00 pm
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:

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Store the data for fixed length COBOL Programming 1
Search our Forums:

Back to Top