Re: Newbie, Parameters to an application
From: Hoff Hoffman (hoff_at_hp.nospam)
Date: 06/04/04
- Next message: Bill Gunshannon: "Re: CSWS 2.0 + TCPware 5.6 ???"
- Previous message: Rick Barry: "Re: CSWS 2.0 + TCPware 5.6 ???"
- In reply to: sebastien: "Newbie, Parameters to an application"
- Next in thread: sebastien: "Re: Newbie, Parameters to an application"
- Reply: sebastien: "Re: Newbie, Parameters to an application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 04 Jun 2004 16:05:26 GMT
In article <bfd5f3ca.0406040030.364ec1b9@posting.google.com>, ethiobite@yahoo.com (sebastien) writes:
:I done a simple application in Ada and passed it some parameters,
Please see the OpenVMS FAQ, and particularly the section
"How do I run a program with arguments?"
The FAQ is available at:
http://www.hp.com/go/openvms/faq/
I'd generally recommend the text version of the FAQ, as it is both
easy to download and easy to search.
:$ define application disk5:[runtime]app.exe
:$ app_with_params = "$application ""lowercase"" ""UPPERCASE"" "
:$ app_with_params
:
:That works fine, now
:
:1. What is the reason of the $ on the second line ?
That is one of the two documented mechanisms for implementing a
foreign command.
You could also use:
$ app :== $disk5:[runtime]app.exe
$ app "lowercase" "UPPERCASE"
Oh, and the quote characters are delimeters, but are doubled-up
because you are entering a string and (in this case) wish to have
the quote character itself included in the string.
:2. Why is it not necessary to type
: $ run app_with_params
: on the third line ?
That is one of the documented mechanisms for a foreign command.
:3. What is the difference in VMS between :=, = and :==
Local symbol string assignment, local symbol string (if quoted)
or numeric assignment, and global symbol string assigment.
Respectively. The most recent OpenVMS DCL dictionary has added
entries for these constructs, akin to the @ entry.
OpenVMS operating system and other product documentation:
http://www.hp.com/go/openvms/doc/
The OpenVMS DCL Dictionary:
http://h71000.www7.hp.com/doc/732FINAL/9996/9996PRO.HTML
You will want to review the OpenVMS User's Guide, as well as the
DCL dictionary. Those documents cover these topics and also
provide you with assistance in differentiating and in using DCL
symbols and OpenVMS logical names.
From the documentation, you will learn various things. For example,
symbols are implemented in the command interpreter, and logical names
are implemented deep in the I/O subsystem. (That distinction will
eventually interest you, even if you do not currently understand why
quite yet. It is key to understanding the contexts in which you can
use symbols and logical names, for instance.)
Other sections of the OpenVMS FAQ that will become of interest:
How can I substitute symbols in a PIPE?
Use of RUN/DETACH, LOGINOUT, and logical names?
Modular Programming, Facility Prefixes and Symbol Naming?
Why doesn't DCL symbol substitution work?
How can I undelete a file?
I can also recommend my Writing Real Programs in DCL Book, too. :-)
--
---------------------------- #include <rtfaq.h> -----------------------------
For additional, please see the OpenVMS FAQ -- www.hp.com/go/openvms/faq
--------------------------- pure personal opinion ---------------------------
Hoff (Stephen) Hoffman OpenVMS Engineering hoff[at]hp.com
- Next message: Bill Gunshannon: "Re: CSWS 2.0 + TCPware 5.6 ???"
- Previous message: Rick Barry: "Re: CSWS 2.0 + TCPware 5.6 ???"
- In reply to: sebastien: "Newbie, Parameters to an application"
- Next in thread: sebastien: "Re: Newbie, Parameters to an application"
- Reply: sebastien: "Re: Newbie, Parameters to an application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|