Routine ID: Z262 | |
---|---|
Author(s): J. Ehrman | Library: KERNLIB, IBM only |
Submitter: | Submitted: 15.09.1978 |
Language: Assembler | Revised: 20.06.1985 |
OBSOLETE
Please note that this routine has been obsoleted in CNL 219. Users are
advised not to use it any longer and to replace it in older programs.
No maintenance for it will take place and it will eventually disappear.
Suggested replacement: IARGC (Z264)
GOPARM returns to a Fortran program the character string specified in the PARM field of the JCL corresponding to the step being executed. (This is the G-step when using the CERN procedure JFORTCLG).
Structure:
SUBROUTINE subprogram
User Entry Names: GOPARM
Usage:
CALL GOPARM(LENGTH,PARMS)
Restrictions:
In the VM-CMS operating system GOPARM must be called before any Input/Output operations have been performed. The mechanism for passing parameters depends on how a program is loaded. For a module type:
Module--name parameter--string
After a LOAD the parameters must be placed on the subsequent START command:
START entry--name parameter--string
If START is used as an option of LOAD then no parameters are passed and LENGTH is returned as zero. Note that any '(' will be passed as part of the parameter-string.
Notes:
The form with parentheses must be used if the parameter string is to be continued on a second JCL card, since a value or subvalue cannot be split over two JCL cards.
Examples:
The following are all equivalent:
//EXEC JFORTCLG,GPRM='FIRST,SECOND,THIRD=YES' //EXEC JFORTCLG,GPRM=(FIRST,SECOND,'THIRD=YES') //EXEC JFORTCLG,GPRM=('FIRST','SECOND','THIRD=YES')and give the following parm-string of length 22:
FIRST,SECOND,THIRD=YES