Hi,
I have two files which I want to compare. The files are fixed block and record lengths of 80. But I want ot compare these two files in such a way that only the data between column 5 to column 27 of both files are compared. Is it possible? If we can do it how can I do this ? Please help me.
Compare two files on specific columns.
- Robert Sample
- Global Moderator
- Posts: 1903
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Compare two files on specific columns.
Use the ISPF compare option under Utilities. You may need to spend some time reading the Help (PF1) screens or dig in the manual, but you can specify the columns to use for your compare.
- Anuj Dhawan
- Founder
- Posts: 2824
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Compare two files on specific columns.
As Robert has said, you can use ISPF compare option. As per the manual:
For zOS 2.1 COMPARE-Edit Compare - you might want to look at: https://www.ibm.com/support/knowledgece ... comped.htm
Example:
PS. Have modified the the compare columns as per the topic.
For zOS 2.1 COMPARE-Edit Compare - you might want to look at: https://www.ibm.com/support/knowledgece ... comped.htm
Example:
[/url]z/OS ISPF User's Guide Vol II SC19-3628-00 wrote:Code: Select all
//COMPARE EXEC PGM=ISRSUPC,PARM=('LINECMP,CHNGL,UPDCNTL') //STEPLIB DD DSN=ISPF.LOAD,DISP=SHR //NEWDD DD DSN=DLUDLOW.PDS(TEST1),DISP=SHR //OLDDD DD DSN=DLUDLOW.PDS(TEST2),DISP=SHR //OUTDD DD SYSOUT=A //DELDD DD DSN=DLUDLOW.UCTL1,DISP=OLD //SYSIN DD * CMPCOLM 5:27 /*
PS. Have modified the the compare columns as per the topic.
Thanks,
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Anuj
Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute