MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Static call haven't retain values

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
mainframemouli
Beginner


Joined: 23 Feb 2005
Posts: 87
Topics: 33

PostPosted: Fri Mar 16, 2007 7:55 am    Post subject: Static call haven't retain values Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Fri Mar 16, 2007 12:31 pm    Post subject: Reply with quote

mainframemouli,

Please search before posting. Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=3788&highlight=initial

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mainframemouli
Beginner


Joined: 23 Feb 2005
Posts: 87
Topics: 33

PostPosted: Sat Mar 17, 2007 12:22 am    Post subject: Reply with quote

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
View user's profile Send private message
mainframemouli
Beginner


Joined: 23 Feb 2005
Posts: 87
Topics: 33

PostPosted: Sat Mar 17, 2007 1:43 am    Post subject: Reply with quote

Thanks kolusu its working now....
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group