View previous topic :: View next topic
|
Author |
Message |
gokuldass
New User
Joined: 18 Mar 2005 Posts: 48 Location: india
|
|
|
|
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 |
|
|
somasundaran_k
Active User
Joined: 03 Jun 2003 Posts: 134
|
|
|
|
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 |
|
|
sivatechdrive
Active User
Joined: 17 Oct 2004 Posts: 191 Location: hyderabad
|
|
|
|
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 |
|
|
gokuldass
New User
Joined: 18 Mar 2005 Posts: 48 Location: india
|
|
|
|
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 |
|
|
sinusam
New User
Joined: 06 Jan 2004 Posts: 18
|
|
|
|
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 |
|
|
itssreehere Warnings : 1 New User
Joined: 10 Jan 2006 Posts: 65 Location: chennai
|
|
|
|
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 |
|
|
sinusam
New User
Joined: 06 Jan 2004 Posts: 18
|
|
|
|
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 |
|
|
|