Re: Newbie, Parameters to an application

From: Hoff Hoffman (hoff_at_hp.nospam)
Date: 06/04/04


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


Relevant Pages

  • Re: auto daylight saving: Frage
    ... weiterer Kopien im Web. ... Die neue Heimat der OpenVMS FAQ ist Stephen "Hoff" Hoffmans Site unter ... One OS to bring them all | http://vms.pdv-systeme.de/users/martinv/ ...
    (de.comp.os.vms)
  • Re: vms versus solaris
    ... >> For other answers read the OpenVMS FAQ ... >> Network and OpenVMS system specialist ... I removed information specific to my ...
    (comp.os.vms)
  • Re: Need help w/ DPW 433au
    ... scott wrote: ... > The 433au boots and puts out an OpenVMS login prompt on both serial ports. ... See section 5.6.1 of the OpenVMS FAQ, ...
    (comp.sys.dec)
  • Re: vms versus solaris
    ... >> Network and OpenVMS system specialist ... > Although I have nothing but respect for the official OpenVMS FAQ, ... > removed information specific to my employer and posted the information ...
    (comp.os.vms)