Use the CL command to start an application server

You can use a CL command to start your application server instance. To start the application server from the CL command line, follow these steps:

  1. Start Transmission Control Protocol/Internet Protocol (TCP/IP). On the CL command line, enter this command:

      STRTCP
  2. To start the QASE5 subsystem, run the following command on the CL command line:

      STRSBS QASE5/QASE5

    Note: Your user profile must have *JOBCTL authority to start the WebSphere Application Server subsystem.

  3. After the subsystem starts, run this command from the CL command line:

      SBMJOB CMD(CALL PGM(QASE5/QASESTRSVR) PARM('-instance'
        '/QIBM/UserData/WEBASE/ASE5/instance' '-server' 'server'))
        JOB(server) JOBD(QASE5/QASE5) JOBQ(QASE5/QASE5) USER(QEJBSVR)
        LANGID(*USRPRF) CNTRYID(*USRPRF) CCSID(*USRPRF)

    where instance is the name of the application server instance that you want to start and server is the name of the server in that instance. For most WebSphere Application Server - Express instances, the instance name and server name are the same. You can only start one application server when you run this command. To start additional application servers, you must run the command separately for each application server that you want to start.

    Note: To run this command, your user profile must have *USE authority to the QEJBSVR user profile. Use the Edit Object Authority (EDTOBJAUT) command to add or verify that your user profile has this authority.

If your profile has authority to the QASE5/QASE5 job description and QASE5/QASE5 subsystem description, you can configure WebSphere Application Server - Express to automatically start when the you start the WebSphere Application Server - Express subsystem.

  1. Create a duplicate of the job description used by WebSphere Application Server instances. For example, on the CL command line run this command:

      CRTDUPOBJ OBJ(QASE5) FROMLIB(QASE5) OBJTYPE(*JOBD) TOLIB(mywasjobd) NEWOBJ(myserv)
  2. Use the CHGJOBD command to change the newly created job description so that the Request data or command (RQSDTA) field starts the server. In the following example, the instance is myinst and the server is myserv:

      'QSYS/CALL PGM(QASE5/QASESTRSVR) PARM(''-instance'' 
        ''/QIBM/UserData/WebASE/ASE5/myinst'' ''-server'' ''myserv'')'
  3. Add an autostart job entry to the QASE5/QASE5 subsystem. Enter this command from the CL command line:

      ADDAJE SBSD(QASE5/QASE5) JOB(myserv) JOBD(mywasjobd/myserv)