Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

tso compare command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: tso compare command
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: 401
Location: Mumbai

PostPosted: Tue Mar 09, 2010 11:57 am    Post subject:
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    Post subject:
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: 1232
Location: Israel

PostPosted: Wed Mar 10, 2010 5:04 pm    Post subject: Re: tso compare command
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Wed Mar 10, 2010 6:34 pm    Post subject: Reply to: tso compare command
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: 2360
Location: Israel

PostPosted: Wed Mar 10, 2010 7:34 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts compare 2 rows within the same file ram_vizag SYNCSORT 7 Wed Jun 14, 2017 12:34 am
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm
No new posts fuzzy compare Martylin JCL & VSAM 9 Thu Mar 30, 2017 2:45 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us