Operating System - OpenVMS
1835069 Members
2916 Online
110073 Solutions
New Discussion

Is there a programmer interface to lookup a SYSGEN parameter at run time?

 
SOLVED
Go to solution
Glenn K. Brown
New Member

Is there a programmer interface to lookup a SYSGEN parameter at run time?

I need to know the value of LOAD_PWD_POLICY (SYSGEN parameter) and if it's true (1) then my program will need to call the site-specific password filters prior to calling SYS$SETUAI.

I was hoping there was an OpenVMS System Service that could retrieve the value of any SYSGEN parameter but I couldn't find one.

Please help!
2 REPLIES 2
Uwe Zessin
Honored Contributor
Solution

Re: Is there a programmer interface to lookup a SYSGEN parameter at run time?

$ write sys$output f$getsyi("LOAD_PWD_POLICY")
FALSE
$

so I think that you can get the value via SYS$GETSYIW() or LIB$GETSYI with SYI$_LOAD_PWD_POLICY.
.
Glenn K. Brown
New Member

Re: Is there a programmer interface to lookup a SYSGEN parameter at run time?

Uwe,

Thanks very much!!! And wow, that was a quick 5 min turnaround...cool! :-)

LIB$GETSYI gets the value for the SYSGEN parameter "LOAD_PWD_POLICY" by passing it the item-code = SYI$_LOAD_PWD_POLICY as you said.

I didn't find that when I searched the System Services (SYS$) manual (v7.3-2) for "LOAD_PWD_POLICY" because they never listed that as a valid item-code. Oh well, I guess doc is behind software development once again.

Thanks again!

God Bless,
-Glenn