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

how to solve dump in assembler program..


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gokuldass

New User


Joined: 18 Mar 2005
Posts: 48
Location: india

PostPosted: Thu Mar 24, 2005 12:24 am
Reply with quote

can any one help me to say how to resolve dumps that was created while submited a assembler job in mainframe environment..
also for example,, if i am having a cobol program..
and this program sends some data while calling a subprogram which is an assembler program.. can i find the number of parameters passed by the main program(cobol program).. if so help me..
Back to top
View user's profile Send private message
somasundaran_k

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Thu Mar 24, 2005 1:32 am
Reply with quote

Gokuldass
By looking the CALL statement in the main COBOL program you will be able to find the number of parameters ,right?

Something like
CALL 'ASMSUB' USING PARM-1 PARM-2 PARM-3.


hth
-Som
Back to top
View user's profile Send private message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 191
Location: hyderabad

PostPosted: Thu Mar 24, 2005 10:54 am
Reply with quote

Hi gokuldass


We need to use the complier options map & list to know where is the problem..

compile the assembler program seperatly&
include the obj module while compiling the cobol mainprogram...
check the number of parameters parameteres passed & recieved...

In the dump we i will get a OFFset value where error has occured...the MAP compiler option gives us the entry points of both the programs...so u can identity in which program the error is

Go to the complier listing..as the compiler option LISt gives us the offeset value aganist each verb..we can exactly identify where the error is......
u can also use ABENDAID,XPEDITER tools or use multiple WTO or DISPLAY"S to identify the error...


Thanks
Siva
Back to top
View user's profile Send private message
gokuldass

New User


Joined: 18 Mar 2005
Posts: 48
Location: india

PostPosted: Fri Oct 21, 2005 9:59 am
Reply with quote

Hi,

Thanks for your update.

Now i want to see the register contents while my program is executed successfully.. Is it is possible for me.

Regards,
Gokul dass.
Back to top
View user's profile Send private message
sinusam

New User


Joined: 06 Jan 2004
Posts: 18

PostPosted: Mon Jan 16, 2006 2:40 pm
Reply with quote

There are two callers for a sub program. The first caller have 3 parameters and the second caller have 4 parameters. Then how will find the number of parameters passed (or who is the caller) from the subprogram ?

regards,
Sinu
Back to top
View user's profile Send private message
itssreehere
Warnings : 1

New User


Joined: 10 Jan 2006
Posts: 65
Location: chennai

PostPosted: Mon Jan 16, 2006 6:13 pm
Reply with quote

Normally if you have 2 caller pgms for same sub program both will have same format of call stmt.It's not necessary, but it's a standard.So number of parameters will be same eventhough in some occassions some of the parameters are not being used.

If you don't want to pass all the parameters you can omit unwanted ones,but they should not be in the middle of the list.They should be at the end of the list.Else linkage mapping will fail.

So only the call statement will give you the right number of parameters.

sreejith
Back to top
View user's profile Send private message
sinusam

New User


Joined: 06 Jan 2004
Posts: 18

PostPosted: Tue Jan 17, 2006 12:09 am
Reply with quote

Dear Sreejith,

Thanks for your quick reply. Your viewpoint is right.

But the situation is that, we don't have access to the caller and the subprogram was previously implemented in Assembly language. So we were able to identify the last parameter by reading the general purpose register 1, by checking the MSB (will be set). Hence, when it is converted to COBOL, we need a mechanism to get the count of parameters, from the Sub program itself.

Best Regards,
Sinu
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 -> COBOL Programming

 


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