Comparision of multiple files using rexx tool

IBM's Command List programming language & Restructured Extended Executor
prasanth402
Posts: 1
Joined: Wed Nov 30, 2016 11:32 am
Skillset: cobol,jcl
Referer: srija

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.

BillyBoyo
Global moderator
Posts: 3805
Joined: Tue Jan 25, 2011 12:02 am
Skillset: Easytrieve Plus, Cobol, Utilities, that sort of stuff
Referer: Google

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.

User avatar
Pedro
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Skillset: ISPF
Referer: google
Location: Silicon Valley

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: 686
Joined: Thu Jul 31, 2008 9:59 pm
Skillset: ISPF
Referer: google
Location: Silicon Valley

Re: Comparision of multiple files using rexx tool

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

Code: Select all

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


  • Similar Topics
    Replies
    Views
    Last post