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
 

 

patch the value of condition code in IBM debug tool

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
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    Post subject: patch the value of condition code in IBM debug tool
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: 8593
Location: Back in jolly old England

PostPosted: Wed May 18, 2011 10:07 pm    Post subject:
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    Post subject:
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: 641
Location: Whitby, ON, Canada

PostPosted: Fri May 20, 2011 5:35 pm    Post subject:
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    Post subject:
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: 1738
Location: Bloomington, IL

PostPosted: Tue May 24, 2011 10:54 pm    Post subject:
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Wed May 25, 2011 1:53 pm    Post subject:
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    Post subject:
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Wed May 25, 2011 2:23 pm    Post subject:
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    Post subject:
Reply with quote

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

Site Director


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

PostPosted: Wed May 25, 2011 9:09 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
This topic is locked: you cannot edit posts or make replies. Need to code a Rexx PGM sundaram.naveen CLIST & REXX 18 Thu Oct 06, 2016 6:45 pm
No new posts Need Help in understanding what is th... mainakdalal PL/I & Assembler 9 Mon Oct 03, 2016 8:03 pm


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