title: How to add job in Subsystem in as400
body: <p>I am trying to create one subsystem and run a job in this subsystem.</p>
  
  <ol>
  <li><p>Creating Subsystem (SBS):</p>
  
  <pre><code>CRTSBSD SBSD(MYSBS) POOLS((2 *BASE)) MAXJOBS(2) TEXT('DEMO SBS')
  </code></pre></li>
  <li><p>Create JOBQ:</p>
  
  <pre><code>CRTJOBQ JOBQ(MYJOBQ) TEXT('JOBQ')
  </code></pre></li>
  <li><p>Add JOBQ entry in subsystem</p>
  
  <pre><code>ADDJOBQE SBSD(MYSBS) JOBQ(MYJOBQ) SEQNBR(1)
  </code></pre></li>
  <li><p>Submit PWI job in this JOBQ</p>
  
  <pre><code>SBMJOB CMD(JAVA CLASS('myprogram.jar') PARM(true) OUTPUT(*NONE)) JOBQ(MYJOBQ) JOB(MYJOB)   
  </code></pre></li>
  <li><p>Start Subsystem</p>
  
  <pre><code>STRSBS SBSD(MYSBS)
  </code></pre></li>
  </ol>
  
  <p>Here my aim is to create a subsystem and assign this "MYJOB" to "MYSBS".
  For this I thought to create a JOBQ and give that JOBQ to the Subsystem</p>
  
  <p>I don't know how to run this job in "MYSBS" subsystem.</p>