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

patch the value of condition code in IBM debug tool


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vijay korde

New User


Joined: 19 Feb 2010
Posts: 27
Location: India

PostPosted: Wed May 18, 2011 5:16 pm
Reply with quote

Hello,

I want to patch the value of CC at run time. Is there any command to do it? Please help.

Thank you,
VIjay
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Wed May 18, 2011 10:07 pm
Reply with quote

Patch ??? please explain, or does it have a hole in it that needs patching ?
Back to top
View user's profile Send private message
vijay korde

New User


Joined: 19 Feb 2010
Posts: 27
Location: India

PostPosted: Fri May 20, 2011 9:50 am
Reply with quote

Let me rephrase my statement.

While debugging code with Debug tool, if current CC is 2 and I want to forcefully make it to 0. What is the command to do it?

Thank you,
Vijay
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Fri May 20, 2011 5:35 pm
Reply with quote

DT allows you to enter MOVE statements on the command line. Did you try: MOVE ZEROS TO RETURN-CODE ?
Back to top
View user's profile Send private message
vijay korde

New User


Joined: 19 Feb 2010
Posts: 27
Location: India

PostPosted: Tue May 24, 2011 5:49 pm
Reply with quote

I tried it but not working. I am debugging assembler code. I also wants to change the value of CC to 1, 2, or 3.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1787
Location: Bloomington, IL

PostPosted: Tue May 24, 2011 10:54 pm
Reply with quote

I am expert in neither HLASM not Debug Tool, but it doesn't seem intuitive that MOVE ZEROES TO RETURN-CODE would be efficacious. Have you tried modifying register 15 just before returning from the routine?
Back to top
View user's profile Send private message
vijay korde

New User


Joined: 19 Feb 2010
Posts: 27
Location: India

PostPosted: Wed May 25, 2011 1:46 pm
Reply with quote

Thank you Akatsukami. But I don't want to change the return code(RC) in R15. Rather I want to change the condition code(CC) that set in CLC instruction.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed May 25, 2011 1:53 pm
Reply with quote

After a week you get to tell us what you really want?

Can't it be as simple as changing the values of what you are comparing to get the different CCs?
Back to top
View user's profile Send private message
vijay korde

New User


Joined: 19 Feb 2010
Posts: 27
Location: India

PostPosted: Wed May 25, 2011 2:03 pm
Reply with quote

Condition code is the part of PSW. %CC is a debug tool variable.

We can modify PSW in Xpeditor. But how can we achieve it with IBM Debug tool?
Back to top
View user's profile Send private message
vijay korde

New User


Joined: 19 Feb 2010
Posts: 27
Location: India

PostPosted: Wed May 25, 2011 2:09 pm
Reply with quote

Thank you Bill for your reply.

But I want to change the value of CC as we can do it in Xpeditor not the values of the comparison fields.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed May 25, 2011 2:23 pm
Reply with quote

Well, I've not used Debug Tool, but looking at the manual just now..

Quote:

8.0 Debug Tool variables


Debug Tool reserves several variables for its own information. These Debug Tool variable names begin with a percent sign (%), to distinguish them from program variables. You can access Debug Tool variables while testing programs in any supported language.

You can use all Debug Tool variables in expressions. Additionally, the variables %EPRn., %FPRn., %GPRn., and %LPRn. (representing the types of registers) can be modified [...]


%CC and %PSW exist and can be 2in expressions". Maybe they can't be modified, seems to be the implication from the list that can be.

Sorry I can't be more help.
Back to top
View user's profile Send private message
vijay korde

New User


Joined: 19 Feb 2010
Posts: 27
Location: India

PostPosted: Wed May 25, 2011 4:04 pm
Reply with quote

Thank you Bill.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed May 25, 2011 9:09 pm
Reply with quote

Hello,

Quote:
But I want to change the value of CC as we can do it in Xpeditor not the values of the comparison fields.
Then you need to convince your management that they need to pay for Xpeditor. . .

Suggest you concentrate on the way the tools you have work and not on how some other tools do something similar. This will be quite frustrating icon_wink.gif
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 -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts purge jobs with return code 0 and ret... JCL & VSAM 4
No new posts Add condition to a FINDREP SORT card DFSORT/ICETOOL 4
No new posts To Omit records based n SORT condition DFSORT/ICETOOL 6
No new posts Using Multiple IFTHEN and WHEN condit... SYNCSORT 12
No new posts Need help In Mainframe Automation AF/... CLIST & REXX 14
Search our Forums:

Back to Top