Library /sys$common/syshlp/helplib.hlb  —  Getinput  /TYPE
   /TYPE=INTEGER

   When the user is only allowed to enter an integer as answer,
   use /TYPE=INTEGER. The user is then prompted for an integer answer.

   /TYPE=DATE

   When the user is only allowed to enter a valid OpenVMS date
   as answer, use /TYPE=DATE. The user is then prompted for a date
   as answer.

   As input TODAY, TOMORROW and YESTERDAY are also accepted.

   /TYPE=FILE

   When the user is only allowed to enter a valid OpenVMS file
   specification as answer, use /TYPE=FILE. The user is then prompted
   for a valid file specification.

1  –  Examples

   $ GETINPUT OutputSymbol /TYPE=INTEGER/PROMPT="Enter an integer"
   Enter an integer: test
   %GIP-W-INPERR, input has to be numeric
   Enter an integer: 6
   $ show symbol OutputSymbol
     OUTPUTSYMBOL = "6"

   (Getinput always returns a string symbol, even with /TYPE=INTEGER)

   $ GETINPUT OutputSymbol /TYPE=DATE/PROMPT="Enter start date"
   Enter start date: test
   %GIP-W-IVATIME, invalid absolute time - use DD-MMM-YYYY format
   Enter start date: tomorrow
   $ show symbol OutputSymbol
     OUTPUTSYMBOL = "24-NOV-2006"

   $ GETINPUT OutputSymbol /TYPE=FILE/PROMPT="Give output file"
   Give output file: &
   %GIP-W-NOFILE, no valid file specification given
   Give output file: test.log
   $ show symbol OutputSymbol
     OUTPUTSYMBOL = "test.log"
Close Help