<?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: Fortran - $GETJPI/JPI$_RIGHTSLIST and SYS$IDTOASC in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/fortran-getjpi-jpi-rightslist-and-sys-idtoasc/m-p/5088702#M39143</link>
    <description>&lt;!--!*#--&gt;I thought these function modifiers used to be documented, but I see they are not in the current docs (at least since in the online docs since 7.3)  NSA$M_NOSUCCAUD and NSA$M_NOFAILAUD&lt;BR /&gt;&lt;BR /&gt;Here is the program I though should have been able to run without audit privilege.&lt;BR /&gt;&lt;BR /&gt;(this is FORTRAN)  (also attachec as text file)&lt;BR /&gt;&lt;BR /&gt;        options /extend_source&lt;BR /&gt;        implicit none&lt;BR /&gt;&lt;BR /&gt;        include '($ssdef)/nolist'   ! for system service status &lt;BR /&gt;        include '($nsadef)/nolist'  ! for NSA$M_IDENTIFIER&lt;BR /&gt;&lt;BR /&gt;C       Declare called functions&lt;BR /&gt;&lt;BR /&gt;        integer   sys$asctoid&lt;BR /&gt;        integer   sys$check_privilege&lt;BR /&gt;&lt;BR /&gt;        integer   id&lt;BR /&gt;        integer   status&lt;BR /&gt;&lt;BR /&gt;        status = sys$asctoid('INTERACTIVE',id,)&lt;BR /&gt;&lt;BR /&gt;        if (.not. status) call exit(status)&lt;BR /&gt;&lt;BR /&gt;        status = sys$check_privilege(,id,,%val(NSA$M_IDENTIFIER.or.NSA$M_NOSUCCAUD.or.NSA$M_NOFAILAUD),,,,)&lt;BR /&gt;&lt;BR /&gt;        call exit(status)&lt;BR /&gt;        end&lt;BR /&gt;</description>
    <pubDate>Sat, 19 Jan 2008 06:08:42 GMT</pubDate>
    <dc:creator>Jon Pinkley</dc:creator>
    <dc:date>2008-01-19T06:08:42Z</dc:date>
    <item>
      <title>Fortran - $GETJPI/JPI$_RIGHTSLIST and SYS$IDTOASC</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/fortran-getjpi-jpi-rightslist-and-sys-idtoasc/m-p/5088696#M39137</link>
      <description>&lt;!--!*#--&gt;Hello.&lt;BR /&gt;&lt;BR /&gt;I am looking to use SYS$GETJPI's JPI$_RIGHTSLIST to obtain an array of rights identifiers held by the executing process, and then to display the ascii values of those identifiers using SYS$IDTOASC.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, I have been unable to get this to work in Fortran 77 or 90. &lt;BR /&gt;&lt;BR /&gt;Would it be possible to get a Fortran code snippet that perform these two tasks? Any assistance will be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Many thanks.&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jan 2008 19:04:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/fortran-getjpi-jpi-rightslist-and-sys-idtoasc/m-p/5088696#M39137</guid>
      <dc:creator>HDS</dc:creator>
      <dc:date>2008-01-18T19:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Fortran - $GETJPI/JPI$_RIGHTSLIST and SYS$IDTOASC</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/fortran-getjpi-jpi-rightslist-and-sys-idtoasc/m-p/5088697#M39138</link>
      <description>Wander up to &lt;A href="http://www.itrc.hp.com," target="_blank"&gt;http://www.itrc.hp.com,&lt;/A&gt; and select the Search Assistant tool, and then enter the following in the James search box:&lt;BR /&gt;&lt;BR /&gt;Fortran Examples sys$mumble&lt;BR /&gt;&lt;BR /&gt;tailored for whichever system service(s) you are working with.&lt;BR /&gt;&lt;BR /&gt;As it turns out, the first hit over there right now for "Fortran Examples sys$getjpiw" is this one:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h18000.www1.hp.com/support/asktima/appl_tools/00949F69-3F3075A0-1C0069.html" target="_blank"&gt;http://h18000.www1.hp.com/support/asktima/appl_tools/00949F69-3F3075A0-1C0069.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Which appears to be what you are looking for.&lt;BR /&gt;&lt;BR /&gt;Stephen Hoffman&lt;BR /&gt;HoffmanLabs LLC&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jan 2008 19:19:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/fortran-getjpi-jpi-rightslist-and-sys-idtoasc/m-p/5088697#M39138</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-01-18T19:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fortran - $GETJPI/JPI$_RIGHTSLIST and SYS$IDTOASC</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/fortran-getjpi-jpi-rightslist-and-sys-idtoasc/m-p/5088698#M39139</link>
      <description>Thank you so very much !&lt;BR /&gt;&lt;BR /&gt;-H-&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jan 2008 19:25:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/fortran-getjpi-jpi-rightslist-and-sys-idtoasc/m-p/5088698#M39139</guid>
      <dc:creator>HDS</dc:creator>
      <dc:date>2008-01-18T19:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Fortran - $GETJPI/JPI$_RIGHTSLIST and SYS$IDTOASC</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/fortran-getjpi-jpi-rightslist-and-sys-idtoasc/m-p/5088699#M39140</link>
      <description>Check out &lt;A href="http://groups.google.com/group/vmsnet.misc/browse_frm/thread/e027199cfa317140/" target="_blank"&gt;http://groups.google.com/group/vmsnet.misc/browse_frm/thread/e027199cfa317140/&lt;/A&gt;</description>
      <pubDate>Fri, 18 Jan 2008 19:28:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/fortran-getjpi-jpi-rightslist-and-sys-idtoasc/m-p/5088699#M39140</guid>
      <dc:creator>Jim_McKinney</dc:creator>
      <dc:date>2008-01-18T19:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fortran - $GETJPI/JPI$_RIGHTSLIST and SYS$IDTOASC</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/fortran-getjpi-jpi-rightslist-and-sys-idtoasc/m-p/5088700#M39141</link>
      <description>If anyone needs the functionality provided by the example Jim referenced, it is much more efficient to convert the ASCII id passed to the function to its binary value with one call to $ASCTOID, and then compare that binary value to each binary id value in the array, instead of converting each binary value in the array to its ASCII form with $IDTOASC and then comparing the ASCII values.  $IDTOASC and $ASCTOID are potentially expensive operations requiring I/O to the RIGHTSLIST file.&lt;BR /&gt;&lt;BR /&gt;This is especially true it your process has many identifiers in its rightslist.&lt;BR /&gt;&lt;BR /&gt;Even more efficient is a call to $CHECK_PRIVILEGE, which provides streamlined access to the executive routine EXE$SEARCH_RIGHTS_ARRAY, but even if you don't request auditing, the $CHECK_PRIVILEGE system service requires AUDIT privilege.  When I complained to Compaq about that, I was told that not requiring AUDIT privilege would be a security violation, and when I pointed out that the same information was available via $GETJPI, they were not able to explain why it would be a security problem.&lt;BR /&gt;</description>
      <pubDate>Sat, 19 Jan 2008 01:40:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/fortran-getjpi-jpi-rightslist-and-sys-idtoasc/m-p/5088700#M39141</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2008-01-19T01:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Fortran - $GETJPI/JPI$_RIGHTSLIST and SYS$IDTOASC</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/fortran-getjpi-jpi-rightslist-and-sys-idtoasc/m-p/5088701#M39142</link>
      <description>$CHECK_ACCESS and $CHKPRO, or simply trying the sequence (and you have to capture the errors that can arise in any case,), are my usual choices.&lt;BR /&gt;&lt;BR /&gt;And as for requiring AUDIT, there's more to the $CHECK_PRIVILEGE call than there is to the $GETJPI call, and rolling your own bit test.   What you might be doing and the user-visible portion can appear to be identical, but the back-end processing can and does differ.  (You can't toss out audits without privilege, when last I looked.  And the former tosses out audits.  The latter approach does not, not unless you add those yourself.)&lt;BR /&gt;</description>
      <pubDate>Sat, 19 Jan 2008 02:13:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/fortran-getjpi-jpi-rightslist-and-sys-idtoasc/m-p/5088701#M39142</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-01-19T02:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Fortran - $GETJPI/JPI$_RIGHTSLIST and SYS$IDTOASC</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/fortran-getjpi-jpi-rightslist-and-sys-idtoasc/m-p/5088702#M39143</link>
      <description>&lt;!--!*#--&gt;I thought these function modifiers used to be documented, but I see they are not in the current docs (at least since in the online docs since 7.3)  NSA$M_NOSUCCAUD and NSA$M_NOFAILAUD&lt;BR /&gt;&lt;BR /&gt;Here is the program I though should have been able to run without audit privilege.&lt;BR /&gt;&lt;BR /&gt;(this is FORTRAN)  (also attachec as text file)&lt;BR /&gt;&lt;BR /&gt;        options /extend_source&lt;BR /&gt;        implicit none&lt;BR /&gt;&lt;BR /&gt;        include '($ssdef)/nolist'   ! for system service status &lt;BR /&gt;        include '($nsadef)/nolist'  ! for NSA$M_IDENTIFIER&lt;BR /&gt;&lt;BR /&gt;C       Declare called functions&lt;BR /&gt;&lt;BR /&gt;        integer   sys$asctoid&lt;BR /&gt;        integer   sys$check_privilege&lt;BR /&gt;&lt;BR /&gt;        integer   id&lt;BR /&gt;        integer   status&lt;BR /&gt;&lt;BR /&gt;        status = sys$asctoid('INTERACTIVE',id,)&lt;BR /&gt;&lt;BR /&gt;        if (.not. status) call exit(status)&lt;BR /&gt;&lt;BR /&gt;        status = sys$check_privilege(,id,,%val(NSA$M_IDENTIFIER.or.NSA$M_NOSUCCAUD.or.NSA$M_NOFAILAUD),,,,)&lt;BR /&gt;&lt;BR /&gt;        call exit(status)&lt;BR /&gt;        end&lt;BR /&gt;</description>
      <pubDate>Sat, 19 Jan 2008 06:08:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/fortran-getjpi-jpi-rightslist-and-sys-idtoasc/m-p/5088702#M39143</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2008-01-19T06:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Fortran - $GETJPI/JPI$_RIGHTSLIST and SYS$IDTOASC</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/fortran-getjpi-jpi-rightslist-and-sys-idtoasc/m-p/5088703#M39144</link>
      <description>I wish to thank all of you for these informative responses.&lt;BR /&gt;&lt;BR /&gt;-H-&lt;BR /&gt;</description>
      <pubDate>Sat, 19 Jan 2008 22:22:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/fortran-getjpi-jpi-rightslist-and-sys-idtoasc/m-p/5088703#M39144</guid>
      <dc:creator>HDS</dc:creator>
      <dc:date>2008-01-19T22:22:49Z</dc:date>
    </item>
  </channel>
</rss>

