<?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 RMS file in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/rms-file/m-p/5511937#M36700</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I need to Create a rms indexed file of the format:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name table &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30 chars&lt;/P&gt;&lt;P&gt;Logical name&amp;nbsp;&amp;nbsp; 30 chars&lt;/P&gt;&lt;P&gt;Value&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 255 chars&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the index consisting of name table + logical name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Parse the output of a show logical/table=* &amp;nbsp;so that&amp;nbsp;&amp;nbsp;we can build up the index file. This is required to check the difference of logiacl asignment after reboot&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2012 05:24:05 GMT</pubDate>
    <dc:creator>mrityunjoy</dc:creator>
    <dc:date>2012-01-30T05:24:05Z</dc:date>
    <item>
      <title>RMS file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-file/m-p/5511937#M36700</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I need to Create a rms indexed file of the format:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name table &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30 chars&lt;/P&gt;&lt;P&gt;Logical name&amp;nbsp;&amp;nbsp; 30 chars&lt;/P&gt;&lt;P&gt;Value&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 255 chars&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the index consisting of name table + logical name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Parse the output of a show logical/table=* &amp;nbsp;so that&amp;nbsp;&amp;nbsp;we can build up the index file. This is required to check the difference of logiacl asignment after reboot&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2012 05:24:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-file/m-p/5511937#M36700</guid>
      <dc:creator>mrityunjoy</dc:creator>
      <dc:date>2012-01-30T05:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: RMS file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-file/m-p/5512151#M36701</link>
      <description>&lt;P&gt;Put this in a file called LNMFILE.FDL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SYSTEM&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOURCE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VMS&lt;BR /&gt;FILE&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LNMFILE&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORGANIZATION&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; indexed&lt;/P&gt;&lt;P&gt;RECORD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FORMAT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fixed&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 315&lt;/P&gt;&lt;P&gt;KEY 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHANGES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; no&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DUPLICATES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; no&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROLOG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SEG0_LENGTH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 60&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SEG0_POSITION&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ CREATE/FDL=LNMFILE.FDL LNMFILE.DAT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See this page on Creating and Populating files (and subsequent pages)&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://h71000.www7.hp.com/doc/731final/4506/4506pro_010.html#bottom_010"&gt;http://h71000.www7.hp.com/doc/731final/4506/4506pro_010.html#bottom_010&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2012 06:52:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-file/m-p/5512151#M36701</guid>
      <dc:creator>Phil.Howell</dc:creator>
      <dc:date>2012-01-30T06:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: RMS file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-file/m-p/5512167#M36702</link>
      <description>&lt;P&gt;Hi Phil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to incorporate this in a DCL command procedure.&amp;nbsp; I need to create a command procedure which will use this index rms file to record all logicals and compare this before and after shutdown.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2012 06:59:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-file/m-p/5512167#M36702</guid>
      <dc:creator>mrityunjoy</dc:creator>
      <dc:date>2012-01-30T06:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: RMS file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-file/m-p/5512919#M36703</link>
      <description>&lt;P&gt;&amp;gt;How to incorporate this in a DCL command procedure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about you have your company (or your company's client) hire professional's that know how to write DCL and understand basic VMS concepts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our services include tools that monitor changes to the logical name tables, including changes across reboots, and I can tell you that it is more complicated than you're design indicates you understand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brad McCusker&lt;/P&gt;&lt;P&gt;Software Concepts International&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.sciinc.com"&gt;www.sciinc.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2012 14:32:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-file/m-p/5512919#M36703</guid>
      <dc:creator>Brad McCusker</dc:creator>
      <dc:date>2012-01-30T14:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: RMS file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-file/m-p/5513337#M36704</link>
      <description>&lt;P&gt;Hmmm, I'm largely with Brad.&lt;/P&gt;&lt;P&gt;The question you ask suggests that you are currently not ready to tackle the requirement.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is too easy to get wrong and then what do you have.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also, indexed files are unlikely to be the right solution.&lt;/P&gt;&lt;P&gt;Neither from a functional point of view, and certainly not from a performance point of view.&lt;/P&gt;&lt;P&gt;They just look like a handy sorting tool, but that's deceiving.&lt;/P&gt;&lt;P&gt;Using SORT probably leads to a better solution.&lt;/P&gt;&lt;P&gt;Using PERL with its build-in sort and superior parsing is probably better than using DCL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still, you mentioned the magic word 'RMS' so I'll give you a starting point.&lt;/P&gt;&lt;P&gt;It is far from complete, but shows the basics of creating a file and formatting records,&lt;/P&gt;&lt;P&gt;For grins, run with SET VERI and watch how slow the first $WRITE is (Using DCL is part of the blame).&lt;/P&gt;&lt;P&gt;SORT would write the whole file in that time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, see below for some code..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps some,&lt;/P&gt;&lt;P&gt;Hein RMS van den Heuvel&lt;/P&gt;&lt;P&gt;Attunity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ type logicals.com
$! If a SHOW LOG output is provided, then just use it. If not, create.
$
$ logicals_indexed = "logicals_indexed.tmp"
$ logicals_listing = "logicals_listing.tmp"
$
$if p1.eqs.""  ! File provided, or generate one?
$then
$  show log */output='logicals_listing'
$else
$  logicals_listing = p1
$endif

$ tab=""
$ tab[0,8] = 9 ! TAB
$ indexed_record = ""
$ close/nolog logicals
$ close/nolog logicals
$ open/read/erro=oops logicals 'p1'
$ create/fdl="file; org ind; area 0; buck 16; key 0; seg0_l 60" 'logicals_indexed'
$ open/write/erro=ooop indexed 'logicals_indexed'
$
$loop:
$ read/erro=oops/end=done logicals record
$ first_char = f$extr(0,1,record)
$ len = f$len(record)
$ if len.eq.0 then goto loop
$
$ if first_char.eqs.tab ! Search list addition?
$ then
$   indexed_record = indexed_record + f$extr(2,999,record)
$   goto loop
$ endif
$
$ if indexed_record.nes.""  ! Anything to write out?
$ then
$   indexed_record = f$extract(0,60+255,indexed_record)
$   write/error=oops/symb indexed indexed_record
$   indexed_record = ""
$ endif
$
$ if first_char.eqs."("   ! Fresh table name ?
$ then
$   table = record - "(" - ")"
$   goto loop
$ endif
$
$ if first_char.eqs." "  ! Legit new symbol name?
$   then indexed_record = f$fao ( "!30AS!30AS!AS", -
       f$elem(0,"=",record) - "  """ - """ ", table, -
       f$elem(1,"=",record))
$ endif
$ goto loop
$
$done:
$
$ indexed_record = f$extract(0,60+255,indexed_record)
$ write/error=oops/symb indexed indexed_record ! last one
$oops:
$ s = $status
$ close indexed
$ close logicals
$ exit 's'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2012 21:43:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-file/m-p/5513337#M36704</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2012-01-30T21:43:09Z</dc:date>
    </item>
  </channel>
</rss>

