I have a JIL file from Autosys that looks like below.
/* ----------------- Box1 ----------------- */
insert_job: Box1 job_type: BOX
permission:
date_conditions: 0
alarm_if_fail: 1
/* ----------------- Job2 ----------------- */
insert_job: Job2 job_type: POJO
box_name: Box1
machine: testm
permission:
date_conditions: 0
condition: s(Job5) & s(Job6) & s(Job7)
alarm_if_fail: 1
alarm_if_terminated: 1
application: Databricks
send_notification: 0
notification_msg: "Job2 Status"
method_name: runJob
j2ee_parameter: String=https://sample.com
j2ee_parameter: String=32322sdd
j2ee_parameter: String=12
j2ee_parameter: int=120
j2ee_parameter: long=30000
/* ----------------- Job3 ----------------- */
insert_job: Job3 job_type: POJO
box_name: Box1
machine: testm
permission:
date_conditions: 0
condition: s(Box10) & s(Box11) & s(Box12) & s(Job40) & s(Box13)
alarm_if_fail: 1
alarm_if_terminated: 1
application: Databricks
send_notification: 0
notification_msg: "Job3 Status"
method_name: runJob
j2ee_parameter: String=https://sample.com
j2ee_parameter: String=fgfgf1
j2ee_parameter: String=002
j2ee_parameter: int=120
j2ee_parameter: long=30000
/* ----------------- Box2 ----------------- */
insert_job: Box2 job_type: BOX
box_name: Box1
permission:
date_conditions: 0
condition: s(Job2)
alarm_if_fail: 1
alarm_if_terminated: 1
application: Databricks
I need to create an excel file using the above file which will look like below.
Job | box_name | condition |
---|---|---|
Box1 | Box | |
Job2 | Box1 | s(Job5) & s(Job6) & s(Job7) |
Job3 | Box1 | s(Box10) & s(Box11) & s(Box12) & s(Job40) & s(Box13) |
Box2 | Box1 | s(Job2) |