![[Toc]](../../toc.gif)
![[Index]](/idx.gif)
PARSE SOURCE
<PARSE SOURCE returns 3 tokens with the following information:
1. token: Operating system
This can be OS/2, TSO, CMS or any other operating system with a REXX
interpreter. (see Writing OS independent programs for an example for
using this value)
2. token: call type
This is COMMAND if the REXX program was called from the command line,
or SUBROUTINE if the REXX program was called from another REXX
program. (see Parameter for a REXX program for an example for using
this value)
3. token: fully qualified name of the source file
Note for OS/2 REXX: If this token only contains the name of the REXX
program without the path, the REXX program is in the macro space.
Example REXX program:
/* sample for using PARSE SOURCE */
parse source operatingSystem commandType sourceFileName
say "The Operating system is <" || operatingSystem || ">."
say "The call type is <" || commandType || ">."
say "The name of the source file is <" || sourceFileName || ">."
(see also Get the invocation syntax)
Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs