Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AS400 Executing a Command(s) at Login

Status
Not open for further replies.

brent01

Technical User
Jul 11, 2001
32
GB
Is there anyway an AS400 can execute a command(s) auromatically whan you logon?

It should be simple, but I don't know how.

I would like to login under my own userid and automatically run the command CHGMSGQ QSYSOPR *BREAK and also CHGMSGQ RAOPS *BREAK.

I am new to AS400. I know thiscould be done on an HP3000 using MPE (RIP!), so I guess it can be done on an AS400.

Thanks.
 
brent01,

Look to your user profile. There is an entry for inital program and library. That should do the trick.

HTH,
MdnghtPgmr
 
Write a small cl with the message queue commands in it.
Compile the cl.
chgusrprf inlpgm(library/cl_program)

That's it.

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top