title: Convert similar tests into groups with variables
body: <p>I have a lot of similar scripts written on IBM language, and I need to parse it, group and create templates for groups with variables instead of diffs.</p>
  
  <p>For example:</p>
  
  <pre><code>//GENER1     EXEC PGM=IEBGENER
  //SYSPRINT  DD SYSOUT=*
  //SYSUT1    DD *
  PROC_AUTO_RECOVER=YES
  PROC_AUTO_RECOVER_BCV=(NONE,NONE)
  PROC_AUTO_RECOVER_ITRK=30
  //SYSUT2    DD DISP=SHR,DSN=%JCLLIB%(%PROC%)
  //SYSIN     DD DUMMY
  </code></pre>
  
  <p>And</p>
  
  <pre><code>//GENER2     EXEC PGM=IEBGENER
  //SYSPRINT  DD SYSOUT=*
  //SYSUT1    DD *
  PROC_AUTO_RECOVER=NO
  PROC_AUTO_RECOVER_BCV=(YES,YES)
  PROC_AUTO_RECOVER_ITRK=20
  //SYSUT2    DD DISP=SHR,DSN=%JCLLIB%(%PROC%)
  //SYSIN     DD DUMMY
  </code></pre>
  
  <p>are pretty similar, so they need to be grouped and produce template</p>
  
  <pre><code>//"name"     EXEC PGM=IEBGENER
  //SYSPRINT  DD SYSOUT=*
  //SYSUT1    DD *
  "options"
  //SYSUT2    DD DISP=SHR,DSN="options2"
  //SYSIN     DD DUMMY
  </code></pre>
  
  <p>Is there a way to do that on python for example?</p>