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 

Subroutenes..A small doubt

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


Joined: 07 Apr 2004
Posts: 46
Topics: 29

PostPosted: Tue Aug 03, 2004 1:20 am    Post subject: Subroutenes..A small doubt Reply with quote

Hi,
If we are calling a COBOL Subprogram from a Main Cobol Program,
there is no need to specify .. Parm-length!!!... But if we are passing a
PARM from JCL to a COBOL Program in that occassion , we must specify
para meter length as s9(04) comp. Is there any special considerations for
this...? Does the called COBOL program automatically assumes para
meter length....?


Thanks and Regards,
Sai Krishna
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Tue Aug 03, 2004 6:50 am    Post subject: Reply with quote

Kris,
"s9(04) comp" is not the parm length, its the variable to store the length. When a program is called by another program there are established means of program-to-program communication. In case of CICS they would use the DFHCOMMAREA in a Batch process the PROCEDURE DIVISION USING clause would be provided. There are many more ways of communication. generally the parm length is not referenced in the program, but you may do so if needed. Thanks
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