<?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: Command file to put UAF field values into a text file in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/command-file-to-put-uaf-field-values-into-a-text-file/m-p/4110380#M30043</link>
    <description>Hello,&lt;BR /&gt;    What you could do is go into AUTHORIZE and list/full the files.  Then you could do a SEARCH command for the particular fields you're after and /out this to another text file.  Sure this is not a comma delimieted format, but it will provide you with the same info.&lt;BR /&gt;&lt;BR /&gt;     If you want comma delimited, you could write a DCL program to read the SYSUAF.DAT file generated from &lt;BR /&gt;sysuaf&amp;gt; list/full&lt;BR /&gt;&lt;BR /&gt;This creates a sysuaf.dat, and then you could use the DCL READ command and then use LEXICAL functions to parse each line and delimit each filed with commas, to another file you opened in DCL.  But to me, that's a lot of work when all you need to do is use the SEARCH utility a few times, and save the output of the latter to a text file.</description>
    <pubDate>Sun, 02 Dec 2007 02:31:46 GMT</pubDate>
    <dc:creator>DECxchange</dc:creator>
    <dc:date>2007-12-02T02:31:46Z</dc:date>
    <item>
      <title>Command file to put UAF field values into a text file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/command-file-to-put-uaf-field-values-into-a-text-file/m-p/4110376#M30039</link>
      <description>Hi, all!  I have looked around in the archives and found some processes that are close to what I want, but not exactly.&lt;BR /&gt;&lt;BR /&gt;What I need is a command file (batch or not), that will create a comma-delimited flat text file with the following field values from SYSUAF.DAT:&lt;BR /&gt;&lt;BR /&gt;'owner','account','lastlogindate_interactive', 'lastlogindate_noninteractive'&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated.  Thanks!</description>
      <pubDate>Fri, 30 Nov 2007 13:11:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/command-file-to-put-uaf-field-values-into-a-text-file/m-p/4110376#M30039</guid>
      <dc:creator>R Swenson</dc:creator>
      <dc:date>2007-11-30T13:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Command file to put UAF field values into a text file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/command-file-to-put-uaf-field-values-into-a-text-file/m-p/4110377#M30040</link>
      <description>There is a well known tool out there 'uaf' which probably can do this. Google to the rescue?&lt;BR /&gt;&lt;BR /&gt;I made a program a decade ago to do the CSV thing and published with the openVMS freeware as:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/freeware/freeware60/rms_tools/bonus/getuai.c" target="_blank"&gt;http://h71000.www7.hp.com/freeware/freeware60/rms_tools/bonus/getuai.c&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I just tried it, but it did not compile clean on Alpha and mangled the 'account' field.&lt;BR /&gt;&lt;BR /&gt;Should be fixed now. Try the attachment!&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Nov 2007 14:50:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/command-file-to-put-uaf-field-values-into-a-text-file/m-p/4110377#M30040</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-11-30T14:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Command file to put UAF field values into a text file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/command-file-to-put-uaf-field-values-into-a-text-file/m-p/4110378#M30041</link>
      <description>Is that different to &lt;BR /&gt;&lt;A href="ftp://ftp.process.com/vms-freeware/fileserv/getuai.zip" target="_blank"&gt;ftp://ftp.process.com/vms-freeware/fileserv/getuai.zip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;?</description>
      <pubDate>Fri, 30 Nov 2007 18:16:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/command-file-to-put-uaf-field-values-into-a-text-file/m-p/4110378#M30041</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2007-11-30T18:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Command file to put UAF field values into a text file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/command-file-to-put-uaf-field-values-into-a-text-file/m-p/4110379#M30042</link>
      <description>Hi there Ian,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Is that different to....&lt;BR /&gt;&lt;BR /&gt;Yes. Mine generates the CSV as requested, the other one does not (it focusses on define DCL symbold)&lt;BR /&gt;&lt;BR /&gt;No, it's the same core: A driver table + getuai call.&lt;BR /&gt;&lt;BR /&gt;Yes, Mine uses a (trivial) RMS (wildcard) lookup on the username, as requested. The above reference just does not, it operateds on one selected user at a time,&lt;BR /&gt;&lt;BR /&gt;Yes, mine is 50 lines, the above 5000.&lt;BR /&gt;&lt;BR /&gt;Mostly kidding...&lt;BR /&gt;&lt;BR /&gt;Hein,&lt;BR /&gt;</description>
      <pubDate>Sat, 01 Dec 2007 03:09:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/command-file-to-put-uaf-field-values-into-a-text-file/m-p/4110379#M30042</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-12-01T03:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Command file to put UAF field values into a text file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/command-file-to-put-uaf-field-values-into-a-text-file/m-p/4110380#M30043</link>
      <description>Hello,&lt;BR /&gt;    What you could do is go into AUTHORIZE and list/full the files.  Then you could do a SEARCH command for the particular fields you're after and /out this to another text file.  Sure this is not a comma delimieted format, but it will provide you with the same info.&lt;BR /&gt;&lt;BR /&gt;     If you want comma delimited, you could write a DCL program to read the SYSUAF.DAT file generated from &lt;BR /&gt;sysuaf&amp;gt; list/full&lt;BR /&gt;&lt;BR /&gt;This creates a sysuaf.dat, and then you could use the DCL READ command and then use LEXICAL functions to parse each line and delimit each filed with commas, to another file you opened in DCL.  But to me, that's a lot of work when all you need to do is use the SEARCH utility a few times, and save the output of the latter to a text file.</description>
      <pubDate>Sun, 02 Dec 2007 02:31:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/command-file-to-put-uaf-field-values-into-a-text-file/m-p/4110380#M30043</guid>
      <dc:creator>DECxchange</dc:creator>
      <dc:date>2007-12-02T02:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Command file to put UAF field values into a text file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/command-file-to-put-uaf-field-values-into-a-text-file/m-p/4110381#M30044</link>
      <description>&lt;!--!*#--&gt;$       exit_status = %x1&lt;BR /&gt;$       on warning then $goto ERROR&lt;BR /&gt;$       on control_y then $goto ABORT&lt;BR /&gt;$       uaf_file = f$parse("SYSUAF","SYS$SYSTEM:.DAT")&lt;BR /&gt;$       close/nolog uaf_chan&lt;BR /&gt;$       open/read/share=write uaf_chan 'uaf_file'&lt;BR /&gt;$       none = "17-NOV-1858 00:00:00.00"&lt;BR /&gt;$       write sys$output "user,owner,account" -&lt;BR /&gt;                ,",lastlogindate_interactive,lastlogindate_noninteractive"&lt;BR /&gt;$LOOP:  read/nolock/end=END uaf_chan uaf_rec&lt;BR /&gt;$       user = f$edit(f$extract(4,32,uaf_rec),"TRIM")&lt;BR /&gt;$       owner = f$extract(84+1,f$cvsi(84*8,8,uaf_rec),uaf_rec)&lt;BR /&gt;$       account = f$edit(f$extract(52,32,uaf_rec),"TRIM")&lt;BR /&gt;$       q_lli = f$extract(396,8,uaf_rec)&lt;BR /&gt;$       q_lln = f$extract(404,8,uaf_rec)&lt;BR /&gt;$       lli = f$fao("!%D",f$cvui(32,32,f$fao("!AD",8,q_lli)))&lt;BR /&gt;$       lln = f$fao("!%D",f$cvui(32,32,f$fao("!AD",8,q_lln)))&lt;BR /&gt;$       if lli .eqs. none then $lli = "(none)"&lt;BR /&gt;$       if lln .eqs. none then $lln = "(none)"&lt;BR /&gt;$       write sys$output f$fao("!AS,""!AS"",!AS,!AS,!AS" -&lt;BR /&gt;                ,user,owner,account,lli,lln)&lt;BR /&gt;$       goto LOOP&lt;BR /&gt;$ABORT: exit_status = %x2c&lt;BR /&gt;$END:   close/nolog uaf_chan&lt;BR /&gt;$       exit 'exit_status'&lt;BR /&gt;$ERROR: exit_status = $status&lt;BR /&gt;$       set noon&lt;BR /&gt;$       goto END&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 02 Dec 2007 11:59:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/command-file-to-put-uaf-field-values-into-a-text-file/m-p/4110381#M30044</guid>
      <dc:creator>Graham Burley</dc:creator>
      <dc:date>2007-12-02T11:59:33Z</dc:date>
    </item>
  </channel>
</rss>

