1. Home
  2. StayLinked Server
  3. AS/400 iSeries Auto Start

AS/400 iSeries Auto Start

In order to get StayLinked to start, you’ll need to add the following lines to the CL source of QSTRUP 

0079.00      STAYLINKED/STRSERVER /* Start the Stay-Linked server and subsystem */           080310
0080.00      MONMSG     MSGID(CPF0000)                   080310 

If you have never modified the startup program, you won’t have source for it, and you’ll need to get the source by running the following command: 

RTVCLSRC PGM(QSYS/QSTRUP) SRCFILE(QGPL/QCLSRC) SRCMBR(QSTRUP) 

This will put the source for QSTRUP into the CL source file in QGPL (as long as that source file exits).  From there you can modify the program and compile it. 

It is our recommendation that you leave the original program in QSYS and compile into QGPL.  This would require changing the Sysval QSTRUPPGM to explicitly call to QSTRUP in QGPL.

.

Updated on August 31, 2021

Related Articles