View previous topic :: View next topic
|
Author |
Message |
chiru_sh
New User
Joined: 21 Feb 2008 Posts: 18 Location: Mumbai
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
chiru_sh
New User
Joined: 21 Feb 2008 Posts: 18 Location: Mumbai
|
|
|
|
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 |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Maybe by reading the code. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
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 |
|
|
|