mainframe-xml-to-ds.py

What this script is for:
Converting MF jobs to be Micro Focus AI job instead or command line

What the script does:
The script process all jobs, and convert every job to be 
Micro Focus AI job in DS Control-M, or command-line job, according to the -t parameter.

Output option=Release is removed.

All ON/DO are removed exept 
ON  PGMS=ANYSTEP CODE=Ccode which is converted to ON CODE=COMPSTAT EQ code
A message in the log is issued for every ON that is removed.

Note: When running under V21.3, please add parameter Is21_300Compatibility with the value 'true' 
in the GUI section of the EM system parameter (advanced tab), and restart the GUI Server. D that
for all your EM environments.


Convert MF jobs to DS

options:
  -h, --help  show this help message and exit
  -i          Input XML exported from MF Control-M
  -o          Location for job definition xml where all job uses the DS job type
  -c          Input file in the output format
  -d          Were mainframe jobs already converted to Dummy?
  -r          Transfrom DUMMY jobs to run-as-dummy jobs. Default: Yes
  -t          The target job type to be used in both APPL_TYPE, APPL_FORM and APP_NAME. Use MFL0242024 for Micro Focus
              AI/IF. Default: Command
  -cmdline    The comamnd line to be used when the target job type is Command. %MEMLIB in the command will have the
              MEMLIB field content
  -m          The target DS Control-M name
  -n          The target DS HOST name. default: controlm name
  -u          Should job names be forced to be unique in a folder - Y/N
  -offset     Should days offset in condition date kept as is - Y/N