From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,560db337e2dbcd3e X-Google-Attributes: gid103376,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: How to pass commandline parameters to a vax vms ada main prog Date: 1997/01/23 Message-ID: <1997Jan23.065621.1@eisner>#1/1 X-Deja-AN: 211717120 x-nntp-posting-host: eisner.decus.org references: <32E71F0B.270@dfd.dlr.de> x-nntp-posting-user: KILGALLEN x-trace: 854020587/26669 organization: LJK Software newsgroups: comp.lang.ada Date: 1997-01-23T00:00:00+00:00 List-Id: In article <32E71F0B.270@dfd.dlr.de>, Markus Wolfgart writes: > How to pass comandline parameters to an ada main procedure written > in vax vms 5.1 ada. Do I need to import the starlet lib ? On operating systems which have command line parameters, Ada 83 access to those parameters is only via implementation-specific mechanisms. For DEC Ada on VMS, the Starlet package supports System Services, but access to command line parameters is not supported via those System Services. (There is a way to do it, but it is purposefully undocumented so that DEC is free to change the details. Kind of like a thick binding.) Access to command line parameters is via Run-Time libraries, and you have two choices. For a quick-and-dirty (i.e., Unix emulation) style of access to the command line, use the LIB package and in particular the subprogram LIB$GET_COMMAND. Parse the result yourself. For full-featured command line access appropriate if the users of your program are accustomed to VMS, use the CLI package and the various command line retrieval and parsing subprograms therein. Larry Kilgallen