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

Xpedite an assembly program


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chiru_sh

New User


Joined: 21 Feb 2008
Posts: 18
Location: Mumbai

PostPosted: Thu Jun 19, 2008 5:59 pm
Reply with quote

Hi,

I am trying to debug a ASSEMBLY program after which a COBOL program is called through Xpeditor.

Let me explain:

There is a Assembly Pgm 'A' which is populating some value in a variable. This value is then printed in a report in COBOL pgm 'C'. I want to find the variable in Assembly which is being printed in pgm 'C'.

So thru expeditor when I reach pgm C. I want to retrace to pgm 'A'.

Is retracing possible in assembly. If not, what can I do in this case.

Please let me know what options I can use in Xpeditor.

Thanks in advance.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Thu Jun 19, 2008 7:42 pm
Reply with quote

I'm unsure whether you can do this or not, but, I need to ask the following.

Is the Assembler program the Main-Program who then BALR's (CALL's) the COBOL program, which I'm guessing is LE compliant?

The reason I ask has to do with R12 (Register 12), which points to the "Common Anchor Area" (CEECAA) in each LE Enclave.

IMHO, R12 is "Off Limits" when you're dealing with LE-compliant COBOL and non LE-compliant Assembler.

Corrupting R12 will cause unpredictable results and an abend.

Regards,

Bill
Back to top
View user's profile Send private message
chiru_sh

New User


Joined: 21 Feb 2008
Posts: 18
Location: Mumbai

PostPosted: Thu Jun 19, 2008 8:01 pm
Reply with quote

Thanks for reply....

Actually the screnario is like this

There is a main COBOL program which calls Assembly program....See the figure
calls
Mainpgm 'C1' ----> Assembly pgm 'A' (Populates some var X)
<----
calls
-----> Cobol pgm 'C2' (Writes this value to a file)

This Var X is coming incorrect in the file. I dont know which variable in assembly is populating this Var X.

So want to back-track from pgm 'C1' to pgm 'A'. I am not getting in Mainpgm 'C1' where the pgm 'A' is called.

So want to expedite back in C1 to pgm A, so that I can come to know where the pgm A is called.

Let me know if you understood the screnario.

I am stuck at this point. Please tell how can i can backtrack to A.

Any other solution also invited.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Jun 19, 2008 8:17 pm
Reply with quote

Maybe by reading the code.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Fri Jun 20, 2008 5:53 pm
Reply with quote

Hi chiru_sh !

There's no Back-tracking. Start your trace-session with programm C1.
Set breakpoints before Assembler-Pgm is called and after the return.

Then INT the Assembler-Programm and also define your breakpoints. Step throught it. You could always switsh beetween the modules using SOU Command.

Nice trace & nice weekend
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Jun 20, 2008 6:07 pm
Reply with quote

UmeySan,

The million dollar question on my mind would be "Has his shop purchased the Assembler XPEDITER Source-Level Option"?

If not, then he'll have to set his breakpoints on offsets.

This works, but it can be cumbersome.

Regards,

Bill
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Mon Jun 23, 2008 4:25 pm
Reply with quote

Pleasant Morning Bill !

Sorry, I hadn't waste much thought on the fact, that a company which operates assembler programs has not installed the SubTool for assembler.
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 -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top