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
 

 

JCL for file comparison

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
cmsmoon

New User


Joined: 17 Jun 2010
Posts: 72
Location: Chennai

PostPosted: Thu Oct 16, 2014 1:09 pm    Post subject: JCL for file comparison
Reply with quote

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
View user's profile Send private message

Ramsee

New User


Joined: 06 Jan 2011
Posts: 52
Location: Chennai

PostPosted: Thu Oct 16, 2014 1:26 pm    Post subject:
Reply with quote

Hi Saravanan,

Please find the URL for an Idea: http://ibmmainframeforum.com/viewtopic.php?f=61&t=5545
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Oct 16, 2014 1:42 pm    Post subject:
Reply with quote

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
View user's profile Send private message
cmsmoon

New User


Joined: 17 Jun 2010
Posts: 72
Location: Chennai

PostPosted: Thu Oct 16, 2014 2:20 pm    Post subject:
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Oct 16, 2014 4:24 pm    Post subject:
Reply with quote

May give you some positive leads

http://www.ibmmainframes.com/viewtopic.php?t=56762


You can supply the file list to your REXX and use the program logic to build and action the compares for each file pair.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1717
Location: UK

PostPosted: Fri Oct 17, 2014 12:51 am    Post subject: Reply to: JCL for file comparison
Reply with quote

Quote:
JCLS will compare

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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