From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,d9e06cc70dc21667 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-06-28 18:46:31 PST Path: bga.com!news.sprintlink.net!demon!bt!pipex!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!ames!tgv.com!WING From: wing@tgv.com ("Dan Wing") Newsgroups: comp.sys.dec Subject: Re: DCL Compiler Date: 28 Jun 1994 18:23:56 GMT Organization: TGV, Incorporated Message-ID: <2upprs$odp@news.arc.nasa.gov> References: Reply-To: wing@tgv.com NNTP-Posting-Host: hq.tgv.com In article , marc@ram.nl (Marc Gobes) writes: #Hi world ! # #I'am looking for an VMS tool which let me compile dcl routines #an which will gives me increased file I/O and above all better #error handling. I know tools like AWK but I don't want to rewrite #my existing DCL routines that much. # #Any ideas ? Check the ads in DN&R for such a product. If you reduce image activations within your DCL code, you can speed things up a bunch. For example, doing stuff like this is slow: $ DIR/OUTPUT=filename *.DAT $ OPEN/READ FILE filename $LOOP: $ READ/END_OF_FILE=EOF FILE FILENAME_TO_PROCESS $... $ GOTO LOOP $EOF: $ DELETE filename; but this would be faster, as it happens within DCL (no external file is created, no image activation, no file to delete). $LOOP: $ FILENAME_TO_PROCESS = F$SEARCH("*.DAT") $ IF FILENAME_TO_PROCESS .EQS. "" THEN GOTO EOF $... $ GOTO LOOP $EOF: The DIR and DELETE commands are image activations, the OPEN and READs cause file I/O (the F$SEARCH also causes file I/O, but it reduces it to what is necessary to get the information that we need). If you're doing image activations within a loop, things can get really nasty. ... And, only use DCL for things that lend themselves to being written in DCL, such as stuff to startup and control your nightly Backups, etc. Don't write your accounting package in DCL. -Dan Wing, wing@tgv.com