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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts compare 2 rows within the same file ram_vizag SYNCSORT 7 Wed Jun 14, 2017 12:34 am


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