Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Fetching command line parameters from Vax Basic
@ 1999-08-15  4:00 Philip Nasadowski
  1999-08-16  4:00 ` Larry Kilgallen
  1999-08-16  4:00 ` Adrian Birkett
  0 siblings, 2 replies; 5+ messages in thread
From: Philip Nasadowski @ 1999-08-15  4:00 UTC (permalink / raw)


Ok, Ok, I know Basic is dead :)

But, how can I fetch an arguement to the program typed in on the
commandline?  Effectively, I want to be able to pass a numerical value to
my program on the command line.  I know passing arguements is possible,
though the Vax Basic online docs don't seem to touch on this (and I'm 100
miles from the Vax - so I can't look at the hardcopy manual!)

Basically, what I'm doing here is a script for a web page (I was
origionally doing it as a DCL command proceedure, but that got too mess
too quick - what's the limits on those scripts anyway?).  Kind of a slide
show like thing - you pass it (in the URL) a number to indicate which
image you want to see, and it displays it, with forward / back buttons, a
small description, etc, or pass it 0 to get an index.

Please tell me this is possible, as I don't want to find an account on a
UN*X system to do this!!!

Thanks! :)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fetching command line parameters from Vax Basic
  1999-08-15  4:00 Fetching command line parameters from Vax Basic Philip Nasadowski
@ 1999-08-16  4:00 ` Larry Kilgallen
  1999-08-16  4:00   ` Philip Nasadowski
  1999-08-16  4:00 ` Adrian Birkett
  1 sibling, 1 reply; 5+ messages in thread
From: Larry Kilgallen @ 1999-08-16  4:00 UTC (permalink / raw)


In article <nasadowsk-1508992118040001@209-122-228-83.s337.tnt2.nyw.ny.dialup.rcn.com>, nasadowsk@mail.hartford.edu (Philip Nasadowski) writes:

> But, how can I fetch an arguement to the program typed in on the
> commandline?
The same way you do with any other language -- Call LIB$GET_FOREIGN
or LIB$DCL_PARSE, or even both, depending how you constructed your
program.

At some point you really do have to read the documentation.  Since
DEC has posted it on the World Wide Web there are few excuses.

Larry Kilgallen



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fetching command line parameters from Vax Basic
  1999-08-15  4:00 Fetching command line parameters from Vax Basic Philip Nasadowski
  1999-08-16  4:00 ` Larry Kilgallen
@ 1999-08-16  4:00 ` Adrian Birkett
  1 sibling, 0 replies; 5+ messages in thread
From: Adrian Birkett @ 1999-08-16  4:00 UTC (permalink / raw)


In macro, I assign a symbol to run a program (generate foreign command) and
then use lib$get_foreign in the program.

This, I find, is easier than using the lib$dcl_parse command and then having
to deal with command definitions.

Ade.

--My own opinion--


Philip Nasadowski wrote:

> Ok, Ok, I know Basic is dead :)
>
> But, how can I fetch an arguement to the program typed in on the
> commandline?  Effectively, I want to be able to pass a numerical value to
> my program on the command line.  I know passing arguements is possible,
> though the Vax Basic online docs don't seem to touch on this (and I'm 100
> miles from the Vax - so I can't look at the hardcopy manual!)
>
> Basically, what I'm doing here is a script for a web page (I was
> origionally doing it as a DCL command proceedure, but that got too mess
> too quick - what's the limits on those scripts anyway?).  Kind of a slide
> show like thing - you pass it (in the URL) a number to indicate which
> image you want to see, and it displays it, with forward / back buttons, a
> small description, etc, or pass it 0 to get an index.
>
> Please tell me this is possible, as I don't want to find an account on a
> UN*X system to do this!!!
>
> Thanks! :)




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fetching command line parameters from Vax Basic
  1999-08-16  4:00 ` Larry Kilgallen
@ 1999-08-16  4:00   ` Philip Nasadowski
  1999-08-17  4:00     ` Jerry Leslie
  0 siblings, 1 reply; 5+ messages in thread
From: Philip Nasadowski @ 1999-08-16  4:00 UTC (permalink / raw)


In article <1999Aug16.074400.1@eisner>, Kilgallen@eisner.decus.org.nospam wrote:

>At some point you really do have to read the documentation.  Since
>DEC has posted it on the World Wide Web there are few excuses.

What's the address for it - it'd be very useful to me!



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fetching command line parameters from Vax Basic
  1999-08-16  4:00   ` Philip Nasadowski
@ 1999-08-17  4:00     ` Jerry Leslie
  0 siblings, 0 replies; 5+ messages in thread
From: Jerry Leslie @ 1999-08-17  4:00 UTC (permalink / raw)


Philip Nasadowski (nasadowsk@mail.hartford.edu) wrote:
: In article <1999Aug16.074400.1@eisner>, 
: Kilgallen@eisner.decus.org.nospam wrote:

: >At some point you really do have to read the documentation.  Since
: >DEC has posted it on the World Wide Web there are few excuses.

: What's the address for it - it'd be very useful to me!

    http://www.openvms.digital.com:81
    OpenVMS documentation website
        
--Jerry Leslie     (my opinions are strictly my own)


P.S.: That site has a scheduled outage on Tuesday 17-Aug-1999,
      starting at 13:00 EST.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-08-17  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-15  4:00 Fetching command line parameters from Vax Basic Philip Nasadowski
1999-08-16  4:00 ` Larry Kilgallen
1999-08-16  4:00   ` Philip Nasadowski
1999-08-17  4:00     ` Jerry Leslie
1999-08-16  4:00 ` Adrian Birkett

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