title: What is the underlying cause of an Undefined Operation Code error for Assembly on MVS?
body: <p>I have the following JCL to compile an assembly language program :-</p>
  
  <pre><code>//JRETEST JOB (A925,22360679777),'AESANJA',NOTIFY=&amp;SYSUID,
  //        MSGLEVEL=(1,1)
  //PROCLID JCLLIB ORDER=IBMUSER,LEARN.ASMJCL
  //     EXEC ASMACL
  //SYSOUT DD SYSOUT=*
  //C.SYSIN DD *
  TEST   START 0
         PRINT NOGEN
  *      SAMPLE PROGRAM
         BASR 15,0
         USING *,15
         PRINTOUT MYNAME,*
  MYNAME DC C'ADRIAN EKA SANJAYA'
         END TEST
  /*
  </code></pre>
  
  <p>When I run this I get an "undefined operation field" error indicating that <code>PRINTOUT</code> is the undefined operation.</p>
  
  <p><a href="https://i.stack.imgur.com/ltHHO.png" rel="nofollow noreferrer">Screen showing undefined operation field</a>.</p>
  
  <p>I am quite confused as I am following a <a href="https://www.google.co.id/search?safe=off&amp;dcr=0&amp;ei=8VP3Wam0GJaavQT1wp6oBg&amp;q=assembler+language+programming+for+ibm+z+system+servers&amp;oq=assembler+language+programming&amp;gs_l=psy-ab.1.4.0i13k1j0i203k1j0i13k1l2j0i203k1j0i13k1l2j0i13i30k1l3.439369.443935.0.445514.27.19.2.0.0.0.272.2224.2j6j5.13.0....0...1.1.64.psy-ab..12.15.2228...0j35i39k1j0i10k1.0.WipYdhwQsrg" rel="nofollow noreferrer">guide</a>, the code being similar :-</p>
  
  <pre><code>//JRETEST JOB (A925,2236067977),′ J.EHRMAN′
  // EXEC ASMACLG
  //C.SYSIN DD *
  Test Start 0 First line of program
         Print NoGen
  * Sample Program
         BASR 15,0 Establish a base register
         Using *,15 Inform the Assembler
         PRINTOUT MyName,* Print name and stop
  MyName DC C′ John R. Ehrman′ Define constant with name
         END Test Last statement
  /* 
  </code></pre>