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

tso compare command


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

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Tue Mar 09, 2010 11:52 am
Reply with quote

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
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Tue Mar 09, 2010 11:57 am
Reply with quote

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
View user's profile Send private message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Wed Mar 10, 2010 2:58 pm
Reply with quote

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
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Mar 10, 2010 5:04 pm
Reply with quote

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
View user's profile Send private message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Wed Mar 10, 2010 6:29 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Mar 10, 2010 6:34 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Mar 10, 2010 7:34 pm
Reply with quote

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
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top