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
 

 

how to solve dump in assembler program..

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: how to solve dump in assembler program..
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    Post subject:
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: 190
Location: hyderabad

PostPosted: Thu Mar 24, 2005 10:54 am    Post subject: Re: how to solve dump in assembler program..
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    Post subject: Is it possible to display the register content using WTO mac
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    Post subject: number of parameters in runtime
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    Post subject:
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    Post subject: Re: how to solve dump in assembler program..
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts A not very Christmassy PL/I tale, wit... prino PL/I & Assembler 3 Mon Dec 26, 2016 1:01 am
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm


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