title: How to refer GDG generation if generation is created in step 2 and same i refer in step 3
body: <p>I have faced an issue in GDG generation in production.</p>
  
  <p>New generation is created in STEP 2:</p>
  
  <pre><code>//INP DD DSN=sample.test(+1),  
  //      DISP=(,CATLG,KEEP),                     
  //       SPACE=(CYL,(50,20),RLSE),               
  //       DCB=(RECFM=FB,LRECL=1020,BLKSIZE=4080)  
  </code></pre>
  
  <p>The same generation is refered in STEP 3:</p>
  
  <pre><code>//step3 exec PGM=SORT                               
  //SORTIN   DD DSN=sample.test(+1),    
  //            DISP=SHR                                 
  //SORTOUT  DD DSN=xxxx.yyyy,     
  //            DISP=(NEW,CATLG,DELETE),                 
  //            UNIT=(SYSDA,9),DCB=(RECFM=FB,LRECL=132), 
  //            SPACE=(CYL,(50,20),RLSE)     
  </code></pre>
  
  <p>I gave like this, but fails with JCL error. </p>
  
  <p>Can anyone help on why this fails?</p>
  
  <p>As per theory once job has completed only. We have to refer with 0th version. In Same job we have to refer with +1 Version. If i changed to 0th version in step 3 then the job ran fine.</p>