View previous topic :: View next topic
|
Author |
Message |
cmsmoon
New User
Joined: 17 Jun 2010 Posts: 75 Location: Chennai
|
|
|
|
Hi All,
I have two datasets which have different length.How to compare the dataset using sort cards
Example : my input file is
XMMD01.PROD.DATASET1 =>70 LENGTH
XMMD01.DEVL.DATASET1 =>120 LENGTH
COMPARSION SHOULD BE the file1 with file2 position from
1 to 30 => 30
40 to 70 => 30
110 to 120 =>10
can you please give me a idea or JCLS for this requirement.
we need to do the comparsion for 900 datasets like the above
Thanks in advance |
|
Back to top |
|
|
Ramsee
New User
Joined: 06 Jan 2011 Posts: 53 Location: Chennai
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
DO NOT post the same question in multiple forum areas !!
So what exactly are you going to compare bytes 110-120 against in a corresponding 70 byte record ?
What's wrong with the IBM compare utility that already exists ?
Obviously you can only compare the first 70 bytes of each record and that can so easily be achieved with the correct control statements. |
|
Back to top |
|
|
cmsmoon
New User
Joined: 17 Jun 2010 Posts: 75 Location: Chennai
|
|
|
|
expat wrote: |
DO NOT post the same question in multiple forum areas !!
So what exactly are you going to compare bytes 110-120 against in a corresponding 70 byte record ?
What's wrong with the IBM compare utility that already exists ?
Obviously you can only compare the first 70 bytes of each record and that can so easily be achieved with the correct control statements. |
Hi expat,
The problem we have nearly 900 comparsion like this.So we compare manually it will have manualy work.
To avaoid this manual work
i just give the list of input dates
like
xmmd01.prod.set1 xmmd01.devl.set1 sortcard
xmmd01.prod.set2 xmmd01.devl.set2 sortcard
xmmd01.prod.set3 xmmd01.devl.set3 sortcard
....
....
....
xmmd01.prod.set900 xmmd01.devl.set900
So only file i give the above format and rexx code or JCLS will compare all the datsets and produce the results
this is what i am expecting |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
JCLs (not JCLS) will NOT compare. JCL is a specific language that allows you to execute programs, application or utility, in batch. Please get the terminology correct. |
|
Back to top |
|
|
|