您的位置:首页 > 其它

取用户配置文件属性

2008-01-09 14:11 288 查看


用RTVUSRPRF命令来取得用户配置文件的属性,
把他们放在CL变量中来控制应用程序。
可在命令中规定10个字符的用户配置文件名或者用*CURRENT。
在运行RTVUSRPRF后可监控逃逸信息
DCL &USR *CHAR 10
DCL &USRMSGQ *CHAR 10
DCL &USRMSGQLIB *CHAR 10
...
RTVUSRPRF USRPRF(*CURRENT) RTNUSRPRF(&USR) +
MGSQ(&USRMSGQ) MSGQLIB(&USRMSGQLIB)The following information is returned to the procedure:
v &USR contains the user profile name of the user who called the program.
v &USRMSGQ contains the name of the message queue specified in the user
profile.
v &USRMSGQLIB contains the name of the library containing the message queue
associated with the user profile.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: