- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: How to get UIC
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
тАО09-02-2008 07:16 PM
тАО09-02-2008 07:16 PM
How to get UIC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2008 08:03 PM
тАО09-02-2008 08:03 PM
Re: How to get UIC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2008 08:11 PM
тАО09-02-2008 08:11 PM
Re: How to get UIC
See $HELP SYSTEM $ASCTOID
For the UIC of the current process you would either call SYS$GETJPI with an item list requesting potentially many values or LIB$GETJPI for a simple single item. Both would be called a process ID = 0 and ITEM code JPI$_UIC. JPI$_UIC is defined in $JPIDEF (as 772).
See the basic user manual and GOOGLE for online examples.
Just google for: +openvms +basic + lib$getjpi
You'll find places like:
http://www3.sympatico.ca/n.rieck/links/openvms_demos.html
Good luck!
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2008 01:41 AM
тАО09-03-2008 01:41 AM
Re: How to get UIC
I agree with Steven and Hein. However, it is more important to ask: Why does the program need the UIC?
There are very few instances in which the UIC is actually needed by a program. In most cases (e.g., file ownership) the best approach is to let OpenVMS propagate the information automatically.
What task is the program actually attempting to do?
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2008 02:59 AM
тАО09-03-2008 02:59 AM
Re: How to get UIC
It accepts the username in various formats (see the comments in the source)
Duncan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2008 06:32 AM
тАО09-03-2008 06:32 AM
Re: How to get UIC
Please consider providing some background details.
I can think of a half-dozen different ways to answer your stated question here, depending on exactly what you're up to here. Most of which will probably be wrong for what you intended.
As for the general answer for seeking code examples.
Aim your browser at http://www.itrc.hp.com
Select the Compaq Search Assistant ("James")
From there, you have access to 75,000 documents, of which many are full source code examples in a full selection of languages. And few of which are available via Google.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2008 06:16 PM
тАО09-03-2008 06:16 PM
Re: How to get UIC
$ write sys$output f$identifer("system","Name_to_number")
65540
$ write sys$output f$fao("!%U",f$identifer("system","Name_to_number"))
[1,4]