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
 

 

COMPARE between the two files irrespective of the case

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

New User


Joined: 25 Mar 2008
Posts: 6
Location: Chennai

PostPosted: Thu May 07, 2009 3:58 am    Post subject: COMPARE between the two files irrespective of the case
Reply with quote

Hi,

I have two PS files with employee id + name in their records. The problem is that in one file the names are in Upper Case and in the other they are in Lower case.

I just need to compare if the names are matching for each employee id between the two files irrespective of the case.

This might be a simple question but any suggestions to achieve this compare using dfsort/icetool is greatly appreciated.

Thanks,
Pradeep
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: Thu May 07, 2009 5:46 am    Post subject:
Reply with quote

You could use DFSORT's TRAN=UTOL function to translate the uppercase names in one file to lowercase names and compare that to the lowercase names in the other file.

If you need more help with this, show an example of the records in each input file (relevant fields only) and the expected output records and explain the "rules" for getting from input to output. Give the RECFM and LRECL of the input files. Give the starting position, length and format of each relevant field.
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 Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm


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