full name of source file-&$FNAM not right


Question

I'm writing a macro and need to know the full name of the source file. The symbol &$FNAM only returns a portion of the file name.

Answer

  Parse the symbol &$PARM which contains the SCRIPT command options list. In
  CMS, the list is divided into eight-byte tokens separated by blanks and
  parentheses and truncated at 32 tokens. In TSO, the first 256 bytes of the
  command line is available from &$PARM.

  BookMaster has additional symbols:

  &@docname returns the full file descriptor for the master source file.

  &@cur@file returns the current filename.

Last updated: 93/08/24 16:39:14

Previous Contents Next