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
 

 

Xpedite an assembly program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
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    Post subject: Xpedite an assembly program
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Jun 19, 2008 7:42 pm    Post subject: Re: Xpedite an assembly program
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    Post subject: Reply to: Xpedite an assembly program
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    Post subject:
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: 755
Location: Germany

PostPosted: Fri Jun 20, 2008 5:53 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri Jun 20, 2008 6:07 pm    Post subject: Re: Xpedite an assembly
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: 755
Location: Germany

PostPosted: Mon Jun 23, 2008 4:25 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 3 Mon May 29, 2017 8:10 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm


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