Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Copying User Profile Within CL

475 views
Skip to first unread message

Ray

unread,
Jan 15, 1998, 3:00:00 AM1/15/98
to

I have a question regarding the creation of user profiles. I want to
create a simple screen where user profiles can be created for a piece
of application software. This application has a base user profile in
which all of the new user profiles should be copied after.

My problem is this... I'm trying to figure out how to create a user
profile within a CL that is exactly like a base user profile.
Unfortunately, the command CPYUSRPRF does not exist and RTVUSRPRF
could be used, but it would be way too cumbersome. Does anyone know
of any user API's that could handle this?

I would greatly appreciate it.

OSITim

unread,
Jan 15, 1998, 3:00:00 AM1/15/98
to

Here's a technique we use to accomplish something similar to what you are
describing.

We create a message id in a user message file

ADDMSGD MSGID(USR0001) MSGF(MYMSGF) MSG('The second level contains CRTUSRPRF
defaults') SECLVL('CRTUSRPRF USRPRF(&1) PASSWORD(&1) PWDEXP(*YES) USRCLS(&2)
INLPGM(&3)....') FMT((*CHAR 10) (*CHAR 10) (*CHAR 10))

You can specify whatever message variables and defaults that you like. Anyway
you get the picture. A program can use the RTVMSG command or the QMHRTVM api
to retrieve the second level text with the message variables replaced with
values and run the command with QCMDEXC.

Samuel J Lennon

unread,
Jan 15, 1998, 3:00:00 AM1/15/98
to

I thought that the CRTDUPBJ command would copy a *USRPRF object, but I
could be wrong. It's at least worth trying.
You might also want to consider group profiles.

Ray <R...@newsmail.newsmail> wrote in article
<34bd8475...@news.supernews.com>...

Eric Pence

unread,
Jan 19, 1998, 3:00:00 AM1/19/98
to

Why is the RTVUSRPRF command too cumbersome? All you have to do is create
variables for each of the required parameters, do a RTVUSRPRF of your base
profile to set these variables, and CRTUSRPRF with the same parameter
variables and any other required parameters. I'm not authorized to test this
at my current job, but if memory serves me, I have done similar things in
the past.

Eric Pence
>> Send email replies to >> erp...@star.net
http://www.star.net/People/~erpence/

Ray wrote in message <34bd8475...@news.supernews.com>...


>I have a question regarding the creation of user profiles. I want to
>create a simple screen where user profiles can be created for a piece
>of application software. This application has a base user profile in
>which all of the new user profiles should be copied after.
>

>My problem is this... I'm trying to figure out how to create a user


>profile within a CL that is exactly like a base user profile.

0 new messages