取用户配置文件属性

用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.

posted @ 2008-01-09 14:11  深渊野鱼  阅读(379)  评论(0编辑  收藏  举报