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: 656
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: 1772
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: 7315

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: 7315

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
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
No new posts DATAFIX tool jzhardy DB2 0 Wed Aug 09, 2017 9:13 am
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm


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