cleanup-at-job-level-only.py

What this script is for:
During conversion, the conversion creates two different kinds of conditions:
•	Conditions that can be used only by a specific job. In this case, the condition is deleted at the end of the job.
•	Conditions that can be used by more than one job. In this case, these conditions are deleted at the end of the folder.

When a folder contains both mainframe (MF) and distributed (DS) jobs, the two types are separated to different folders. 
In this case, the deletion at the end of the folder is not possible, so the this script duplicates the conditions so that 
each one is directed to a specific job.

What the script does:
Technically, this script takes two job definition XML files (one for MF and one for DS) that were created during the conversion,
and for each folder, processes all jobs in each folder, both from the MF portion of the folder
and from the DS portion of the folder.

The script looks for conditions that are not deleted by the jobs that have them as IN COND, duplicates them as necessary, 
and adds a cleanup OUT COND DEL for each job that has that has that IN COND. It converts the COND to the naming convention of 
FROMJOB_TOJOB so that it is directed to a specific job.

Since this script eliminates a need for cleanup at the end of the folder, it removes the OUT COND for cleanup at the end of the folder. 

Script usage:
The script must be used in cases where there is a large number of conditions to be deleted at the folder end, or in cases where 
folders are split between MF and DS.

When you run the CA-7 conversion with the option FLCLEAN=N (end folder condition cleanup), you must run this script on the results.

Invoke the script by: 
              cleanup-at-job-level-only.py -m <inputfile> -d <inputfile> -o <outputdir> -c <compar-dir> -r <remove-date> -l

Parameters:
-m <inputfile> - name of the xml that holds the mainframe jobs
-d <inputfile> - name of the xml that holds the Windows/Linux jobs
-o <outputdir> - name of directory where the output files will be created
-c <compar-dir> - <optional> directory to contain of the original files, but save in the same format as the output
-f <suffix> - <optional> value specifid in the CA7 Conversion option SFXCND. Default is _OK
-r <remove-date> - <optional> the value to be used in the date portion of the condition delete. Default is ****
-l - <optional> use long condition name including the folder name. Default is short names
