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 

commarea

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


Joined: 09 May 2003
Posts: 131
Topics: 64

PostPosted: Tue May 13, 2003 10:31 am    Post subject: commarea Reply with quote

Hi ,
I'm new to mainframes.Can u expalin the difference between commarea,dfhcommarea and
linkage section.
for ex:
say pgm1 has this command:

EXEC CICS LINK
PROGRAM (pgm2)
COMMAREA (PARAMETER-AREA)
LENGTH (LENGTH-PRM)
END-EXEC


what should be there in pgm2 commarea and linkage ?

Thanks,
Vijay
Back to top
View user's profile Send private message
vijay
Beginner


Joined: 09 May 2003
Posts: 131
Topics: 64

PostPosted: Tue May 13, 2003 11:37 am    Post subject: Reply with quote

I mean to ask when I use the LINk command as above -- are all the variables in the linkage section available for use in the called program ?
Back to top
View user's profile Send private message
manojagrawal
Beginner


Joined: 25 Feb 2003
Posts: 124
Topics: 29

PostPosted: Wed May 14, 2003 1:28 am    Post subject: Reply with quote

Hi Vijay,

When you link to a new program, you are passing the commarea in the COMMAREA parameter.

Now in the called program, you would have to have a linkage section to recieve this commarea. Then you copy the linkage section to your own working storage and do what you need to. Now, you have to keep track of all sizes. They should match up, i mean the length of the commarea and the place where you are receiveing it. Otherwise you will loose data and may get a LENGERR abend.

Hope that helps!
Regards,
Manoj.
Back to top
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Thu May 15, 2003 12:46 am    Post subject: Reply with quote

When a new transaction starts there is NO commarea available at first.
It is very important to know that the commarea HAS to be built from working storage. The receiving program uses the linkage area. Any enlargement of the commarea (increase of length) MUST again be built from the working storage. Disregarding this will cause storage violations in CICS, which can cause unpredictable results and crashes.
Back to top
View user's profile Send private message Visit poster's website
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