VMS Help  —  Getinput  /LENGTH
   /LENGTH=(Minimum length,Maximum length)
   or
   /LENGTH=Fixed length

   When the user is requested to give a string or an integer with
   a fixed, or specified length, use /LENGTH

1  –  Example

   $ GETINPUT OutputSymbol /LENGTH=(8,12)/PROMPT="Enter a password"
   Enter a password: thisisatestpassword
   %GIP-W-LENERR, input is more than maximum length
   Enter a password: thisis
   %GIP-W-LENERR, input is less than minimum length
   Enter a password: thisisatest
   $ show symbol OutputSymbol
     OUTPUTSYMBOL = "thisisatest"

   $ GETINPUT OutputSymbol /LENGTH=(1,2)/TYPE=INTEGER/PROMPT="What value"
   What value: 123
   %GIP-W-LENERR, input is more than maximum length
   What value: 56
   $ show symbol OutputSymbol
     OUTPUTSYMBOL = "56"
Close Help