<?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 EDIT/FDL usage in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/edit-fdl-usage/m-p/3562220#M69201</link>
    <description>In a previous thread I asked for some help with some details regarding $STATUS to create command procedures to CONVERT our data files.&lt;BR /&gt;&lt;BR /&gt;Now ... getting closer to the problem I'm trying to solve, the files in the application haven't been CONVERTed for several years now (the Windows/Unix solution that was supposed to replace it all failed ;-) hence the need for an updated procedure.  There are ~200 files per division.  I have produced .FDL's for them and wanted to take Hein's suggestion about optimizing them.&lt;BR /&gt;&lt;BR /&gt;Finally my question:  I want to run another command procedure to do the optimization but it doesn't want to do multiple EDIT/FDL's in the command procedure.  It does the first one and exits.  No error message or such.&lt;BR /&gt;&lt;BR /&gt;The command I'm trying to use (multiple times) is similar to:&lt;BR /&gt;&lt;BR /&gt;$ edit/fdl/analysis=[-.cirfdl]addrmas.fdl/nointeractive/output=[-.cirfdl]addrmas_opti.fdl [-.cirfdl]addrmas.fdl&lt;BR /&gt;&lt;BR /&gt;I really don't fancy doing this by hand ~200 times for 10 divisions.&lt;BR /&gt;&lt;BR /&gt;What DCL "trick" am I missing?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Art&lt;BR /&gt;&lt;BR /&gt;ps. any CHARON-VAX attendees next week in Nashua besides me?  I hope you guys left the Sheraton standing! ;-)&lt;BR /&gt;&lt;BR /&gt;Cheers.</description>
    <pubDate>Fri, 10 Jun 2005 16:23:51 GMT</pubDate>
    <dc:creator>Art Wiens</dc:creator>
    <dc:date>2005-06-10T16:23:51Z</dc:date>
    <item>
      <title>EDIT/FDL usage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/edit-fdl-usage/m-p/3562220#M69201</link>
      <description>In a previous thread I asked for some help with some details regarding $STATUS to create command procedures to CONVERT our data files.&lt;BR /&gt;&lt;BR /&gt;Now ... getting closer to the problem I'm trying to solve, the files in the application haven't been CONVERTed for several years now (the Windows/Unix solution that was supposed to replace it all failed ;-) hence the need for an updated procedure.  There are ~200 files per division.  I have produced .FDL's for them and wanted to take Hein's suggestion about optimizing them.&lt;BR /&gt;&lt;BR /&gt;Finally my question:  I want to run another command procedure to do the optimization but it doesn't want to do multiple EDIT/FDL's in the command procedure.  It does the first one and exits.  No error message or such.&lt;BR /&gt;&lt;BR /&gt;The command I'm trying to use (multiple times) is similar to:&lt;BR /&gt;&lt;BR /&gt;$ edit/fdl/analysis=[-.cirfdl]addrmas.fdl/nointeractive/output=[-.cirfdl]addrmas_opti.fdl [-.cirfdl]addrmas.fdl&lt;BR /&gt;&lt;BR /&gt;I really don't fancy doing this by hand ~200 times for 10 divisions.&lt;BR /&gt;&lt;BR /&gt;What DCL "trick" am I missing?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Art&lt;BR /&gt;&lt;BR /&gt;ps. any CHARON-VAX attendees next week in Nashua besides me?  I hope you guys left the Sheraton standing! ;-)&lt;BR /&gt;&lt;BR /&gt;Cheers.</description>
      <pubDate>Fri, 10 Jun 2005 16:23:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/edit-fdl-usage/m-p/3562220#M69201</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2005-06-10T16:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: EDIT/FDL usage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/edit-fdl-usage/m-p/3562221#M69202</link>
      <description>Hi Art,&lt;BR /&gt;whatever the problem is, a $ SET NOON (disable all warning/error handling) at the beginning of the procedure should avoid a dropout of it.&lt;BR /&gt;Cheers,&lt;BR /&gt;EW&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Jun 2005 20:24:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/edit-fdl-usage/m-p/3562221#M69202</guid>
      <dc:creator>Eberhard Wacker</dc:creator>
      <dc:date>2005-06-10T20:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: EDIT/FDL usage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/edit-fdl-usage/m-p/3562222#M69203</link>
      <description>I have a procedure from Decus US, about 1990, that works fine (and has worked fine for years), doing this. &lt;BR /&gt;&lt;BR /&gt;So it is doable :-)&lt;BR /&gt;&lt;BR /&gt;I will try to find it and post it, if you are interested.</description>
      <pubDate>Sat, 11 Jun 2005 02:28:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/edit-fdl-usage/m-p/3562222#M69203</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2005-06-11T02:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: EDIT/FDL usage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/edit-fdl-usage/m-p/3562223#M69204</link>
      <description>&amp;gt;&amp;gt; it doesn't want to do multiple EDIT/FDL's in the command procedure. It does the first one and exits. No error message or such.&lt;BR /&gt;&lt;BR /&gt;That's not normal. Something must be happenign, something must be signalled. It is as if the /nointer is not functioning in which case edit/fdl will fail when not run from a terminal.&lt;BR /&gt;Tried the usual? $set veri, show symb $status and such?&lt;BR /&gt;&lt;BR /&gt;$ edit/fdl/analysis&lt;BR /&gt;&lt;BR /&gt;Good to see you use the /ANAL secondary input. I like that to seperate the basic layout which will not changes from the stats that will change (a little over time).&lt;BR /&gt;&lt;BR /&gt;Now the actual lines used in the /anal file are but a few. You may want to reduce those FDLs to just that, and manual edit them for new anticipated record counts ( or target disk cluster sizes) based on your application understanding.&lt;BR /&gt;&lt;BR /&gt;Below you'll find a script that you might want to use as a stating point to get a series of fdl and ana files going.&lt;BR /&gt;&lt;BR /&gt;Once you've done this basic tune up, and the converts, then you may want to try my 'rms_tune_check' on the file.&lt;BR /&gt;Btw... I updated that rms_tune_check program last week, and will try to get the freeware updated real-soon-now.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; ps. any CHARON-VAX attendees next week in Nashua besides me? &lt;BR /&gt;&lt;BR /&gt;I'll be in Nashua, and maybe in the Tara :-)&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;$! ---- optimize-fdl.com --- Hein van den Heuvel --- June 2005&lt;BR /&gt;$if p1.eqs."" then $exit&lt;BR /&gt;$last = ""&lt;BR /&gt;$loop:&lt;BR /&gt;$file = f$search(p1)&lt;BR /&gt;$if file .eqs. last then exit&lt;BR /&gt;$if file .eqs. "" then exit&lt;BR /&gt;$if f$file(file,"ORG").nes."IDX" then goto loop&lt;BR /&gt;$write sys$output "processing ''file'"&lt;BR /&gt;$last = file&lt;BR /&gt;$name = f$parse(file,,,"NAME")&lt;BR /&gt;$anal/rms/fdl/out='name'.fdl_orig 'file&lt;BR /&gt;$open/erro=oops fdl 'name'.fdl_orig&lt;BR /&gt;$crea 'name'.ana&lt;BR /&gt;$open/erro=oops/append ana 'name'.ana&lt;BR /&gt;$read/end=oops fdl record&lt;BR /&gt;$writ ana f$extr(0,28,record) + -&lt;BR /&gt; "minimal EDIT/FDL/NOINTER analyze file"""&lt;BR /&gt;$writ ana "FILE;        CLUSTER_SIZE            12"&lt;BR /&gt;$writ ana "     NAME    """ + file + """"&lt;BR /&gt;$writ ana "ANALYSIS_OF_KEY 0"&lt;BR /&gt;$read_loop:&lt;BR /&gt;$read/end=read_done fdl record&lt;BR /&gt;$if f$loc("DATA_RECORD_COUNT",record).ne.f$len(record) then -&lt;BR /&gt; write ana record&lt;BR /&gt;$if f$loc("MEAN_DATA_LENGTH",record).eq.f$len(record) then goto read_loop&lt;BR /&gt;$write ana record&lt;BR /&gt;$close ana&lt;BR /&gt;$close fdl&lt;BR /&gt;$edit/fdl/nointer/output='name'.fdl/anal='name'.ana 'name'.fdl_orig&lt;BR /&gt;$goto loop&lt;BR /&gt;$oops:&lt;BR /&gt;$stat = $status&lt;BR /&gt;$close/nolog ana&lt;BR /&gt;$close/nolog fdl&lt;BR /&gt;$write sys$output "Oops!"&lt;BR /&gt;$exit 'stat</description>
      <pubDate>Sat, 11 Jun 2005 13:03:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/edit-fdl-usage/m-p/3562223#M69204</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-06-11T13:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: EDIT/FDL usage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/edit-fdl-usage/m-p/3562224#M69205</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;I had an excuse to add a little more functionality to the script.&lt;BR /&gt;It now detects protential duplicate key problems.&lt;BR /&gt;&lt;BR /&gt;Sample usage:&lt;BR /&gt;&lt;BR /&gt;$ @OPTIMIZE_FDL.COM order_file.dat&lt;BR /&gt;processing U$1:[HEIN.TMP]ORDER_FILE.DAT;1&lt;BR /&gt;key=0 area=0 bks=12 space=1332 l1=111 buckets=111 missing=0&lt;BR /&gt;key=1 area=0 bks=12 space=120 l1=4 buckets=10 missing=6&lt;BR /&gt;** DUPLICATES on key 1 ? 6 buckets out of 120 have no index !!&lt;BR /&gt;key=2 area=0 bks=12 space=96 l1=8 buckets=8 missing=0&lt;BR /&gt;$ conve/stat/fast order_file.dat/fdl=order_file order_file.new&lt;BR /&gt;Total Records Processed:        5001&lt;BR /&gt;:&lt;BR /&gt;$ @OPTIMIZE_FDL.COM order_file.new&lt;BR /&gt;processing U$1:[HEIN.TMP]ORDER_FILE.NEW;1&lt;BR /&gt;key=0 area=0 bks=12 space=1224 l1=102 buckets=102 missing=0&lt;BR /&gt;key=1 area=2 bks=12 space=84 l1=3 buckets=7 missing=4&lt;BR /&gt;** DUPLICATES on key 1 ? 4 buckets out of 84 have no index !!&lt;BR /&gt;key=2 area=2 bks=12 space=108 l1=9 buckets=9 missing=0&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;New script is attached.&lt;BR /&gt;&lt;BR /&gt;Hein.</description>
      <pubDate>Thu, 16 Jun 2005 15:53:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/edit-fdl-usage/m-p/3562224#M69205</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-06-16T15:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: EDIT/FDL usage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/edit-fdl-usage/m-p/3562225#M69206</link>
      <description>Somehow I missed the fact that some of FDL's I was trying to optimize weren't there.  I just tried it again and it clearly gives me a :&lt;BR /&gt;&lt;BR /&gt;%FDL-F-OPENFDL, error opening xxxxx;&lt;BR /&gt;-RMS-E-FNF, file not found&lt;BR /&gt;&lt;BR /&gt;I know I tried this several times, not sure why I couldn't see the error message...the problem was most likely between the chair and the keyboard!&lt;BR /&gt;&lt;BR /&gt;On to the next topic to do with the actual "optimization".&lt;BR /&gt;&lt;BR /&gt;If the original file says this:&lt;BR /&gt;&lt;BR /&gt;AREA 0&lt;BR /&gt;        ALLOCATION              304006&lt;BR /&gt;        BEST_TRY_CONTIGUOUS     yes&lt;BR /&gt;        BUCKET_SIZE             18&lt;BR /&gt;        EXTENSION               14461&lt;BR /&gt;&lt;BR /&gt;AREA 1&lt;BR /&gt;        ALLOCATION              2120&lt;BR /&gt;        BEST_TRY_CONTIGUOUS     yes&lt;BR /&gt;        BUCKET_SIZE             18&lt;BR /&gt;        EXTENSION               216&lt;BR /&gt;&lt;BR /&gt;AREA 2&lt;BR /&gt;        ALLOCATION              248256&lt;BR /&gt;        BEST_TRY_CONTIGUOUS     yes&lt;BR /&gt;        BUCKET_SIZE             18&lt;BR /&gt;        EXTENSION               62334&lt;BR /&gt;&lt;BR /&gt;And after the EDIT/FDL it says this:&lt;BR /&gt;&lt;BR /&gt;AREA 0&lt;BR /&gt;        ALLOCATION              163769&lt;BR /&gt;        BEST_TRY_CONTIGUOUS     yes&lt;BR /&gt;        BUCKET_SIZE             12&lt;BR /&gt;        EXTENSION               40920&lt;BR /&gt;&lt;BR /&gt;AREA 1&lt;BR /&gt;        ALLOCATION              4092&lt;BR /&gt;        BEST_TRY_CONTIGUOUS     yes&lt;BR /&gt;        BUCKET_SIZE             12&lt;BR /&gt;        EXTENSION               4092&lt;BR /&gt;&lt;BR /&gt;AREA 2&lt;BR /&gt;        ALLOCATION              316789&lt;BR /&gt;        BEST_TRY_CONTIGUOUS     yes&lt;BR /&gt;        BUCKET_SIZE             6&lt;BR /&gt;        EXTENSION               65535&lt;BR /&gt;&lt;BR /&gt;Is this better?&lt;BR /&gt;&lt;BR /&gt;RMS novice,&lt;BR /&gt;Art</description>
      <pubDate>Thu, 23 Jun 2005 16:30:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/edit-fdl-usage/m-p/3562225#M69206</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2005-06-23T16:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: EDIT/FDL usage</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/edit-fdl-usage/m-p/3562226#M69207</link>
      <description>&amp;gt;&amp;gt; Somehow I missed the fact that some of FDL's I was trying to optimize weren't there --&amp;gt; %FDL-F-OPENFDL, error opening xxxxx;&lt;BR /&gt;&lt;BR /&gt;The easiest explanation for that is the file being accessed when ANAL/RMS was attempted. It needs exclusive access.&lt;BR /&gt;&lt;BR /&gt;AREA 0&lt;BR /&gt;ALLOCATION 304006&lt;BR /&gt;BUCKET_SIZE 18&lt;BR /&gt;EXTENSION 14461&lt;BR /&gt;:&lt;BR /&gt;And after the EDIT/FDL it says this:&lt;BR /&gt;&lt;BR /&gt;AREA 0&lt;BR /&gt;ALLOCATION 163769&lt;BR /&gt;BUCKET_SIZE 12&lt;BR /&gt;EXTENSION 40920&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; Is this better?&lt;BR /&gt;&lt;BR /&gt;'it depends'.&lt;BR /&gt;It is certain to be reasonable for the information provided. &lt;BR /&gt;That is:&lt;BR /&gt;- the root level will not be too high&lt;BR /&gt;- the initial data will fit in the allocated space.&lt;BR /&gt;EDIT/FDL uses a 1/4 allocation for the extent, limited by 65K (system max).&lt;BR /&gt;It seems that the original file was larger then strictly needed to hold the data.&lt;BR /&gt;This may be due to an overdue convert, or it could be symptomatic for the data access patterns. In the latter case the new file is bound to quickly grow to approx the old size. THe generous extent will make sure the growth will not be too painfull if and when it is needed.&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Jun 2005 22:07:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/edit-fdl-usage/m-p/3562226#M69207</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-06-23T22:07:42Z</dc:date>
    </item>
  </channel>
</rss>

