VMS batch compile tricks 'n' tips. Have any?
Chris Sharman
chris.sharman@ccagroup.co.uk
Mon, 04 Aug 2003 09:20:19 +0100
Olmos, Fernando (Sericon at Alcoa) wrote:
> I used to have a really neat VMS dcl script, which would parse a text file
> full of QTP/QUIZ/QDESIGN files and compile them. It also had the ability to
> compile QUIZs and QTP that use subfiles, for which are not kept (ie: without
> the KEEP verb). Manually I have to do this by starting another session via
> the '$' command.
> ie:
> $QTP
> use program.qts nol
> use program-b.qts nol
> $$quiz
> use program-with-qtp-subfile.qzs nol
> etc
> etc
>
> Unfortunately in trying to put this into a DCL batch job, it crashes at the
> $$QUIZ stage because it is trying to interpret the command from within the
> same session.
DCL treats a leading $ in the input stream as EOF (ie go back to DCL),
unless you use $deck & $eod.
Eg.
$ qtp
$deck
use ...
use ...
$quiz auto=...
use ...
use ...
$eod
$ more dcl
If you need to nest this behaviour, deck takes a qualifier, but I've
never needed it myself. I don't know whether qtp would work this way (ie
pass input over to the subprocess) - I suspect not. I've always used
auto=, and no input to the subprocess.
Chris
Chris
-----------------------------------------------------------------------
Any views expressed in this message are those of the sender and not
necessarily those of CCA Group. The unauthorized use, disclosure,
copying or alteration of this message is forbidden. The contents of
this message may be confidential and/or privileged, copyright CCA Group
and are intended solely for the use of the individual or entity to whom
they are addressed. Whilst this message has been scanned, CCA Group
cannot guarantee that it is virus free or compatible with your systems
and accepts no responsibility for any loss or damage arising from its
use. The recipient is advised to run their own anti-virus software. If
you receive this message in error please contact
postmaster@ccagroup.co.uk immediately, destroy any copies and delete it
from your computer systems.