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 member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


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