Michael_Lowry

Transport case parsing scripts

Discussion created by Michael_Lowry on May 17, 2017
Latest reply on Aug 28, 2017 by Michael_Lowry

Since deciphering and documenting the structure of the transport case unload file, I have written a few scripts to parse the file and extract various pieces of information.

 

 

ScriptDescription & usageVersion / Last updated
18bad3g2pytw.png
parse_transport_case.sh
General script for parsing transport case unload files. As currently configured, it prints basic info about all objects, plus additional details for a subset of objects. Can be customized to extract arbitrary information about objects.
parse_transport_case.sh -o output_mode [-v verbosity] transport_case_file
Where output_mode is one of:
  • a: all object details including scripting tab content
  • c: only objects with matching custom attributes
  • s: standard object details
  • z: z/OS job details

and verbosity is one of:

  • 0: no messages, only output
  • 1 :slightly verbose
  • 2: more verbose
  • 3: extremely verbose
v1.0
2018.04.13
18bad3g2pytw.png
parse_JBA_Rest.sh
Parses and prints details from the JBA_Rest field of z/OS jobs.
parse_JBA_Rest.sh JBA_Rest_input_file
The input file should contain one line per job, with tab-delimited values:
JOBS_ZOS OH_Name OH_OType OH_HostAttrTypeDst JBA_Rest
(These lines are included in the output of the parse_transport_case.sh script when it is run with output mode a or z).
v0.2
2015.01.27
18bad3g2pytw.png
validate_obj_script.sh
Parse & validate scripting tab content of relevant AE objects.
validate_obj_script.sh -p prefix [-v verbosity] ae_obj_script_file
AE_OBJ_SCRIPT OH_Name OH_OType OT_Type OT_Lnr OT_Content
(This corresponds to the AE_OBJ_SCRIPT lines output by the parse_transport_case.sh script when it is run with output mode a.)
v0.4
2017.06.28
18bad3g2pytw.png
parse_zOS_job_script.sh
Parse and validate scripting tab content of z/OS jobs of type Automation Engine.
parse_zOS_job_script.sh zos_job_script_file
The input file should contain one line per job script line, with tab-delimited values:
JOBS_ZOS_SCRIPT zOS_Job_Type OH_Name OT_Type OT_Lnr OT_Content
(This corresponds to the JOBS_ZOS_SCRIPT lines output by the parse_transport_case.sh script when it is run with output mode a or z.)
v0.1
2017.06.19
18bad3g2pytw.png
logging_functions.sh
Logging functions used in other scripts. Not intended to be executed directly.NA

Outcomes