<?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: Is there a utility to open and display/copy a file via FILE ID? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214278#M44218</link>
    <description>if you routinely need to get to these spooled files, why not process them different way in the first place ?&lt;BR /&gt;&lt;BR /&gt;Besides EXECSYMB that has already been mentioned, a shameless plug ... see my DRAIN program on Freeware v7 and at &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wvnvaxa.wvnet.edu/vmswww/drain.html" target="_blank"&gt;http://wvnvaxa.wvnet.edu/vmswww/drain.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Warnings:&lt;BR /&gt;&lt;BR /&gt;1) it was written for the Multinet TCP/IP stack&lt;BR /&gt;&lt;BR /&gt;2) it was written with just plain text files in mind&lt;BR /&gt;&lt;BR /&gt;--------------------------------------&lt;BR /&gt;&lt;BR /&gt;BUT ... it could give you a starting point for what you need :-)&lt;BR /&gt;&lt;BR /&gt;FYI, DRAIN captures a print stream and saves it to a file.&lt;BR /&gt;&lt;BR /&gt;Verne Britton&lt;BR /&gt;</description>
    <pubDate>Thu, 26 Jun 2008 21:22:44 GMT</pubDate>
    <dc:creator>Verne Britton</dc:creator>
    <dc:date>2008-06-26T21:22:44Z</dc:date>
    <item>
      <title>Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214258#M44198</link>
      <description>&lt;BR /&gt;Before I reinvent the wheel... I would basically like:&lt;BR /&gt;&lt;BR /&gt;copy/id=(x,y,z) device: [outputfile]&lt;BR /&gt;&lt;BR /&gt;The undocumented dump/id would be usable, but doesn't really seem to open a file by ID, it seems to just look up that file header to get the filename and then open it normally, so I think it doesn't work for files without directory entries.&lt;BR /&gt;&lt;BR /&gt;I haven't found anything out there so far...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Jun 2008 20:42:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214258#M44198</guid>
      <dc:creator>Tom O'Toole</dc:creator>
      <dc:date>2008-06-10T20:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214259#M44199</link>
      <description>Some background, I'm asking because spooled print files get created on the intermediate disk device without directory entries. I can get their file IDs using getqui. I'd like to write a procedure that can display or copy the files, given a queue entry number. &lt;BR /&gt;&lt;BR /&gt;This would be much better than the current alternative of running an/dis/rep, and then poking around for a file that's the same size/owner/date of the relevant entry.</description>
      <pubDate>Tue, 10 Jun 2008 21:07:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214259#M44199</guid>
      <dc:creator>Tom O'Toole</dc:creator>
      <dc:date>2008-06-10T21:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214260#M44200</link>
      <description>I think you used to be able to enter a name into a file directory using PIP.  But that doesn't help here.&lt;BR /&gt;&lt;BR /&gt;Joe Meadow's FILE program allows you to do this:  From the FILE.HLP file&lt;BR /&gt;&lt;BR /&gt;/FID&lt;BR /&gt;&lt;BR /&gt;          You may use this qualifier to specify the  file  id  of  a&lt;BR /&gt;     file  to  enter, with the name passed on the command line.  For&lt;BR /&gt;     instance:&lt;BR /&gt;          $ FILE GARBAGE.SPOOLED/FID=(1234,56,0)&lt;BR /&gt;&lt;BR /&gt;          This  will  enter  the  file  specified  by  the  file  id&lt;BR /&gt;     (1234,56,0)   into  your  current  directory  with  a  name  of&lt;BR /&gt;     GARBAGE.SPOOLED.  You may at this point do other things to  the&lt;BR /&gt;     file (such as make a backup copy).&lt;BR /&gt;&lt;BR /&gt;          The original intent behind this was to be able to  recover&lt;BR /&gt;     temporary   spool   files  (which  don't  get  created  in  any&lt;BR /&gt;     directory, and are created "delete on close", thus  having  the&lt;BR /&gt;     "marked_for_delete" flag set).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here's a something Hein wrote a while ago:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://mvb.saic.com/freeware/vmslt04b/vu/type-file-by-fid-vms.txt" target="_blank"&gt;http://mvb.saic.com/freeware/vmslt04b/vu/type-file-by-fid-vms.txt&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Jon</description>
      <pubDate>Tue, 10 Jun 2008 23:22:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214260#M44200</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2008-06-10T23:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214261#M44201</link>
      <description>&lt;!--!*#--&gt;Tom,&lt;BR /&gt;&lt;BR /&gt;I have a patch_file utility (available on the freeware CDs in&lt;BR /&gt;the DBS-PATCH package) that can open a file by file id.&lt;BR /&gt;&lt;BR /&gt;The following example uses a file that IS in a directory&lt;BR /&gt;but since you will know the device and file id...&lt;BR /&gt;&lt;BR /&gt;tardis_FTA7&amp;gt; dir /file zap.obj&lt;BR /&gt;&lt;BR /&gt;Directory DBS0:[SCRATCH]&lt;BR /&gt;&lt;BR /&gt;ZAP.OBJ;1            (20967,9,0)&lt;BR /&gt;&lt;BR /&gt;Total of 1 file.&lt;BR /&gt;&lt;BR /&gt;tardis_FTA7&amp;gt; pfile dev dsa6000: id 20967 9 0&lt;BR /&gt;Patch_File V2.0&lt;BR /&gt;Patching file DISK$DALEK:[SYSPROG.DSNEDDON.SCRATCH]ZAP.OBJ;1&lt;BR /&gt;              DSA6000: (20967,9,0)&lt;BR /&gt;&lt;BR /&gt;PatchFile set disp ascii read 1 disp&lt;BR /&gt;Reading VBN 1  (00000001)&lt;BR /&gt;&lt;BR /&gt;Modified VBN 1  (00000001)&lt;BR /&gt;     0-[@...@.............Ã¸.....MAIN..V113-DEC-2006 01:17...............]&lt;BR /&gt;    64-[..........AMAC V5.0-120.........................  ABS  .........]&lt;BR /&gt;   128-[Ã ....... BLANK ................HELP.............Ã .&amp;lt;....CODE.....]&lt;BR /&gt;   192-[...............DATA............. ......$ABS$...................$]&lt;BR /&gt;   256-[LINKAGE.....(..............................BUF......(...J.p.....]&lt;BR /&gt;   320-[...................START..Ã ...Ã .....................=...........]&lt;BR /&gt;   384-[....................4...=..........##   read VBN ##......X    fo]&lt;BR /&gt;   448-[llowed by hexadecimal number to read VBN ##....S    followed by ]&lt;BR /&gt;&lt;BR /&gt;PatchFile  Exit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The source is available and it should be easy to add a copy function.&lt;BR /&gt;&lt;BR /&gt;Dave&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jun 2008 00:59:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214261#M44201</guid>
      <dc:creator>David B Sneddon</dc:creator>
      <dc:date>2008-06-11T00:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214262#M44202</link>
      <description>What might arising here that causes a need to reference files by FID?  Some background, please?&lt;BR /&gt;&lt;BR /&gt;I'm guessing at some possibilities here...&lt;BR /&gt;&lt;BR /&gt;There's a bug that causes spooled entries to get stuffed up and left in in the file structure.  That was fixed a while back (XQP?), and patches are available for various versions.&lt;BR /&gt;&lt;BR /&gt;There are queue symbionts that allow you to process files available via Freeware or such.  Here's one, and it can serve as a Google target for finding others.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://mvb.saic.com/freeware/freewarev80/execsymb/" target="_blank"&gt;http://mvb.saic.com/freeware/freewarev80/execsymb/&lt;/A&gt;</description>
      <pubDate>Wed, 11 Jun 2008 00:59:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214262#M44202</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-06-11T00:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214263#M44203</link>
      <description>Tom,&lt;BR /&gt;&lt;BR /&gt;   If you're running V8.2 or higher, it might be interesting to see what F$FID_TO_NAME returns. &lt;BR /&gt;&lt;BR /&gt;&amp;gt;then poking around for a file that's the &lt;BR /&gt;&amp;gt;same size/owner/date of the relevant entry.&lt;BR /&gt;&lt;BR /&gt;  If you "repair" the file into SYSLOST, you can positively identify it by comparing F$FILE(f,"FID") with your known FID.&lt;BR /&gt;&lt;BR /&gt;  If you don't want to use ANALYZE/DISK/REPAIR, it's fairly simple to create a directory entry for it using an ACP $QIO (see I/O Users Guide).</description>
      <pubDate>Wed, 11 Jun 2008 01:08:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214263#M44203</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-06-11T01:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214264#M44204</link>
      <description>Just ENTER the file into a directory.&lt;BR /&gt;Then manipulate / copy / display the file to your hearts content.&lt;BR /&gt;Attached is a trivial tool to do just that.&lt;BR /&gt;It is much similar to the type tool Jon already posted a link to.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein</description>
      <pubDate>Wed, 11 Jun 2008 02:37:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214264#M44204</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-06-11T02:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214265#M44205</link>
      <description>&lt;BR /&gt;Thanks for the responses. I KNEW there were utilities out there already, I just couldn't remember/find them... &lt;BR /&gt;&lt;BR /&gt;FILE and VERB are a couple of the most useful add-ons ever...</description>
      <pubDate>Wed, 11 Jun 2008 14:52:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214265#M44205</guid>
      <dc:creator>Tom O'Toole</dc:creator>
      <dc:date>2008-06-11T14:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214266#M44206</link>
      <description>&amp;gt; If you "repair" the file into SYSLOST, you can positively identify it by comparing F$FILE(f,"FID") with your known FID.&lt;BR /&gt;&lt;BR /&gt;If the file exists in any known directory then you can use FID syntax to access it e.g.&lt;BR /&gt;&lt;BR /&gt;$ type DDcu:[syslost]~[x,y,z]&lt;BR /&gt;&lt;BR /&gt;Unfortunately that doesn't seem to work unless the file exists in a directory and you know the directory path.</description>
      <pubDate>Wed, 25 Jun 2008 01:24:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214266#M44206</guid>
      <dc:creator>Derek Garson</dc:creator>
      <dc:date>2008-06-25T01:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214267#M44207</link>
      <description>In case folks are wondering, Derek is refering to the little known "FID-Abbreviated Names" as documented (somewhat) in:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731FINAL/4506/4506pro_019.html#fid_abbrev_names" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/4506/4506pro_019.html#fid_abbrev_names&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;These are only valid on ODS5 disks, &lt;BR /&gt;swith process parse style set to extended.&lt;BR /&gt;&lt;BR /&gt;Notice how they are call abbreviated NAMES, not specification. &lt;BR /&gt;It refers only to the name part of a name. RMS still does a Directory lookup, but it hunts for the FID not just a name.&lt;BR /&gt;&lt;BR /&gt;Derek, and myself, feel this is a missed opportunity to allow for FID-only file specifications in general. I suspect this was not carried through as parse output gets difficult/partial. I would happily accept that restriction (gigo), but it was deemed too different from the norm.&lt;BR /&gt;&lt;BR /&gt;Sample usage session below.&lt;BR /&gt;There are also DID-Abbreviated Directories&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;$ set def myods5&lt;BR /&gt;$ dir&lt;BR /&gt;%DIRECT-W-NOFILES, no files found&lt;BR /&gt;$ crea aap.txt&lt;BR /&gt;:&lt;BR /&gt;$ dir/fil&lt;BR /&gt;Directory USR_ODS5:[HEIN]&lt;BR /&gt;aap.txt;1            (213,1,0)&lt;BR /&gt;:&lt;BR /&gt;$ type USR_ODS5:[HEIN]~[213,1,0]&lt;BR /&gt;:&lt;BR /&gt;$ type USR_ODS5:[xxxx]~[213,1,0]&lt;BR /&gt;%TYPE-W-SEARCHFAIL, error searching for USR_ODS5:[XXXX]~[213,1,0].LIS;&lt;BR /&gt;-RMS-E-DNF, directory not found&lt;BR /&gt;-SYSTEM-W-NOSUCHFILE, no such file&lt;BR /&gt;$ dir  USR_ODS5:[hein]~[213,1,0]&lt;BR /&gt;Directory USR_ODS5:[HEIN]&lt;BR /&gt;aap[213,1,0].txt;1&lt;BR /&gt;:&lt;BR /&gt;$ set def [test]&lt;BR /&gt;$ dir  USR_ODS5:~[213,1,0]&lt;BR /&gt;%DIRECT-E-OPENIN, error opening USR_ODS5:[TEST]~[213,1,0].*;* as input&lt;BR /&gt;-RMS-E-DNF, directory not found&lt;BR /&gt;-SYSTEM-W-NOSUCHFILE, no such file&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jun 2008 02:27:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214267#M44207</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-06-25T02:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214268#M44208</link>
      <description>Aha ODS-5 - that's why I couldn't make it work! I didn't think Derek would give us a bum steer ;-)</description>
      <pubDate>Wed, 25 Jun 2008 03:46:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214268#M44208</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-06-25T03:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214269#M44209</link>
      <description>Right. I overlooked that that feature (FID abbreviation) is ODS-5-only, as it worked for me.&lt;BR /&gt;&lt;BR /&gt;I guess that is for compatibility as much as anything else. I can't see any specific reason why the FID syntax doesn't make sense on ODS-2. It's just that you never need it because file specs can't be too long.&lt;BR /&gt;&lt;BR /&gt;As far as the original problem goes I was really hoping that&lt;BR /&gt;&lt;BR /&gt;DDcu:[0,0,0]~[x,y,z]&lt;BR /&gt;&lt;BR /&gt;would do the trick. It should almost work since 0 in the DID field in a NAM/FIB would suppress the directory lookup and just allow access by FID. (-: But, no.&lt;BR /&gt;&lt;BR /&gt;As Hein says, that would then require yet another special case with file spec defaulting.</description>
      <pubDate>Wed, 25 Jun 2008 04:43:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214269#M44209</guid>
      <dc:creator>Derek Garson</dc:creator>
      <dc:date>2008-06-25T04:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214270#M44210</link>
      <description>&lt;BR /&gt;Thanks for the info Derek, I can't apply it to this specific case, but I was not aware of that little trick, you learn something every day. Also learned you can reopen a thread.&lt;BR /&gt;&lt;BR /&gt;As a followup, I'm using the example code Hein posted, which is perfect for my application. Thank you!!</description>
      <pubDate>Wed, 25 Jun 2008 15:20:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214270#M44210</guid>
      <dc:creator>Tom O'Toole</dc:creator>
      <dc:date>2008-06-25T15:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214271#M44211</link>
      <description>&lt;!--!*#--&gt;Another good reason that FID-only file specifications are not allowed for any RMS file reference is that it would bypass any permission restrictions on the directory.  Even if this was only allowed with a privilege such as BYPASS it would still skip any security auditing set on the directory.&lt;BR /&gt;&lt;BR /&gt;However I just did a test on my VMS 7.3-2 (fully patched) system and was surprised to see that you can skip the directory protection check on any outer directories by using a DID-abbreviation to point directly to an unprotected sub-directory.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ DIRE/PROT/FI DISK$SAN016:[000000]ODS5TEST,[ODS5TEST]sub&lt;BR /&gt;&lt;BR /&gt;Directory DISK$SAN016:[000000]&lt;BR /&gt;&lt;BR /&gt;ODS5TEST.DIR;1       (2547,1,0)              (RWED,RWE,RWE,)&lt;BR /&gt;&lt;BR /&gt;Total of 1 file.&lt;BR /&gt;&lt;BR /&gt;Directory DISK$SAN016:[ODS5TEST]&lt;BR /&gt;&lt;BR /&gt;sub.DIR;1            (2620,7,0)              (RWE,RWE,RWE,RE)&lt;BR /&gt;&lt;BR /&gt;Total of 1 file.&lt;BR /&gt;&lt;BR /&gt;Grand total of 2 directories, 2 files.&lt;BR /&gt;$ SET PROCESS/PRIV=NOALL&lt;BR /&gt;&lt;BR /&gt;$ COPY DISK$SAN016:[ODS5TEST.sub]JUNK.TXT;1 NL:/LOG&lt;BR /&gt;%COPY-E-OPENIN, error opening DISK$SAN016:[ODS5TEST.SUB]JUNK.TXT;1 as input&lt;BR /&gt;-RMS-E-PRV, insufficient privilege or file protection violation&lt;BR /&gt;&lt;BR /&gt;$ COPY DISK$SAN016:[2620,7,0]JUNK.TXT NL:/LOG&lt;BR /&gt;%COPY-S-COPIED, DISK$SAN016:[2620,7,0]JUNK.TXT;1 copied to NL: (1 record)&lt;BR /&gt;&lt;BR /&gt;Other commands that access the file this way seem to work too, with a notable exception:&lt;BR /&gt;$ TYPE DISK$SAN016:[2620,7,0]JUNK.TXT&lt;BR /&gt;%TYPE-F-SYSERROR, system service error&lt;BR /&gt;-SYSTEM-F-NOPRIV, insufficient privilege or object protection violation&lt;BR /&gt;&lt;BR /&gt;But the strangest result from my tests is that using the DID-abreviation path to get to JUNK.TXT works with the DUMP command, but using JUNK.TXT's file ID with DUMP's /ID= qualifer does not work.  I think this is because TYPE and DUMP /ID both use the back link file identification to get the full path to the file.</description>
      <pubDate>Wed, 25 Jun 2008 15:29:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214271#M44211</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2008-06-25T15:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214272#M44212</link>
      <description>&amp;gt;&amp;gt; Another good reason that FID-only file specifications are not allowed for any RMS file reference is that it would bypass any permission restrictions on the directory.&lt;BR /&gt;&lt;BR /&gt;I beg to differ. &lt;BR /&gt;&lt;BR /&gt;All a directory does is to provide a name to FID translation. If you _know_ the FID, then clearly the directory protection is irrelevant. &lt;BR /&gt;&lt;BR /&gt;The object (file) protection is the only thing that really matters.  Directory protection is just a minor 'hurdle' / inconvenience to stop simple undesired access attempts.&lt;BR /&gt;&lt;BR /&gt;One could conceivably just brutefoce your way through all ID/SEQ combination and nothing would stop you. Only resource consumption would conspiciously high.&lt;BR /&gt;&lt;BR /&gt;You could argue that when you know the FID, the directory protection should allow/prohit you from back-translating to a name, which it is indeed doing.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;  Even if this was only allowed with a privilege such as BYPASS it would still skip any security auditing set on the directory.&lt;BR /&gt;&lt;BR /&gt;bah humbug. Only the object protection reallly matter. SYS$OPEN and SYS$QIO have full support for open by file ID.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; $ TYPE DISK$SAN016:[2620,7,0]JUNK.TXT&lt;BR /&gt;%TYPE-F-SYSERROR, system service error&lt;BR /&gt;-SYSTEM-F-NOPRIV, insufficient privilege or object protection violation&lt;BR /&gt;&lt;BR /&gt;Hmmm intersting.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; DUMP's /ID= qualifer does not work.  I think this is because TYPE and DUMP /ID both use the back link file identification to get the full path to the file.&lt;BR /&gt;&lt;BR /&gt;Yeah... and IMHO that is a big and annoying bug. The LIB$FID_TO_NAME call used by DUMP should be use in an advisory and thus optional role. It should not break the main function as it does today.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jun 2008 15:45:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214272#M44212</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-06-25T15:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214273#M44213</link>
      <description>&lt;BR /&gt;Yeah, the undocumented dump/id was one of the first things I tried, but it dosn't do what I had hoped at all.&lt;BR /&gt;&lt;BR /&gt;Besides, after entering a filename, I can do anything, not just dump it.</description>
      <pubDate>Wed, 25 Jun 2008 15:55:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214273#M44213</guid>
      <dc:creator>Tom O'Toole</dc:creator>
      <dc:date>2008-06-25T15:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214274#M44214</link>
      <description>Of course, if it's a choice between fixing a bug in an undocumented function of dump, and increasing the maximum tape blocksize, you know where my vote goes.</description>
      <pubDate>Wed, 25 Jun 2008 15:56:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214274#M44214</guid>
      <dc:creator>Tom O'Toole</dc:creator>
      <dc:date>2008-06-25T15:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214275#M44215</link>
      <description>Actually the DUMP /ID= feature has been documented since at least VMS 7.2.</description>
      <pubDate>Wed, 25 Jun 2008 16:09:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214275#M44215</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2008-06-25T16:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214276#M44216</link>
      <description>Here's a summarized demo showing that directory protection is only protecting the file names/file id (and to an extent, the ability to delete a file, for example, I wasn't able to delete the file using DFU's delete by file/id. See attachment for more complete example.&lt;BR /&gt;&lt;BR /&gt;You can easilty replace the contents of the file if you have write access to it, regardless of the protection of the primary directory the entry is in.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;OT$ cre /dir [.protected] &lt;BR /&gt;OT$ set default [.protected]&lt;BR /&gt;OT$ cre file_with_world_access.txt&lt;BR /&gt;This file is in a protected directory, but the file has w:rwed&lt;BR /&gt; Exit &lt;BR /&gt;OT$ set prot=w:rwed FILE_WITH_WORLD_ACCESS.TXT;1&lt;BR /&gt;OT$ set def [-]&lt;BR /&gt;OT$ set prot=(g,w) protected.dir;1&lt;BR /&gt;&lt;BR /&gt;From non-prived account:&lt;BR /&gt;&lt;BR /&gt;TSTO:[PINKLEY_1]&amp;gt; type ROOT$USERS:[JON.protected]FILE_WITH_WORLD_ACCESS.TXT;1&lt;BR /&gt;%TYPE-W-SEARCHFAIL, error searching for ROOT$USERS:[JON.PROTECTED]FILE_WITH_WORLD_ACCESS.TXT;1&lt;BR /&gt;-RMS-E-PRV, insufficient privilege or file protection violation&lt;BR /&gt;TSTO:[PINKLEY_1]&amp;gt; cre /dir [.play]&lt;BR /&gt;TSTO:[PINKLEY_1]&amp;gt; set def [.play]&lt;BR /&gt;TSTO:[PINKLEY_1]&amp;gt; file jonsfile.txt/fid=(58964,79,0)&lt;BR /&gt;%SYSTEM-F-NOPRIV, insufficient privilege or object protection violation&lt;BR /&gt;TSTO:[PINKLEY_1]&amp;gt; type jonsfile.txt&lt;BR /&gt;This file is in a protected directory, but the file has w:rwed&lt;BR /&gt;TSTO:[PINKLEY_1]&amp;gt; type jonsfile.txt&lt;BR /&gt;This file is in a protected directory, but the file has w:rwed&lt;BR /&gt;TSTO:[PINKLEY_1]&amp;gt; crea new.txt&lt;BR /&gt;This will replace contents of original file.&lt;BR /&gt; Exit &lt;BR /&gt;TSTO:[PINKLEY_1]&amp;gt; copy/over new.txt jonsfile.txt&lt;BR /&gt;%COPY-I-OVERLAY, ROOT$USERS:[PINKLEY.PLAY]JONSFILE.TXT;1 being overwritten&lt;BR /&gt;%COPY-S-COPIED, ROOT$USERS:[PINKLEY.PLAY]NEW.TXT;1 copied to ROOT$USERS:[PINKLEY.PLAY]JONSFILE.TXT;1 (1 block)&lt;BR /&gt;TSTO:[PINKLEY_1]&amp;gt; type jonsfile.txt&lt;BR /&gt;This will replace contents of original file.&lt;BR /&gt;TSTO:[PINKLEY_1]&amp;gt; log&lt;BR /&gt;  PINKLEY      logged out at 25-JUN-2008 13:51:53.53&lt;BR /&gt;%HGLOGIN-I-EXIT, returning to original JON session&lt;BR /&gt;OT$ type [.protected]FILE_WITH_WORLD_ACCESS.TXT;1&lt;BR /&gt;This will replace contents of original file.&lt;BR /&gt;OT$</description>
      <pubDate>Wed, 25 Jun 2008 17:13:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214276#M44216</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2008-06-25T17:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a utility to open and display/copy a file via FILE ID?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214277#M44217</link>
      <description>Tom,&lt;BR /&gt;&lt;BR /&gt;  If you want to avoid making a directory entry, and what you're attempting to recover is text, and you have heavy privileges, you can use DUMP, but it's rather round about... (a procedure to automate this is feasible, but it involves a lot of parsing).&lt;BR /&gt;&lt;BR /&gt;  In this example I have a file called "JUNK.TXT" with FID (16193,2,0) on physical device $1$DGA6298:&lt;BR /&gt;&lt;BR /&gt;First (SYSPRV or BYPASS required) access the header of the file using DUMP. This requires the "magic" INDEXF.SYS FID offset - this is used to calculate the block in INDEXF.SYS containing the header. There's a formula based on maximum files allowed and cluster size, but for one-off use, the simplest method is to dump the block of your FID, see what FID is returned and use the difference as your offset. In my case &lt;BR /&gt;&lt;BR /&gt;$ dump/file/block=(s:16193,c:1) $1$DGA6298:[000000]indexf.sys&lt;BR /&gt;&lt;BR /&gt;gives me:&lt;BR /&gt;    File identification:                  (15907,3,0)&lt;BR /&gt;&lt;BR /&gt;So calculate my target block as: &lt;BR /&gt;&lt;BR /&gt;16193*2-15907 = 16479&lt;BR /&gt;&lt;BR /&gt;$ dump/file/block=(s:16479,c:1) $1$DGA6298:[000000]indexf.sys&lt;BR /&gt;&lt;BR /&gt;Sanity check the FID, backlink and name. &lt;BR /&gt;&lt;BR /&gt;    File identification:                  (16193,2,0)&lt;BR /&gt;... &lt;BR /&gt;    Back link file identification:        (0,0,0)&lt;BR /&gt;...&lt;BR /&gt;Identification area&lt;BR /&gt;    File name:                            JUNK.TXT;1&lt;BR /&gt;&lt;BR /&gt;FID is correct, backlink is (0,0,0), meaning "lost" and filename is as I expect.&lt;BR /&gt;&lt;BR /&gt;Now look at the map area:&lt;BR /&gt;&lt;BR /&gt;Map area&lt;BR /&gt;    Retrieval pointers&lt;BR /&gt;        Count:         41        LBN:       9430&lt;BR /&gt;&lt;BR /&gt;With LOG_IO privilege, the extents can be dumped by dumping LBNs from the device. I won't dump out the whole cluster, since I know there's only one record in the file.&lt;BR /&gt;&lt;BR /&gt;$ dump/block=(s:9430,c:1)  $1$DGA6298:&lt;BR /&gt;Dump of device $1$DGA6298: on 26-JUN-2008 07:57:59.79&lt;BR /&gt;&lt;BR /&gt;Logical block number 9430 (000024D6), 512 (0200) bytes&lt;BR /&gt;&lt;BR /&gt; 00000000 0000FFFF 00747874 2E6B6E75 6A206E69 20747865 7420656D 6F730015 ..some text in junk.txt......... 000000&lt;BR /&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 000020&lt;BR /&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 000040&lt;BR /&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 000060&lt;BR /&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 000080&lt;BR /&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 0000A0&lt;BR /&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 0000C0&lt;BR /&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 0000E0&lt;BR /&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 000100&lt;BR /&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 000120&lt;BR /&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 000140&lt;BR /&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 000160&lt;BR /&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 000180&lt;BR /&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 0001A0&lt;BR /&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 0001C0&lt;BR /&gt; 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ................................ 0001E0&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;Obviously this will get complex if there are many extents and/or extension headers. You also need to interpret the dumped output to reconstruct records.&lt;BR /&gt;&lt;BR /&gt;However, if all you want to do is visually inspect the contents of the file, it might avoid the need to write a program to create a directory entry.</description>
      <pubDate>Wed, 25 Jun 2008 21:03:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/is-there-a-utility-to-open-and-display-copy-a-file-via-file-id/m-p/4214277#M44217</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-06-25T21:03:14Z</dc:date>
    </item>
  </channel>
</rss>

