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.
Comparision of multiple files using rexx tool
-
prasanth402
- Posts: 1
- Joined: Wed Nov 30, 2016 11:32 am
- Skillset: cobol,jcl
- Referer: srija
-
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
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.
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.
- Pedro
- Posts: 687
- Joined: Thu Jul 31, 2008 9:59 pm
- Skillset: ISPF
- Referer: google
- Location: Silicon Valley
Re: Comparision of multiple files using rexx tool
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
- Pedro
- Posts: 687
- Joined: Thu Jul 31, 2008 9:59 pm
- Skillset: ISPF
- Referer: google
- Location: Silicon Valley
Re: Comparision of multiple files using rexx tool
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
-
-
Easytrieve to Cobol Conversion through IBM IMU tool
by ShashankShukla » Tue Dec 02, 2025 9:37 am » in All other IBM Tools - 2
- 2597
-
by ShashankShukla
View the latest post
Sun Dec 14, 2025 9:44 am
-
-
- 1
- 3896
-
by prino
View the latest post
Mon Sep 05, 2022 2:12 am
-
-
Multiple remote job entry writing to the same dataset
by MLK2348 » Wed Nov 15, 2023 3:55 am » in JCL - 1
- 3508
-
by willy jensen
View the latest post
Wed Nov 15, 2023 1:50 pm
-
-
-
Create multiple records based on one record within a file.
by chillmo » Thu Aug 11, 2022 3:54 am » in Syncsort/Synctool - 5
- 10165
-
by sergeyken
View the latest post
Fri Aug 12, 2022 2:23 am
-
-
- 0
- 3391
-
by JIMDOOEY
View the latest post
Tue Mar 01, 2022 8:48 am