Creating the Auto-start Job Entry for the STRTCP Command

Procedure

  1. End the subsystem using the following command: ENDSBS SBS(QSYSWRK).
  2. To create the autostart job entry for STRTCP, enter the following command to create a STRTCP job description: CRTJOBD JOBD(QGPL/STRTCP) JOBQ(QSYS/QSYSNOMAX) TEXT('Autostart Job Start TCP/IP Command JOBD') USER(QPGMR) RQSDTA('QSYS/STRTCP')
  3. After the job description is created, to attach it the QSYSWRK subsystem, enter the following command: ADDAJE SBSD(QSYSWRK) JOB(STRTCP) JOBD(QGPL/STRTCP)
    Note: You can provide any name that is suitable for the job.
  4. To verify the autostart job entry was successfully applied within the QSYSWRK subsystem, enter the following command: DSPSBSD SBSD(QSYSWRK)
    The subsystem description is displayed.
  5. To display auto-start job entries, select option 3 and press Enter.
  6. Verify that the entry exists and is correct. Then restart the subsystem using the following command: STRSBS SBSD(QSYSWRK)