I want to write a code for comparison of two different PDS(one in production and other one will be in test). Whether it will be easy in rexx or easytreive.
Is that possible? because in that two pds, ps members will be same but qualifiers will be different. Can anyone suggest with the code.
Joined: 10 May 2007 Posts: 2255 Location: Hampshire, UK
Why not just adapt what you have in your other post? Yes, it is possible to write a program (not a code) in Rexx to do this and you were given a hint in your other thread.
Joined: 10 May 2007 Posts: 2255 Location: Hampshire, UK
SUPERC is a tool. But if you are going to re-invent the wheel I and you do not know rexx then start reading the manual - Keywords, Functions and Parsing in particular. And then the TSO Extensions manual - EXECIO. And then the ISPF Library Services manual - most parts.
Joined: 01 Sep 2006 Posts: 2144 Location: Silicon Valley
You know how to compare two files using a batch job, all you have to do is do the same in rexx...
To do the same in rexx, your program has to do:
1. allocate required DD statements using ALLOCATE command.
2. provide SYSIN file with data using EXECIO statement
3. Invoke SUPERC:
4. My suggestion is to VIEW the resulting OUTDD file after SUPERC finishes.
---
An alternate approach is to write a rexx program to VIEW a member of the production file and then have an initial editor macro that automatically issues the editor COMPARE command against the test file. The result is a panel that shows the differences in a member and where you can easily incorporate the differences.