<?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: how do I read a file that is flagged as locked in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349669#M3189</link>
    <description>Kirk,&lt;BR /&gt;&lt;BR /&gt;you're using the EDT editor. Try using TPU:&lt;BR /&gt;&lt;BR /&gt;$ EDIT/TPU/READ PWRK$MASTER_OSIJX2.LOG&lt;BR /&gt;&lt;BR /&gt;If you prefer the EDT keypad in TPU - as I do - add DEFINE/JOB EVE$KEYPAD EDT to your LOGIN.COM.&lt;BR /&gt;&lt;BR /&gt;TPU is better regarding the reading of files opened for write by another user (best example is OPERATOR.LOG)&lt;BR /&gt;&lt;BR /&gt;If TPU can't open the file, then try the BACK/IGN=INTERLOCK method described by Hein.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
    <pubDate>Thu, 05 Aug 2004 03:45:06 GMT</pubDate>
    <dc:creator>Volker Halle</dc:creator>
    <dc:date>2004-08-05T03:45:06Z</dc:date>
    <item>
      <title>how do I read a file that is flagged as locked</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349667#M3187</link>
      <description>OpenVMS 7.3-1&lt;BR /&gt;2-node cluster on ES40 hardware.&lt;BR /&gt;&lt;BR /&gt;Can anyone tell me how I can read a file that is locked??  For instance:&lt;BR /&gt;&lt;BR /&gt;I want to examine the following pathworks log file:&lt;BR /&gt;&lt;BR /&gt;pwrk$logs:PWRK$MASTER_OSIJX2.LOG&lt;BR /&gt;&lt;BR /&gt;If I do a:&lt;BR /&gt;set proc/priv=all&lt;BR /&gt;OSIJX2&amp;gt; edit /read PWRK$MASTER_OSIJX2.LOG&lt;BR /&gt;%EDT-F-OPENIN, error opening PWRK$COMMONROOT:[LOGS]PWRK$MASTER_OSIJX2.LOG; as input&lt;BR /&gt;-RMS-E-FLK, file currently locked by another user&lt;BR /&gt;&lt;BR /&gt;OSIJX2&amp;gt; type PWRK$MASTER_OSIJX2.LOG&lt;BR /&gt;%TYPE-W-OPENIN, error opening PWRK$COMMONROOT:[LOGS]PWRK$MASTER_OSIJX2.LOG;166 as input&lt;BR /&gt;-RMS-E-FLK, file currently locked by another user&lt;BR /&gt;OSIJX2&amp;gt;&lt;BR /&gt;&lt;BR /&gt;I'd just like to read it, not edit it.&lt;BR /&gt;Thanks &lt;BR /&gt;Kirk</description>
      <pubDate>Wed, 04 Aug 2004 13:27:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349667#M3187</guid>
      <dc:creator>Kirk Reindl</dc:creator>
      <dc:date>2004-08-04T13:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: how do I read a file that is flagged as locked</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349668#M3188</link>
      <description>&lt;BR /&gt;Your best bet: BACKU/IGNORE=INTERLOCK&lt;BR /&gt;&lt;BR /&gt;Please note that the writer did NOT expect sharing, even prohibitied it. So the RMS function in the writer process is just filling buffers (8KB or 16KB or whatever SHOW RMS tells you) and NOT flushing out to disk. Even if it flushes the data as buffers get filled and re-used it will NOT update the exact EOF and it will heppily write a partial record. The next write will write the end of that partial.&lt;BR /&gt;&lt;BR /&gt;So you may need an set file/end on the output from backup/ignore=inter and you may well end up with junk at some arbretrary multple of 8192 bytes.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Aug 2004 14:15:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349668#M3188</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-08-04T14:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: how do I read a file that is flagged as locked</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349669#M3189</link>
      <description>Kirk,&lt;BR /&gt;&lt;BR /&gt;you're using the EDT editor. Try using TPU:&lt;BR /&gt;&lt;BR /&gt;$ EDIT/TPU/READ PWRK$MASTER_OSIJX2.LOG&lt;BR /&gt;&lt;BR /&gt;If you prefer the EDT keypad in TPU - as I do - add DEFINE/JOB EVE$KEYPAD EDT to your LOGIN.COM.&lt;BR /&gt;&lt;BR /&gt;TPU is better regarding the reading of files opened for write by another user (best example is OPERATOR.LOG)&lt;BR /&gt;&lt;BR /&gt;If TPU can't open the file, then try the BACK/IGN=INTERLOCK method described by Hein.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Thu, 05 Aug 2004 03:45:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349669#M3189</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2004-08-05T03:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: how do I read a file that is flagged as locked</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349670#M3190</link>
      <description>And, just for completeness, remember the same restrictions about the data already/not yet written as described by Hein also applies to Volker's solution, with the extra restriction that you CANNOT do the SET FILE/END&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;&lt;BR /&gt;Jan</description>
      <pubDate>Thu, 05 Aug 2004 04:21:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349670#M3190</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2004-08-05T04:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: how do I read a file that is flagged as locked</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349671#M3191</link>
      <description>Kirk,&lt;BR /&gt;As many have mentioned here use the tpu editor. I have tried this with another file that was locked and it works&lt;BR /&gt;&lt;BR /&gt;Try this....&lt;BR /&gt;&lt;BR /&gt;OSIJX2&amp;gt; ed/tpu/read PWRK$MASTER_OSIJX2.LOG;&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;Mobeen</description>
      <pubDate>Thu, 05 Aug 2004 07:01:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349671#M3191</guid>
      <dc:creator>Mobeen_1</dc:creator>
      <dc:date>2004-08-05T07:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: how do I read a file that is flagged as locked</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349672#M3192</link>
      <description>Files not accessed by other processes can be vieuwed with any tool.&lt;BR /&gt;If the file is open in shared mode allowing readers, edt no longer works. TPU does.&lt;BR /&gt;If the file is exclusively open, all tools including tpu stop working except backup/ign=int. &lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Thu, 05 Aug 2004 07:59:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349672#M3192</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-08-05T07:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: how do I read a file that is flagged as locked</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349673#M3193</link>
      <description>&lt;BR /&gt;Kirk showed TYPE also failing, so I assume(d) that TPU woudl also fail.&lt;BR /&gt;&lt;BR /&gt;On other tool well worth a try is: CONVERT/SHARE.&lt;BR /&gt;That will work nicely for cases where the original opener allows readers but not writers. Best I recall it uses the UPI open option though and may not see the right EOF.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Aug 2004 10:42:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349673#M3193</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-08-05T10:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: how do I read a file that is flagged as locked</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349674#M3194</link>
      <description>CONVERT/SHARE fails with this file as it is open exclusive.&lt;BR /&gt;&lt;BR /&gt;Tracing the usage of this file, looking through old versions, I don't see why it is even open. It logs the PWRK$MASTER process startup and I've never seen anything in it from after that time. Pathworks does some strange things and the dozens of files it keeps open exclusive is a real PITA.&lt;BR /&gt;&lt;BR /&gt;Here's what I see every version of the file:&lt;BR /&gt;&lt;BR /&gt;$type pwrk$logs:PWRK$MASTER_TRULIN.LOG;-1&lt;BR /&gt;&lt;BR /&gt; 4-JUN-2004 10:46:25.22 00000229:002D7DC8 [eventlogger]&lt;BR /&gt; 4-JUN-2004 10:46:25.44 00000229:002D7DC8   event_log_path = PWRK$COMMON:EVTLOGT&lt;BR /&gt; 4-JUN-2004 10:46:25.44 00000229:002D7DC8 LIB_CSStartup: CS startup initiated f9&lt;BR /&gt; 4-JUN-2004 10:46:25.53 00000229:002D7DC8 LIBMEM_init: intialised 16 lookaside l&lt;BR /&gt; 4-JUN-2004 10:46:25.53 00000229:002D7DC8 [servers]&lt;BR /&gt; 4-JUN-2004 10:46:25.53 00000229:002D7DC8   lanmanager = yes&lt;BR /&gt; 4-JUN-2004 10:46:25.56 00000229:002D7DC8 PCM_init: initializing distributed da0&lt;BR /&gt; 4-JUN-2004 10:46:25.56 00000229:002D7DC8 PFS_configure: loaded data cache &lt;PCM0&gt;&lt;/PCM0&gt; 4-JUN-2004 10:46:25.64 00000229:002D7DC8 PFS_configure: loaded dynamic library0&lt;BR /&gt; 4-JUN-2004 10:46:25.64 00000229:002D7DC8 PFS library, version 17.1 configured,0&lt;BR /&gt; 4-JUN-2004 10:46:25.64 00000229:002D7DC8 PFS_getusage: check ODS2 File System,5&lt;BR /&gt; 4-JUN-2004 10:46:25.64 00000229:002D7DC8 PFS_getusage: acquiring PCM usage inf &lt;BR /&gt; 4-JUN-2004 10:46:25.64 00000229:002D7DC8 PFS_getusage: acquiring PCM usage inf &lt;BR /&gt; 4-JUN-2004 10:46:25.64 00000229:002D7DC8 PFS_getusage: acquiring PCM usage inf &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Doug&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Aug 2004 16:48:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349674#M3194</guid>
      <dc:creator>Doug Phillips</dc:creator>
      <dc:date>2004-08-05T16:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: how do I read a file that is flagged as locked</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349675#M3195</link>
      <description>Kirk,&lt;BR /&gt;what's your detailed trouble?&lt;BR /&gt;Reading PWRK$MASTER doesn't give you useful information; same for PWRK$MONITOR.&lt;BR /&gt;You can obtain some info from&lt;BR /&gt;$ ADMIN SHOW EVENT /SINCE=YESTERDAY&lt;BR /&gt;or else&lt;BR /&gt;$ ADMIN /ANALYZE /SINCE=YESTERDAY&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Aug 2004 02:03:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349675#M3195</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2004-08-06T02:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: how do I read a file that is flagged as locked</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349676#M3196</link>
      <description>Thanks for all responses.&lt;BR /&gt;&lt;BR /&gt;Sometimes I think I screw up when I issue points, please don't be offended.&lt;BR /&gt;&lt;BR /&gt;I think it will make most sense if I open a new post with the Pathworks issue I'm having.&lt;BR /&gt;Thanks again, I did learn about how OVMS handles file locking.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Kirk</description>
      <pubDate>Fri, 06 Aug 2004 09:34:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349676#M3196</guid>
      <dc:creator>Kirk Reindl</dc:creator>
      <dc:date>2004-08-06T09:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: how do I read a file that is flagged as locked</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349677#M3197</link>
      <description>Hein is correct a few notes above.&lt;BR /&gt;&lt;BR /&gt;TPU will not work with said file, although it does w/other seemingly locked files if, for example EDT fails.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Aug 2004 14:19:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-do-i-read-a-file-that-is-flagged-as-locked/m-p/3349677#M3197</guid>
      <dc:creator>Dave Gudewicz</dc:creator>
      <dc:date>2004-08-06T14:19:49Z</dc:date>
    </item>
  </channel>
</rss>

