Page 1 of 1

Comparision of multiple files using rexx tool

PostPosted: Wed Nov 30, 2016 11:53 am
by prasanth402
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.

Re: Comparision of multiple files using rexx tool

PostPosted: Wed Nov 30, 2016 1:00 pm
by BillyBoyo
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.

Re: Comparision of multiple files using rexx tool

PostPosted: Wed Nov 30, 2016 11:20 pm
by Pedro
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.

Re: Comparision of multiple files using rexx tool

PostPosted: Wed Nov 30, 2016 11:26 pm
by Pedro
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.