Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Sue Picard" <smp@mctel.com>
Subject: Multiple DCL Parameters and GET$FOREIGN in VAX BASIC
Date: 1997/12/17	[thread overview]
Message-ID: <c117cd$91e28.47@news> (raw)


Hello All,

Anyone up to the challenge of a DCL programming question?

I have a DCL batch program that sends 3 parameters to a VAX Basic
executable.  The Basic exe uses GET$FOREIGN for each of the parameters.  The
first parameter is just a static value, it is not a 'Px type of parameter
that is used when the batch job is submitted. It is an alpha string, like
MCT or CVT.  The next two parameters are 0P2 and P3, and they are numeric.
I am sending them to the executable with single quotes on each side, but the
executable reads the first value sent (the MCT, or CVT), then the P2 as one
string.  I have tried exhausting combinations of single and double quotes to
separate the get$foreign, and also got the first value (MCT) to get accepted
by the GET$FOREIGN by putting it on it's own line in the DCL, and then the
other two parameters together, but the second GET$FOREIGN is reading both P2
and P3 together as one.

I know that I can change the GET$FOREIGN command so that it reads the entire
group of parameters from one line, and then separate them using various
string functions, but I think I remember from WAY back (like, 8 years), a
system manager-type I used to know implementing a job that read character
and numeric params and sent them to a program *separately* using different
combinations of double and single quotes around each parameter that were
used as delimiters by the executable.  I have RTFM'd all the VAX/DCL
documentation we have here, and can't find this anywhere.

Is this true?  Was it ever? Or, am I just bound to read all the parameters
on one line and then have the executable divvy them up?

Thanks in advance,
-Sue






                 reply	other threads:[~1997-12-17  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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