Question for Alpha Users - Parameter passing QUICK Screens
Chris Sharman
Chris.Sharman@ccagroup.co.uk
Wed, 18 Aug 1999 08:59:16 +0100
>I've come accross many times when I needed to have a DCL job command file
>with parameters in the file that is used by QTP or QUIZ. I don't really
>want to have to code the entire command procedure in the quick screen
>before submitting it, but I haven't figured out a way to do it otherwise.
>
>For example, let's say you want to submit a command procedure that is like
>this:
>
>$QTP AUTO=GLS_EXE:GLST014.QTC
>2000
>02
>$QUIZ AUTO=GLS_EXE:GLSZ001.QZC
>$EXIT
>
>I've tried creating a command procedure like this and passed the
>parameters, but that doesn't work either. The substitution only works for
>DCL commands. QTP thinks you're giving "'p1" as the prompted value and it
>is not substituted correctly.
>
>$QTP AUTO=GLS_EXE:GLST014.QTC
>'p1
>'p2
>$QUIZ AUTO=GLS_EXE:GLSZ001.QZC
The way we do it is to prompt/validate in DCL, using systemval rather than parm
prompt in Quiz/QTP.
Eg:
MYJOB.COM:
$ if p1.eqs."" then-
$ read/end=fin sys$command p1/prompt="Start Date [YESTERDAY]: "
$ if p1.eqs."" then $ p1 := yesterday
$ php1 = f$cvtime(p1,,"date") - "-" - "-"
$! P2 ... P8 as necessary
$! any necessary validation, etc
$ quiz auto=
Note that read is used rather than inquire, because it works for captive
users. It (obviously) doesn't work in batch: the parameters must be passed in
to use it non-interactively. The Quiz/QTP is then always invoked via the .com,
so that the parameters are set up correctly.
Quiz actually uses PHP1, rather than P1, which is a VMS style date. Other
parameters types are easier.
Chris
_______________________________________________________________________
Chris.Sharman@CCAgroup.co.uk http://www.ccastat.demon.co.uk/
CCA Stationery Ltd, Eastway, Fulwood, Preston, Lancashire, PR2 9WS.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.