From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,cdca3dc8d6167cd4 X-Google-Attributes: gidfdb0e,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2001-12-29 10:15:33 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!nntp2.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!bin5.nnrp.aus1.giganews.com.POSTED!not-for-mail Message-ID: <3C2E08C7.D874209D@fsi.net> From: "David J. Dachtera" X-Mailer: Mozilla 4.77 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: historical evidence of what went wrong at DEC References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C2D48CE.FA4FF25A@fsi.net> <2lok0a.sh9.ln@dadsys1.fuller.local> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Date: Sat, 29 Dec 2001 12:15:16 CST Organization: Giganews.Com - Premium News Outsourcing X-Trace: sv3-PlPDbdGo1YxTxSLVs6a/MFF+qdiGv6RFZJvycccRDKrasDptlBu0udncHTIt4Dav9UhjWCwDbElmR3Z!g7L6tsuf+vLpKVNtTUhTF5gGudDkKj8HMiHIyELbKKWSK86nNxOvWCWm7g== X-Complaints-To: abuse@GigaNews.Com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Date: Sat, 29 Dec 2001 18:15:16 GMT Xref: archiver1.google.com comp.os.vms:57311 alt.sys.pdp10:8850 comp.sys.dec:10446 "Stuart R. Fuller" wrote: > > In comp.sys.dec David J. Dachtera wrote: > : Michael Zarlenga wrote: > :> > :> In comp.os.vms Bill Pechter wrote: > :> : As far as the Unix vs. VMS issue... > :> : Considering I make my living on Unix boxes now... it took years of work > :> : to get me as productive as I was in days with VAX/VMS. > :> : That's pretty high praise for OpenVMS. > :> > :> This 15+yr VMS user who also has 2+yrs of Unix finds Unix much > :> easier to use for most of the tasks I do. I really hate to say > :> that, but its scripting languages are light years beyond DCL. > > : In what way? No response, eh? > : How do I get a shell to check/verify command line options and values (if > : any) before it invokes the program? > > Why is that an issue? If, in DCL, you type an invalid command line option or > value, you get an error message saying you can't do that. In Unix, many > programs will not only give you an error message, but will also provide a > short help screen. ...but at that point, you've already expended the resources and machine cycles to invoke the program instead of catching the error prior to that point. *THAT* is why it's an issue! > : How do I enable command/option abbreviation? > > In a script (remember, scripting languages are the subject here), command line > abbreviations are NOT recommended. ...or even possible! Digital also recommended against it, but of course, everyone does it anyway ("SUBM/NOT" instead of "SUBMIT/NOTIFY" for example). > : How do I get filespec expansion to recurse directories? > > That's not a scripting language issue - that's RMS. Wrong-O! It's an ODS issue! RMS only comes into play when the system is reading a directory file (or maybe not - not sure if that's done by the primitives or the higher level code). > Besides, how do you get > DCL to give you a list of all the files that have been accessed (not simply > created) in the past 2 days, with a link to one or more other filenames, that > have a specific set of protections, and when done, display that list of > filenames in variety of formats to suit the occasion. Again, this is an ODS issue. Remember: /bin/ls is *EXTERNAL* program! ...*NOT* the shell! If any of that were important, one could easily write a (system of) DCL "script(s)" to perform those functions, within the limits of ODS functionality. > : How do I get the shell to perform simple numeric calculations? ...string > : manipulation (concatenation, reduction ala DCL)? ...conversion from > : binary datatypes to string datatypes (ala F$CVxI())? > > Simple numeric calculations? In ksh: > > let x=4*8 > echo $x > > String manipulation? Use awk. Here again, that's "awk" - *NOT* the shell! > Datatype conversion? Not necessary. Don't bet on it! > : How do I get the shell to "export" variables to "outer" levels (ala DCL > : global symbols)? > > Good point. How do you do it in DCL? $ A = 1 ! Local symbol - visible at current depth or lower $ A == 1 ! Global symbol - visible at all depths (including 0). > $ show sym test > %DCL-W-UNDSYM, undefined symbol - check validity and spelling > $ test:==this is a test > $ show sym test > TEST == "THIS IS A TEST" > $ spawn > %DCL-S-SPAWNED, process FULLER_1 spawned > %DCL-S-ATTACHED, terminal now attached to process FULLER_1 > $ show sym test > TEST == "THIS IS A TEST" > $ test:==this is a new test > $ show sym test > TEST == "THIS IS A NEW TEST" > $ log > Process FULLER_1 logged out at 29-DEC-2001 10:42:07.79 > %DCL-S-RETURNED, control returned to process FULLER_0 > $ show sym test > TEST == "THIS IS A TEST" This is a documented behavior. Per: $ CREATE D1.COM $ A = 1 $ SH SYM A $ @D2 $ SH SYM A $ EXIT ^Z $ $ CREATE D2.COM $ SH SYM A $ A == 2 $ EXIT ^Z $ Try THAT and see what you get. > : How do I get the shell to open/process an indexed file (i.e., do C-ISAM > : the way DCL does RMS)? ...return information about the system (ala > : F$GETSYI())? ...return info. re: the crontab or "atd" (ala F$GETQUI())? > > When was the last time you really needed to know the cluster incarnation > date/time? Recently wrote a SHCLU.COM procedure. Can't cut-and-paste a sample right now - I'd have to log off the internet and dial into work instead (no VPN tunnel). It shows not only when the cluster was founded, but by whom (which node), as well similar info. on each node of the cluster. Couldn't get that from SHOW CLUSTER the way I wanted it. > In DCL, how does one do looping? $label: . . . $ GOTO label > How does one perform a series of actions on > a group of filenames, or just a group of names (not necessarily files) without > a lot of GOTO here and there. DCL is a non-structured language. One of its many limitations. This does not, however and IMO, reduce the value of its many advantages. > Stu > (not anti-VMS or anti-DCL - just tired of the "my OS or CLI is better > than yours" crap. It's just a different way of doing things.) Agreed. Depends what you need. The "problems" arise when you need to do something the environment doesn't support, such as long strings or looping constructs in DCL, or indexed files or string reductions in a shell script. I guess if an "ideal" CLI were possible, it would support the features of the shells and the versatility and functionality of DCL. Maybe DII-COE will bring something interesting - y'never know... -- David J. Dachtera dba DJE Systems http://www.djesys.com/ Unofficial Affordable OpenVMS Home Page: http://www.djesys.com/vms/soho/