View previous topic :: View next topic
|
Author |
Message |
tecnokrat Warnings : 1 Active User
Joined: 22 May 2009 Posts: 160 Location: Bangalore
|
|
|
|
Hi,
can the TSO COMPARE command be used in REXX for comparing two given pds???
when given the below code i get a maxxcc of 20.
Code: |
"ISREDIT COMPARE" PDS1.X.Y PDS2.S.D |
Please can you suggest the possible way for tuning this command. |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
The compare command is not part of TSO - it is ISPF. In addition, ISREDIT commands are only valid within the ISPF editor, so the short answer is "No".
The long answer is either "maybe" or "yes" depending on how convoluted a solution you want. A better solution, however, is to do the same thing in your code that the editor COMPARE command does: Call ISRSUPC (the SuperC compare program) and parse the delta dataset from your code. The parameters and delta file formats are documented in one of the ISPF book appendices. |
|
Back to top |
|
|
tecnokrat Warnings : 1 Active User
Joined: 22 May 2009 Posts: 160 Location: Bangalore
|
|
|
|
say if the element is present in both the PDS1 and PDS2 and if want to get any compare issues i should get a message ,is that possible. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
tecnokrat wrote: |
Hi,
can the TSO COMPARE command be used in REXX for comparing two given pds???
when given the below code i get a maxxcc of 20.
Code: |
"ISREDIT COMPARE" PDS1.X.Y PDS2.S.D |
Please can you suggest the possible way for tuning this command. |
You are talking about TSO COMPARE, and 2 lines later you write ISREDIT COMPARE.
Obviously, you urgently need to read this post.
I suspect too that you've mixed macro commands (ISREDIT) in a TSO command, and that does not work.
Additionally, you can't compare two pds's. You can compare the list of members or the members themselves.
Please format your hard disk and start from scratch.
Now, what do you need to do? |
|
Back to top |
|
|
tecnokrat Warnings : 1 Active User
Joined: 22 May 2009 Posts: 160 Location: Bangalore
|
|
|
|
the ISPF command in the REXX im using it to compare same element present in two PDS.
Now if these two elements are same in their content and version i need not display any error message
and if there are any changes in the version only i need to send out a error.
now at what position can i get the element version from the OUTTRAP function. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
now at what position can i get the element version from the OUTTRAP function. |
why don' t You run the compare without the outtrap, so You can see Yourself what the output looks like ?? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
SUPERC returns one RC when datasets are identical, and another RC when they are not. You can simply test this RC.
O. |
|
Back to top |
|
|
|