View previous topic :: View next topic |
Author |
Message |
mainframemouli Beginner
Joined: 23 Feb 2005 Posts: 87 Topics: 33
|
Posted: Fri Mar 16, 2007 7:55 am Post subject: Static call haven't retain values |
|
|
I have a program AAA which calls Prog BBB
The call is a static call, I am passing some parameters to the sub program BBB from the main program AAA
but the problem is the values are not retained between the main and sub program which normally happens for a static call.
The Link card for the main program is :
Code: |
INCLUDE OBJLIB(LZCLOAD,LZALOAD)
INCLUDE SYSLIB(RNUABEND)
INCLUDE SYSLIB(AAA)
ORDER AAA
ENTRY AAA
NAME AAA(R)
|
the sub program has no link cards and has only Link-edit that points to main program AAA.
What i have checked for.
1. The main and sub program are compiled with NODYNAM option only.
2. The sub program's load is in the main program , i verified.
3. I ran the AMBLIST to see the CSECT
but i am getting the error as below.
Code: | **** D I A G N O S T I C D I R E C T O R Y ****
AMB114I CSECT NAME ASSOCIATED WITH AN IDR DATA ENTRY CANNOT BE FOUND
|
Can anyone throw some light on this.... |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
mainframemouli Beginner
Joined: 23 Feb 2005 Posts: 87 Topics: 33
|
Posted: Sat Mar 17, 2007 12:22 am Post subject: |
|
|
Kolusu,
I have checked the post you have sent me earlier itself,
The AAA (main program ) calls sub-program BBB with static call only and still the values in the working storage are not retained.
The sub program BBB and main program AAA are not mentioned with INITIAL and there is no CANCEL statement used in the Main program AAA
before calling the sub-program. |
|
Back to top |
|
|
mainframemouli Beginner
Joined: 23 Feb 2005 Posts: 87 Topics: 33
|
Posted: Sat Mar 17, 2007 1:43 am Post subject: |
|
|
Thanks kolusu its working now.... |
|
Back to top |
|
|
|
|