title: Is is possible to dump the contents of a JCL SYSOUT to a z/OS flat file?
body: <p>I'm interested in knowing if it is possible to get the contents of a JCL SYSOUT into a z/OS flat file; either in the same JCL step or in a JCL step executed later in the same JCL. </p>
  
  <p>Attention¡, I do not mean the other way round; which is generate the SYSOUT directy in a z/OS file and, after, in another JCL step dump it onto SYSOUT.</p>
  
  <p>For example; in the following JCL step I'm interested in getting the contents of SYSOUT=2 in a flat file. </p>
  
  <p>May anyone shed light in this issue?.</p>
  
  <p>Many thanks in advance.</p>
  
  <pre><code>//WNMPRAD5 EXEC PGM=WNMPRAD5,COND=(4,LT)                     
  //SYSPRINT DD SYSOUT=1                                       
  //SYSDBOUT DD SYSOUT=1                                       
  //ENTRADA  DD DSN=WNMT.SCADUC.WGPT022.ZXDALMA.UNLDBI,DISP=OLD
  //SORTIDA  DD DSN=WNMT.SCADUC.WGPT022.ZXDALMA.OUTPUT.V02,    
  //            DISP=(NEW,CATLG,DELETE),UNIT=DISK,             
  //            DCB=(RECFM=FB,LRECL=278),                      
  //            SPACE=(27998,(2500,2500),RLSE)                 
  //SYSOUT   DD SYSOUT=2                                       
  //SYSIN    DD *                                              
  N0100                                                        
  /*                                                           
  </code></pre>