Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: wing@tgv.com ("Dan Wing")
Subject: Re: DCL Compiler
Date: 28 Jun 1994 18:23:56 GMT	[thread overview]
Message-ID: <2upprs$odp@news.arc.nasa.gov> (raw)
In-Reply-To: Cs3I8A.9Hp@ram.nl

In article <Cs3I8A.9Hp@ram.nl>, 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


  reply	other threads:[~1994-06-28 18:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-06-28  7:02 DCL Compiler Marc Gobes
1994-06-28 18:23 ` "Dan Wing" [this message]
  -- strict thread matches above, loose matches on Subject: below --
1994-07-03 16:04 Derek Arnold
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox