home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / vms / 19965 < prev    next >
Encoding:
Text File  |  1992-12-28  |  2.1 KB  |  51 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!unixhub!slacvx.slac.stanford.edu!fairfield
  3. From: fairfield@slacvx.slac.stanford.edu
  4. Subject: Re: long, long, really long DCL commands
  5. Message-ID: <1992Dec28.125931.1@slacvx.slac.stanford.edu>
  6. Lines: 39
  7. Sender: news@unixhub.SLAC.Stanford.EDU
  8. Organization: Stanford Linear Accelerator Center
  9. References: <1992Dec28.172453.24421@ramsey.cs.laurentian.ca>
  10. Date: Mon, 28 Dec 1992 20:59:31 GMT
  11.  
  12. In article <1992Dec28.172453.24421@ramsey.cs.laurentian.ca>, george@ramsey.cs.laurentian.ca (George Nassas) writes:
  13. [...]
  14. > The manual tells me that DCL will gladly accept commands of 1024
  15. > characters although each individual line cannot go longer than 256
  16. > characters. Can anyone fill me in on how this works? I read all over
  17. > the FM for an example but couldn't find one.
  18. > At first I thought that I could get really long lines by going:
  19. >         $ 256 chars -
  20. >           256 chars - etc...
  21. > but no way. What gives? I've stumped all my local experts.
  22.  
  23.     DCL will accept ONLY 256 characters maximum on the command line,
  24. whether that line is continued on multiple, shorter lines in the input
  25. stream (terminal screen, command file) or not.
  26.  
  27.     The 1024 character limit has to do with the resulting command string
  28. after DCL has _expanded_ the command line, i.e., replaced symbols with their 
  29. "translations", evaluated lexical functions, etc.  For example, if you had a 
  30. symbol
  31.  
  32.     $ DF == "DIRECTORY/FULL"
  33.  
  34. and typed "DF", the DCL command line would be 2 characters (counted against
  35. the 256 character limit), while the expanded command would be 14 characters 
  36. long (counted against the 1024 character limit).
  37.  
  38.     I'm sure others can give a more precise exposition (Don Stokes, are you
  39. listening?), but this is the general idea...
  40.  
  41.     -Ken
  42. -- 
  43.  Dr. Kenneth H. Fairfield    |  Internet: Fairfield@Slac.Stanford.Edu
  44.  SLAC, P.O.Box 4349, MS 98   |  DECnet:   45537::FAIRFIELD (45537=SLACVX)
  45.  Stanford, CA   94309        |  BITNET    Fairfield@Slacvx
  46.  ----------------------------------------------------------------------------
  47.  These opinions are mine, not SLAC's, Stanford's, nor the DOE's...
  48.