How to document outputs of a JCLExec or JobExec command #529
Unanswered
dennis-behm
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Is there a way to use AnyTypeRecord to add this structure to the BuildReport? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A user recently reached out to me and asked how they could document outputs that are produced by a JCLExec of a JobExec command.
Background
DBB provides a very simple API to generate records.
MVSExec
andCopyToPDS
allow users to define the outputs. When the step is executed, DBB generates the record automatically.The below snippet defines the outputs of the link step for the Cobol language script:
dbb-zappbuild/languages/Cobol.groovy
Line 358 in a719842
You can read more about the available Build Report Records in the DBB Documentation.
It's worth to check out the JAVA Doc for DBB Build Records as well. FYI - with DBB 2.0.2 a new Record has been introduced - the UnixRecord for any tasks producing outputs on Unix System Services.
Document outputs in JCLExec, JobExec
JCLExec
orJobExec
don't provide aoutput
method to define theoutputs
attribute for their records (worth opening an IDEA for it!), therefore users have implemented a workaround. The way, I have seen users who wanted to document outputs of JCLExec or JobExec have chosen one of the below options.Option 1 After evaluating the return code of the JCL, users have implemented an MVSExec command using IEFBR14 (the do nothing program on z/OS), which they use to document the (known) outputs of JCL step including an
deployType
including a reference to thebuildFile
(the relative path of the file such asMortgageApplication/cobol/epscmort.cbl
).Option 2 If their use case it a bit different, some have gone the route to use the
AnyTypeRecord
to define their own record type, they they then parse during the packaging process. zAppBuild uses theAnyTypeRecord
to create aDELETE_RECORD
that can then be processed by the packaging steps:dbb-zappbuild/utilities/BuildReportUtilities.groovy
Lines 43 to 44 in a719842
Beta Was this translation helpful? Give feedback.
All reactions