How to create ‘n’ number of userprofiles from CL Program

85 pts.
Tags:
CL
CL Program
CL programming
How to create 'n' number of userprofile from CL Program?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Let’s say you needed to have 10 userprofiles setup for training.

A CL program you reveive the parm of 10
DCL vUsrprf *Char 10 Value(TRAINING’)
Then you code a loop to do a
CRTUSRPRF USRPRF(vUsrprf *Cat &n)

———————————————————————-

That works if you are creating “N” number of generic user profiles.
Some security people might take issue with it.

There is a lot more to a user profile than just the User ID. Job description, User class/special authorities and initial program or menu all usually have to specified when creating an account. Unfortunately, the original poster did not specify exactly what this is to be used for or why the accounts need to be created in a CL.

You should also be aware that the CL has to be run from an account that has *SECADM authority and at least *USE access to the CL program.

Regards
Mike

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following