home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / vms / 19966 < prev    next >
Encoding:
Text File  |  1992-12-28  |  4.6 KB  |  95 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: CORRECTION: Re: long, long, really long DCL commands
  5. Message-ID: <1992Dec28.133901.1@slacvx.slac.stanford.edu>
  6. Lines: 83
  7. Sender: news@unixhub.SLAC.Stanford.EDU
  8. Organization: Stanford Linear Accelerator Center
  9. References: <1992Dec28.172453.24421@ramsey.cs.laurentian.ca> <1992Dec28.125931.1@slacvx.slac.stanford.edu>
  10. Date: Mon, 28 Dec 1992 21:39:01 GMT
  11.  
  12. In a previous followup, I said:
  13.  
  14. In article <1992Dec28.125931.1@slacvx.slac.stanford.edu>, fairfield@slacvx.slac.stanford.edu writes:
  15. [...]
  16. >     DCL will accept ONLY 256 characters maximum on the command line,
  17. > whether that line is continued on multiple, shorter lines in the input
  18. > stream (terminal screen, command file) or not.
  19.  
  20.     I WAS WRONG :-(  Geez, I wish I'd learn to test before posting...
  21.  
  22.     Neil Readwin <nreadwin@micrognosis.co.uk> gave a correct response,
  23. symbolically, which I verified myself.  Here are two examples captured
  24. from my terminal screen:
  25. -------------------------------------------------------------------------------
  26. Example 1:
  27. ----------
  28. $ show logical asdlfjkasdlfjkhaskldjfhalkjdfhaksjdfhaskljdfhlaskjdfhaskjdfhasklj
  29. dfhaskjdfhaskljdhfalkjfhalskdjfhakljsdfhalkjhdflkajhdflkasjhasldfkjhasdflkjhalks
  30. dfjhakldsjfhaksljdhkljahsdfkajhdflaiuwhfaksdjhfiauwhfakjdhfaiuhfkajlhdfakjldhfiu
  31. ahaskdjfhasdfkjhas
  32. %RMS-W-TNS, terminator not seen
  33.  
  34.     In this case, a single line typed at DCL exceeded the 256 character limit.
  35. The length of the text above is just 256 characters, but the error message was
  36. generated because (as I interpret it), DCL saw 256 characters without a <cr>
  37. or other "terminator".  The error message is "terminator not seen", after all.
  38.  
  39. -------------------------------------------------------------------------------
  40. Example 2
  41. ---------
  42. $ show logical asdfjhafkdljhadfkjhadfkjhasdfkjhqwiufhaskjdhfwiauhfaksjhdfiquwhfk
  43. asdjhfkaljsdhfukahdfauhdfjhakljsdfhalukhefklahfkasjdhfiuqhfkjasdhfklauhefkasjdhf
  44. kajdhfkuahfklajhdfkluahekjasdhfuahfkjadshfiuahfeasdjfhdakjlhfawhasdjhvdakjfhiuah
  45. adkjfhadkfjsha,-
  46. _$ asldfkjaldkfjaslkdfjalsdkfjaslkdfjaslkdfjaslkdfjalskdfjsalkasdfjhaekfjhasdfha
  47. kehfkadjhfkajshdfkajhdfkjadhfkjasdhfkweuahjasdhfkuahfkjdghjadfhkulaehaksdjhfkadu
  48. hfkahfkdjhfhaiuhfkjdhfawkuehfkasjdhfkahdfkjasdhfkhuwqehfajsdhfkadduhfkuaehfkjdhf
  49. kahdfjhakjdfha,-
  50. _$ lsdfjaslkdfjaslkdfjaslk;dfjaoijfasldkghadsfjlkajfliasdjflkasdjfglk;asdjflkasd
  51. jflkasdjflkasjdflaskgdjasdihfasdlkjfalskddjflaksdjfaijflkasdjfasdlkjfadlskjfaijf
  52. adskfjalkdfjaslkdfjaasdfljaelkjdsafhasjkhfauehfdaskhfalkuefasdjhfasdjkhfauhdjhfa
  53. uhfajhdfjkahjk,-
  54. _$ asdkjfaslkdfjalksdjfalksdjfalksjdfalksdfjalskdfjaiejfakdsjfiarjfdkjfaijfadkfj
  55. iajfdkjfalkdjfaijfdashfdasjflkaeifhadkfjagrijafaohfdlkfhauhafhhadfhafadsjhfauhdf
  56. ahdfkasdhfuahfudahfadjhfaeuhrauhfuahjfhugfjfhadukhufahfuhfhuhfasduhfawegfldhfuia
  57. ewryadfksdjhda,-
  58. _$ asdfdsfrkjsdlfkj
  59. %DCL-W-BUFOVF, command buffer overflow - shorten expression or command line
  60.  \ASDFDSFRKJSDLFK\
  61. $
  62.  
  63.     I haven't done the arithmetic carefully (it takes a long time to hit all
  64. those keys! ), but if I subtract off the prompt string, the first line is
  65. 254 chars, the second, third and forth are 253 chars, and the last is 15 chars,
  66. giving a total of 1038 characters.  Since the total exceeds 1024, the error
  67. message is "command buffer overflow ...".
  68.  
  69. -------------------------------------------------------------------------------
  70. >     The 1024 character limit has to do with the resulting command string
  71. > after DCL has _expanded_ the command line, i.e., replaced symbols with their
  72. > "translations", evaluated lexical functions, etc.  For example, if you had a
  73. > symbol
  74. >
  75. >     $ DF == "DIRECTORY/FULL"
  76. >
  77. > and typed "DF", the DCL command line would be 2 characters (counted against
  78. > the 256 character limit), while the expanded command would be 14 characters
  79. > long (counted against the 1024 character limit).
  80.  
  81.     I believe this assertion is still true, with the modification that the
  82. 256 character limit is on any single line, possibly a continuation line.
  83.  
  84. >
  85. >     I'm sure others can give a more precise exposition (Don Stokes, are you
  86. > listening?), but this is the general idea...
  87.  
  88.     Indeed, I'd rather hear what an EXPERT has to say ;-)
  89. --
  90.  Dr. Kenneth H. Fairfield    |  Internet: Fairfield@Slac.Stanford.Edu
  91.  SLAC, P.O.Box 4349, MS 98   |  DECnet:   45537::FAIRFIELD (45537=SLACVX)
  92.  Stanford, CA   94309        |  BITNET    Fairfield@Slacvx
  93.  ----------------------------------------------------------------------------
  94.  These opinions are mine, not SLAC's, Stanford's, nor the DOE's...
  95.