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
-
- Posts: 1
- Joined: Wed Nov 30, 2016 11:32 am
- Skillset: cobol,jcl
- Referer: srija
-
- 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: 686
- 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: 686
- 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
-
-
Extract first record from multiple files
by Prasanna G » Wed Jan 13, 2021 2:14 pm » in DFSORT/ICETOOL/ICEGENER - 5
- 1742
-
by Prasanna G
View the latest post
Wed Jan 13, 2021 11:16 pm
-
-
-
Merge multiple fixed length files of different record length
by corvette1982 » Mon Mar 01, 2021 11:46 pm » in JCL - 8
- 5196
-
by willy jensen
View the latest post
Tue Mar 02, 2021 3:02 am
-
-
- 1
- 3524
-
by samb01
View the latest post
Thu Jan 28, 2021 2:54 pm
-
- 1
- 7374
-
by enrico-sorichetti
View the latest post
Tue Sep 21, 2021 6:04 pm
-
-
Joining 2 vb files into vsam files ended error
by newbiemainframe » Thu Nov 12, 2020 7:59 am » in JCL - 1
- 1731
-
by NicC
View the latest post
Thu Nov 12, 2020 7:15 pm
-