View previous topic :: View next topic |
Author |
Message |
kris_madras Beginner
Joined: 07 Apr 2004 Posts: 46 Topics: 29
|
Posted: Tue Aug 03, 2004 1:20 am Post subject: Subroutenes..A small doubt |
|
|
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 |
|
|
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Tue Aug 03, 2004 6:50 am Post subject: |
|
|
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 |
|
|
|
|