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