From: Ken Garlington <GarlingtonKE@lmtas.lmco.com>
Subject: Re: How to pass commandline parameters to a vax vms ada main prog
Date: 1997/01/27
Date: 1997-01-27T00:00:00+00:00 [thread overview]
Message-ID: <32ECAB9A.9CD@lmtas.lmco.com> (raw)
In-Reply-To: 1997Jan25.131045.1@eisner
Larry Kilgallen wrote:
>
> In article <32E94CAC.4148@lmtas.lmco.com>, Ken Garlington <GarlingtonKE@lmtas.lmco.com> writes:
>
> > In addition to the Ada advice already posted, don't forget that you
> > will need to define your executable as a foreign command; e.g. for
> > executable TEST.EXE
> >
> > TEST :== $disk:[directory]TEST.EXE
> >
> > The dollar sign at the front is important. Then, you should be able to
> > execute TEST as a verb:
> >
> > $ TEST stuff
> >
> > and read/parse "stuff" successfully.
>
> You can get away without defining a symbol if you are willing to do more
> typing for each invocation:
>
> $ MCR disk:[directory]TEST.EXE StUFf
However, you have to be careful with MCR, since it may not be portable.
I just tried it on my VAX, and got an error (RSX image not found). One
of the advantages of defining the image as a symbol (and, if you're
using the DCL parse routines, linking the CLD file in as an object file
vs. keeping it a separate CLD file) is that it will work just about
anywhere.
>
> An example of a situation where lots of typing per invocation is when
> every invocation will be from a command procedure. The computer does
> not care.
True, although you can define a symbol in this case as well.
>
> The basic rule about command line parsing in VMS, no matter how you
> do it, is that there will be nothing to parse if you use the RUN
> command to invoke the program.
>
> Larry Kilgallen
--
LMTAS - The Fighter Enterprise - "Our Brand Means Quality"
For job listings, other info: http://www.lmtas.com or
http://www.lmco.com
prev parent reply other threads:[~1997-01-27 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-23 0:00 How to pass commandline parameters to a vax vms ada main prog Markus Wolfgart
1997-01-23 0:00 ` Peter Amey
1997-01-23 0:00 ` Larry Kilgallen
1997-01-24 0:00 ` Ken Garlington
1997-01-25 0:00 ` Larry Kilgallen
1997-01-27 0:00 ` Ken Garlington [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox