home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / vms / 18217 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.4 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!spool.mu.edu!news.nd.edu!bsu-cs!bsu-ucs.uucp!00mjstum
  2. From: 00mjstum@leo.bsuvc.bsu.edu (Matthew J. Stum)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: DCL question.
  5. Message-ID: <1992Nov19.085331.12087@bsu-ucs>
  6. Date: 19 Nov 92 13:53:31 GMT
  7. References: <a2lq0gk@lynx.unm.edu>
  8. Organization: Widget Enterprises
  9. Lines: 31
  10.  
  11. hamjavar@hydra.unm.edu (Farid Hamjavar) writes:
  12. > Hello :
  13. > As you can tell the following simple DCL script prints its first two
  14. > parameters/arguments :
  15. > $ DISPLAY= "WRITE SYS$OUTPUT"
  16. > $ DISPLAY  "''p1'"
  17. > $ DISPLAY  "''p2'"
  18. > Now if any of the parameters starts with   /    this script will crash :
  19. > $ @t.com /parameter1  /parameter2
  20. > %DCL-W-IVQUAL, unrecognized qualifier - check validity, spelling, and placement
  21.  
  22. It's only if the first parameter begins with a /... other than that, you're
  23. fine.  The hack that I use when I wish to use qualifiers as parameters is
  24. something along the lines of:
  25.  
  26. $ COMMAND :== "@T.COM """""    ! sends a blank string to P1
  27.  
  28. And then $ COMMAND /PARAM1 /PARAM2  is perfectly legal.
  29. However, you have to shift all of your P#'s in your command procedure:
  30.  
  31. $ DISPLAY= "WRITE SYS$OUTPUT"
  32. $ DISPLAY  "''p2'"
  33. $ DISPLAY  "''p3'"
  34.  
  35. -- 
  36. Matt Stum                    Gwydion ap Myrddin       Ball State University
  37. 00mjstum@leo.bsuvc.bsu.edu   Shire of Afonlyn, MK     Muncie, IN  USA
  38.