Product Site

5.1.5.27. name

Returns the string name of the package.

The package name may be
  • the absolute path of the executing program,
  • any name that was specified when creating an instance of a Package or Routine class,
  • "REXX" for classes defined by Rexx, or
  • "INSTORE" for code executed through the rexx -e command.

Example 5.45. Package class — name method
say .context~package~name              -- e. g. C:\ExamplePackageName.rex
say .Class~package~name                -- REXX
say .Routine~new("rtn", "return .context~package~name")[]  -- rtn
say .Package~new("pkg", "")~name       -- pkg