<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CLI$ROUTINES.H in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594414#M6997</link>
    <description>Martin,&lt;BR /&gt;your linked web site is fantastic.&lt;BR /&gt;Ram carefully at that page because it can help you.&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;</description>
    <pubDate>Wed, 03 Aug 2005 09:59:22 GMT</pubDate>
    <dc:creator>Antoniov.</dc:creator>
    <dc:date>2005-08-03T09:59:22Z</dc:date>
    <item>
      <title>CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594376#M6959</link>
      <description>I am trying to add the ability to read command line arguments in my program. Is there an example which I can refer to for doing this. I came across a header file &lt;CLI&gt; which has routines for doing that but not sure how to do it.&lt;/CLI&gt;</description>
      <pubDate>Tue, 02 Aug 2005 02:04:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594376#M6959</guid>
      <dc:creator>ram_47</dc:creator>
      <dc:date>2005-08-02T02:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594377#M6960</link>
      <description>ram,&lt;BR /&gt;&lt;BR /&gt;if you do&lt;BR /&gt;&lt;BR /&gt;$ SEARCH SYS$EXAMPLES:*.C CLI$&lt;BR /&gt;&lt;BR /&gt;you will see there are three sample programs that&lt;BR /&gt;use the CLI routines. These may help.&lt;BR /&gt;&lt;BR /&gt;Dave&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Aug 2005 02:21:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594377#M6960</guid>
      <dc:creator>David B Sneddon</dc:creator>
      <dc:date>2005-08-02T02:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594378#M6961</link>
      <description>In SYS$EXAMPLES: you will find a number of C programs you can use as a reference:&lt;BR /&gt;&lt;BR /&gt;ACMEUTIL.C&lt;BR /&gt;GCU$BALANCER.C&lt;BR /&gt;&lt;BR /&gt;(Besides HELP and the online documentation, SYS$EXAMPLES is a perfect source for examples (hence the name ;-)). Great part: All are buildable and run when compiled and linked according the documentation)&lt;BR /&gt;&lt;BR /&gt;Willem</description>
      <pubDate>Tue, 02 Aug 2005 02:21:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594378#M6961</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2005-08-02T02:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594379#M6962</link>
      <description>Ram&lt;BR /&gt;&lt;BR /&gt;Have a look at the CLI$PRESENT function. These coupled with a .CLD definition allow very easy to implement CLI.&lt;BR /&gt;&lt;BR /&gt;I've attached a Pascal snipped which may help. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Tue, 02 Aug 2005 02:24:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594379#M6962</guid>
      <dc:creator>Brian Reiter</dc:creator>
      <dc:date>2005-08-02T02:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594380#M6963</link>
      <description>RE5::[VMSUSER] &amp;gt;search sys$examples:*.c cli$&lt;BR /&gt;&lt;BR /&gt;******************************&lt;BR /&gt;SYS$COMMON:[SYSHLP.EXAMPLES]DISKMOUNT.C;1&lt;BR /&gt;&lt;BR /&gt;    unsigned int    spawn_flag = CLI$M_NOWAIT;&lt;BR /&gt;RE5::[VMSUSER] &amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Not sure what it means.</description>
      <pubDate>Tue, 02 Aug 2005 02:33:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594380#M6963</guid>
      <dc:creator>ram_47</dc:creator>
      <dc:date>2005-08-02T02:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594381#M6964</link>
      <description>&lt;BR /&gt;unsigned int spawn_flag = CLI$M_NOWAIT&lt;BR /&gt;&lt;BR /&gt;is a flag for LIB$SPAWN to allow the subprocess to run in parallel rather than wait for it to complete.</description>
      <pubDate>Tue, 02 Aug 2005 02:39:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594381#M6964</guid>
      <dc:creator>Brian Reiter</dc:creator>
      <dc:date>2005-08-02T02:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594382#M6965</link>
      <description>ram,&lt;BR /&gt;&lt;BR /&gt;Is that the entire output of the search command?&lt;BR /&gt;What version of VMS do you have?&lt;BR /&gt;&lt;BR /&gt;Dave&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Aug 2005 03:03:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594382#M6965</guid>
      <dc:creator>David B Sneddon</dc:creator>
      <dc:date>2005-08-02T03:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594383#M6966</link>
      <description>Hi Ram,&lt;BR /&gt;$ HELP CLI is your friend.&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Aug 2005 03:36:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594383#M6966</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2005-08-02T03:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594384#M6967</link>
      <description>Dave,&lt;BR /&gt;&lt;BR /&gt;yes, that was all i got after the search command. &lt;BR /&gt;&lt;BR /&gt;version - DEC C V5.6-003 on OpenVMS VAX V6.2</description>
      <pubDate>Tue, 02 Aug 2005 03:39:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594384#M6967</guid>
      <dc:creator>ram_47</dc:creator>
      <dc:date>2005-08-02T03:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594385#M6968</link>
      <description>Antonio-&lt;BR /&gt;&lt;BR /&gt;&amp;gt;HELP CLI&lt;BR /&gt;sorry no documentation on CLI.&lt;BR /&gt;&lt;BR /&gt;Could you pl give me complete path.</description>
      <pubDate>Tue, 02 Aug 2005 03:43:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594385#M6968</guid>
      <dc:creator>ram_47</dc:creator>
      <dc:date>2005-08-02T03:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594386#M6969</link>
      <description>ram,&lt;BR /&gt;&lt;BR /&gt;if all else fails, read the FM ;-)&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731FINAL/4493/4493pro_003.html#8_exampleofusingthecliroutine" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/4493/4493pro_003.html#8_exampleofusingthecliroutine&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;cu,&lt;BR /&gt;  Martin</description>
      <pubDate>Tue, 02 Aug 2005 04:08:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594386#M6969</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2005-08-02T04:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594387#M6970</link>
      <description>Ram,&lt;BR /&gt;&lt;BR /&gt;VAX/VMS V6.2 &amp;amp; DEC C V5.7 (the versions you have) do not bring SYS$SHARE:SYS$STARLET_C.TLB (at least AFAIK).&lt;BR /&gt;I suggest upgrading the VAX to VMS version 7.3 and DEC C V6.4 (the latest for VAX/VMS), then you'll have all the declarations of the VMS specific routines like CLI$, LIB$, etc. siting in SYS$SHARE:SYS$STARLET_C.TLB.&lt;BR /&gt;&lt;BR /&gt;I attach the CLI$ROUTINES.H file for you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kris (aka Qkcl)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Aug 2005 04:15:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594387#M6970</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2005-08-02T04:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594388#M6971</link>
      <description>Kris,&lt;BR /&gt;&lt;BR /&gt;Does it imply that if i try to run an example for CLI it would fail since my version does not support CLI library?</description>
      <pubDate>Tue, 02 Aug 2005 04:53:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594388#M6971</guid>
      <dc:creator>ram_47</dc:creator>
      <dc:date>2005-08-02T04:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594389#M6972</link>
      <description>Ram,&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;Does it imply that if i try to run an example for CLI it would fail since my version does not support CLI library?&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Not at all. The CLI$ routines are present in the OS. What I meant was that the text library SYS$SHARE:SYS$STARLET_C.TLB is probably not present on your system.&lt;BR /&gt;Older versions of the C compiler did not bring that file along. DEC C V6.4 does.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kris (aka Qkcl)&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Aug 2005 05:09:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594389#M6972</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2005-08-02T05:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594390#M6973</link>
      <description>&lt;QUOTE&gt;&lt;BR /&gt;int  status = 0;&lt;BR /&gt;const char* label = "input";&lt;BR /&gt;struct dsc$descriptor_s* entity;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;entity-&amp;gt;dsc$b_class = DSC$K_CLASS_S;&lt;BR /&gt;entity-&amp;gt;dsc$b_dtype = DSC$K_DTYPE_T;&lt;BR /&gt;entity-&amp;gt;dsc$w_length = strlen(label);&lt;BR /&gt;entity-&amp;gt;dsc$a_pointer = label ;&lt;BR /&gt;status = CLI$PRESENT(entity);&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;what would be the value of 'status' after the CLI$PRESENT(entity) command is executed?</description>
      <pubDate>Tue, 02 Aug 2005 06:20:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594390#M6973</guid>
      <dc:creator>ram_47</dc:creator>
      <dc:date>2005-08-02T06:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594391#M6974</link>
      <description>Depends if it was there or not.&lt;BR /&gt;&lt;BR /&gt;Could get&lt;BR /&gt;&lt;BR /&gt;CLI$_PRESENT = 261401&lt;BR /&gt;&lt;BR /&gt;if 'input' was present,or &lt;BR /&gt;&lt;BR /&gt;CLI$_ABSENT = 229872&lt;BR /&gt;&lt;BR /&gt;if it wasn't there. Standard VMS error checks apply :) Gets more complex when looking for negated qualifiers though.</description>
      <pubDate>Tue, 02 Aug 2005 06:50:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594391#M6974</guid>
      <dc:creator>Brian Reiter</dc:creator>
      <dc:date>2005-08-02T06:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594392#M6975</link>
      <description>Even though the 'input' is present it returns a value that is different from&lt;BR /&gt;CLI$_PRESENT and CLI$_DEFAULTED. What could be the reason for this?</description>
      <pubDate>Tue, 02 Aug 2005 07:13:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594392#M6975</guid>
      <dc:creator>ram_47</dc:creator>
      <dc:date>2005-08-02T07:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594393#M6976</link>
      <description>try const char* label = "INPUT";&lt;BR /&gt;i.e. in uppercase&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Aug 2005 07:29:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594393#M6976</guid>
      <dc:creator>David B Sneddon</dc:creator>
      <dc:date>2005-08-02T07:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594394#M6977</link>
      <description>Ram&lt;BR /&gt;&lt;BR /&gt;Have you tried (from DCL) just entering&lt;BR /&gt;&lt;BR /&gt;   $exit &lt;VALUE returned=""&gt;&lt;BR /&gt;&lt;BR /&gt;and see what comes out? This may prove helpful.&lt;BR /&gt;&lt;BR /&gt;&lt;/VALUE&gt;</description>
      <pubDate>Tue, 02 Aug 2005 07:30:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594394#M6977</guid>
      <dc:creator>Brian Reiter</dc:creator>
      <dc:date>2005-08-02T07:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: CLI$ROUTINES.H</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594395#M6978</link>
      <description>/* Include status definition */&lt;BR /&gt;#include &lt;SSDEF.H&gt;&lt;BR /&gt;/* I guess this is already declared *&lt;BR /&gt;#include &lt;DESCRIP.H&gt;&lt;BR /&gt; &lt;BR /&gt;/* Set initial status */&lt;BR /&gt;int status = SS$_NORNAL;&lt;BR /&gt;&lt;BR /&gt;/* Declare  &amp;amp; allocate descripted var */&lt;BR /&gt;$DESCRIPTOR (entity, "input");&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;const char* label = "input";&lt;BR /&gt;struct dsc$descriptor_s* entity;&lt;BR /&gt;&lt;BR /&gt;status = CLI$PRESENT(entity);&lt;BR /&gt;if (status == CLI$_PRESENT)&lt;BR /&gt;{&lt;BR /&gt; printf ("Entity present in command\n");&lt;BR /&gt;}&lt;BR /&gt;else if (status == CLI$_NEGATED)&lt;BR /&gt;{&lt;BR /&gt; printf ("Entity negated like /NOENTITY\n");&lt;BR /&gt;}&lt;BR /&gt;else if (status == CLI$_LOCPRES)&lt;BR /&gt;{&lt;BR /&gt; printf ("Entity present as local qual.\n");&lt;BR /&gt;}&lt;BR /&gt;else if (status == CLI$_LOCNEG)&lt;BR /&gt;{&lt;BR /&gt; printf ("Entity negated in loc.qualf.\n");&lt;BR /&gt;}&lt;BR /&gt;else if (status == CLI$_DEFAULTED)&lt;BR /&gt;{&lt;BR /&gt; printf ("Default value for entity\n");&lt;BR /&gt;}&lt;BR /&gt;else if (status == CLI$_ABSENT)&lt;BR /&gt;{&lt;BR /&gt; printf ("Entity not presenet\n");&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt; printf ("Uhu, wrong software :-?\n");&lt;BR /&gt;}&lt;BR /&gt;&lt;/DESCRIP.H&gt;&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;&lt;/SSDEF.H&gt;</description>
      <pubDate>Tue, 02 Aug 2005 10:08:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/cli-routines-h/m-p/3594395#M6978</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2005-08-02T10:08:23Z</dc:date>
    </item>
  </channel>
</rss>

