- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: F$ENV("PROCEDURE") in detached process
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
тАО04-07-2008 04:16 AM
тАО04-07-2008 04:16 AM
gives only NAME.TYPE instead of expected full file.spec. OpenVMS version V7.3-2. Please explain why.
Test comproc: (TMP.COM)
$ write sys$output f$env("procedure")
Interactive test:
$ @tmp
USER$DISK:[EDTTSZ]TMP.COM;50
Detached process test:
$ run /input=tmp.com /out=tmp.log sys$system:loginout
%RUN-S-PROC_ID, identification of created process is 000DB60D
$ type tmp.log
$ write sys$output f$env("procedure")
TMP.COM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2008 04:25 AM
тАО04-07-2008 04:25 AM
Re: F$ENV("PROCEDURE") in detached process
try specifying the full path and it will work.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2008 05:07 AM
тАО04-07-2008 05:07 AM
Re: F$ENV("PROCEDURE") in detached process
Wim said it.
But if you WANt or NEED a DCL environment in your detached process, then
RUN SYS$SYSTEM:LOGINOUT.EXE/INPUT=
hth
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2008 05:21 AM
тАО04-07-2008 05:21 AM
Re: F$ENV("PROCEDURE") in detached process
New test with this com.proc.
$ set nover
$ show log sys$login
$ show log sys$scratch
$ write sys$output f$env("procedure")
Run command:
$ run /input=tmp.COM /out=tmp.log sys$system:loginout
%RUN-S-PROC_ID, identification of created process is 0008A863
$ type tmp.log
$ set nover
"SYS$LOGIN" = "USER$DISK:[EDTTSZ]" (LNM$JOB_81975300)
"SYS$SCRATCH" = "USER$DISK:[EDTTSZ]" (LNM$JOB_81975300)
TMP.COM
Note that ANAL /SYS (sho proc /id=/chan)
displays full filespec input file.
Other tests show that f$env("PROCEDURE") just takes the value of /INPUT for despatched processes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2008 05:27 AM
тАО04-07-2008 05:27 AM
Re: F$ENV("PROCEDURE") in detached process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2008 05:30 AM
тАО04-07-2008 05:30 AM
Re: F$ENV("PROCEDURE") in detached process
>>>
Other tests show that f$env("PROCEDURE") just takes the value of /INPUT for despatched processes.
<<<
... which is exactly what you ask of it!
Try this TMP.COM
$! TMP.COM
$ @
You will see that NOW you get NOT TMP.COM, but the @-ed COM file. This is exactly what f$ENVIR("PROCEDURE") is documented to do: return the currently executing command procedure.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2008 05:50 AM
тАО04-07-2008 05:50 AM
Re: F$ENV("PROCEDURE") in detached process
"File specification of the current command
procedure."
It is what I expected: file specification.
Interactive does it, batch does it. Why not detached?
In the future I'll use
f$sear(f$env("procedure"))
instead for only f$env("procedure")
Thank you for your answers.
Regards --- Teofil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2008 06:01 AM
тАО04-07-2008 06:01 AM
Re: F$ENV("PROCEDURE") in detached process
But it's still solved when you specify the full path name.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2008 06:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2008 06:13 AM
тАО04-07-2008 06:13 AM
Re: F$ENV("PROCEDURE") in detached process
f$sear(f$env("procedure"))
instead for only f$env("procedure")
Be sure that your default dir hasn't changed.
Wim