On May 25, 2005, at 1:59 AM, Paul Gilmartin wrote:
In a recent note, Joe Zitzelberger said:
Date: Wed, 25 May 2005 00:56:23 -0400
The original point was that "an application programmer writing in
COBOL...should not know it is possible for programs to be invoked by
anything other than EXEC PGM=". Considering the prevalence of the
CALL
statement in common COBOL usage, that claim cannot be valid. There
are
may ways, other than "EXEC PGM=", for a program to receive control --
and programmers know it.
I can't really answer your 'main program' comment because there is no
such thing in the z/OS COBOL world. There is nothing special that
distinguishes a "main" program from any other program. If a program
can be invoked via JCL it can be invoked via call. The parms, as
shown
above, can easily be identical for either JCL or call, and there is no
special way for a callee to know how it was invoked.
Does COBOL's CALL, like TSO's CALL limit the PARM passed to 100
characters?
No, the current limit is 16M when calling another COBOL program. But
multiple parms can always be passed, nor must they be JCL parm style
pstrings.
[EMAIL PROTECTED]
There's no place like ~
There's no place like ~
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html