- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Get opened file when logical is available in D...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2008 03:30 AM
тАО01-28-2008 03:30 AM
Get opened file when logical is available in DCL
I perform the following command:
$ open/write test test.dat
$ sh log test
"TEST" = "_$1$DGA13" (LNM$PROCESS_TABLE)
Is there a way to get the filename using the logical given when opening this file.
Thanks.
Piet Timmers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2008 05:15 AM
тАО01-28-2008 05:15 AM
Re: Get opened file when logical is available in DCL
until the file is opened by DCL, there is no logical name :-)
I assume You are asking:
If a file is open by DCL under a logical name, how can I find the file-specification ?
There was a macro program once posted by J.Briggs:
http://wwwvms.mppmu.mpg.de/vmssig/src/mar/ppf.mar
And an example how to use it:
http://wwwvms.mppmu.mpg.de/vmssig/src/mar/testppf.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2008 01:37 PM
тАО01-28-2008 01:37 PM
Re: Get opened file when logical is available in DCL
If you are interested in the PPF program, see my comment dated Jun 22, 2007 21:00:12 GMT in the following thread
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1138609
It has the PPF.MAR file attached as a text document, so it will display correctly on windows without jumping through hoops.
It is the same, but doesn't have some extra comments at the top that were evidently part of John Briggs posting. If you want to download from the links Joseph Huber provided to a VMS system, I would suggext using wget on the VMS system, followed by a global replace of the trailing
Here's the part my post doesn't have at the top.
;
;$! test.com
;$ ppf = "$sys$login:ppf.exe"
;$ ppf sys$input
;$ show sym phy_file_name
;$ show sym org_file_name
;$ show sym fid_file_name
;
;$ @test
; PHY_FILE_NAME = "EISNER$DRA3:[DECUSERVE_USER.BRIGGS]TEST.COM;5"
; ORG_FILE_NAME = "EISNER$DRA3:[DECUSERVE_USER.BRIGGS]TEST.COM;5"
; FID_FILE_NAME = "DISK$USER3:[DECUSERVE_USER.BRIGGS]TEST.COM;5"
;
;It's non-privileged code and doesn't involve digging into any
;DCL data structures. The only tricky bit is:
;
; bisw2 #fab$m_ppf_ind,fab+fab$w_ifi
;
;which sets the bit to allow the $DISPLAY service to reach out and
;see the underlying file name rather than stopping at the PPF logical
;name. The code works on Alpha and on VAX without modification.
;
; John Briggs
The following thread on ITRC is also related.
http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1139459
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2008 07:15 AM
тАО01-29-2008 07:15 AM
Re: Get opened file when logical is available in DCL
If you want to download from the links Joseph Huber provided to a VMS system, I would suggext using wget on the VMS system, followed by a global replace of the trailing
>>
Well I don't think there is anything special. My (OSU-) web server is sending the macro file as (web-)standard text (i.e.
A "save as ... text" from the browser should produce a valid text file on the local system.
Don't know why wget on VMS is always producing a STMLF file, but anyway there is no need to remove the
SET FILE/ATTR=RFM:STM ppf.mar
BTW the macro compiler doesn't care of
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2008 05:18 AM
тАО01-30-2008 05:18 AM
Re: Get opened file when logical is available in DCL
I had no problems to look at the attached .MAR file, using Opera under Win2k. I'd suspect it's MSIE (again) that tries funky things with a .MAR file, as the default link for that file type is a "Microsoft Office Access Report".
cu,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2008 06:05 AM
тАО01-30-2008 06:05 AM
Re: Get opened file when logical is available in DCL
>>>
a .MAR file, as the default link for that file type is a "Microsoft Office Access Report".
<<<
Yeah, THAT must be the explanation.
I (painfully) recognise the phenomenon.
As you surely have noted by now, my initials are "jpe". From way back when, that is why for every kind of temporary/test/whatever private version of any file, I always use ".JPE" as extension. But M$ insists that those have "Invalid graphical (JPEG) format".
I -HATE- it when Redmond thinks they now me better than I know myself! :-(
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2008 06:59 AM
тАО01-30-2008 06:59 AM
Re: Get opened file when logical is available in DCL
So the rule for my wwwvms.mppmu.mpg.de server:
don't open files in MSIE browser, use
"save target as ..."
I tested, and it stores the file (after changing the extension from .MAR to .TXT) correctly.