Comparision of multiple files using rexx tool



IBM's Command List programming language & Restructured Extended Executor

Comparision of multiple files using rexx tool

Postby prasanth402 » Wed Nov 30, 2016 11:53 am

Hi,

Iam looking for REXX code to compare the multiple gdg versions.
i.e.first.gdg.v1(0) with first.gdg.v1(1)
second.gdg.v1(0) with second.gdg.v1(1) etc..

Please can anyone help on this by sharing the logic.
prasanth402
 
Posts: 1
Joined: Wed Nov 30, 2016 11:32 am
Has thanked: 0 time
Been thanked: 0 time

Re: Comparision of multiple files using rexx tool

 

Re: Comparision of multiple files using rexx tool

Postby BillyBoyo » Wed Nov 30, 2016 1:00 pm

Well, you probably won't find it. If the amount of data approaches anything remotely close to large, Rexx is going to be a very slow way to do this anyway.

There is no difference between comparing one generation (not version) of a GDG and another, and comparing two PS/flat files who are not part of a GDG. Other than the naming and the automatic aspects of a GDG (and the extremely rare, in reality, possibility for a version of a GDS) there is nothing special about GDGs.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: Comparision of multiple files using rexx tool

Postby Pedro » Wed Nov 30, 2016 11:20 pm

Issue a LISTCAT command for the GDG base to get the actual data set names. Allocate the two data set names with the highest number and call SUPERC to do the actual compare.
Pedro Vera
User avatar
Pedro
 
Posts: 571
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 40 times

Re: Comparision of multiple files using rexx tool

Postby Pedro » Wed Nov 30, 2016 11:26 pm

i.e.first.gdg.v1(0) with first.gdg.v1(1)
second.gdg.v1(0) with second.gdg.v1(1) etc..

The example in the original post shows different GDGs... Perhaps code the LISTCAT and SUPERC invocation as a subroutine and call it for each GDG base.
Pedro Vera
User avatar
Pedro
 
Posts: 571
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 40 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post