Ted Holt shows you how to code an IBM i program that performs start-up tasks when a user signs on to the system
By Ted Holt
Editor’s note: This article is excerpted from chapter 15 of Complete CL: Sixth Edition, by Ted Holt.
So-called sign-on programs (more accurately called initial programs) are special programs that run when a user signs on to the system. The sign-on program is indicated in the user profile’s initial program (INLPGM) attribute. With INLPGM (*NONE) in a user’s profile, the system doesn’t run any program at sign-on and shows the initial menu immediately. If the user has a value other than *NONE in the INLPGM attribute, the system runs the indicated program before it presents the initial menu. With INLMNU(*SIGNOFF) in a user’s profile, the user is signed off, when the user’s sign-on program ends.