IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Two different PDS production and test comparison


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mani453

New User


Joined: 19 Nov 2015
Posts: 13
Location: INDIA

PostPosted: Fri Nov 20, 2015 2:25 pm
Reply with quote

Hi

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.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2448
Location: Hampshire, UK

PostPosted: Fri Nov 20, 2015 5:23 pm
Reply with quote

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.
Back to top
View user's profile Send private message
Mani453

New User


Joined: 19 Nov 2015
Posts: 13
Location: INDIA

PostPosted: Fri Nov 20, 2015 6:43 pm
Reply with quote

Hi Nic

My client again requested me prepare a tool. For comparison of test and production also. Can you suggest me the rexx program.
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Moderator


Joined: 14 Mar 2007
Posts: 10712
Location: italy

PostPosted: Fri Nov 20, 2015 8:54 pm
Reply with quote

Quote:
Can you suggest me the rexx program.


nobody will waste time in explaining how to reinvent the wheel ...

anyway comparing <files> is simple
see the cobol snippet on two files match

but if it is - source code - data without a match key -
the task is probably outside Your skill level

so just convince Your client to use the tools/programs available and sweeten the pill by writing a wrapper around it.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2448
Location: Hampshire, UK

PostPosted: Fri Nov 20, 2015 8:58 pm
Reply with quote

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.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2567
Location: NYC,USA

PostPosted: Sat Nov 21, 2015 4:13 am
Reply with quote

Duplicate post. Mani, please don't waste time of others by adding duplicate posts that wouldn't help you to get the code.
ibmmainframes.com/viewtopic.php?t=64579&highlight=
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2214
Location: Silicon Valley

PostPosted: Mon Nov 23, 2015 11:36 pm
Reply with quote

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:
Code:
myparm = "DELTAL,LINECMP"         
Address LINKMVS "ISRSUPC MYPARM" 

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.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Group comparison/update between two f... DFSORT/ICETOOL 10
This topic is locked: you cannot edit posts or make replies. Related to using a file in comparison JCL & VSAM 8
No new posts a copybook getting improper values in... COBOL Programming 7
No new posts Problème reproducing a production bu... ABENDS & Debugging 1
No new posts Feild level validation to test first ... JCL & VSAM 10
Search our Forums:

Back to Top