BegCycleOutput
Defines the beginning of the declaration block for output specifications in classes that use the RPG program cycle.
BegCycleOutput
Remarks
The BegCycleOutput section contains the output specifications, OSpecs, that define the printining order. OSpecs refer to the different record formats in the print file that are printed during the cycle output phases. HeadingPrintSpecs and DetailPrintSpecs are written in the order they are specified during detail output. TotalPrintSpecs are similarly written during total output.
The BegCycleOutput section must end with an EndCycleOutput.
Example
BegCycleOutput
HeadingPrintSpec CpyHdr cond(*in1p *or *inOF) HeadingPrintSpec OrdHdr cond(*in77) fetchOverflow(*yes)
HeadingPrintSpec DetdHdr cond(*in77) fetchOverflow(*yes)
DetailPrintSpec PDetail cond(*in42) fetchOverflow(*yes)
TotalPrintSpec DetTot cond(*inL1 *and detInd) fetchOverflow(*yes)
TotalPrintSpec BoHdr cond(*inL1 *and detInd *and *in43) fetchOverflow(*yes)
DetailPrintSpec PBo cond(*in43) fetchOverflow(*yes)
TotalPrintSpec BoSubT cond(*inL1 *and boInd) fetchOverflow(*yes)
TotalPrintSpec BoTot cond(*inL2 *and boInd) fetchOverflow(*yes)
TotalPrintSpec OrdTot cond(*inL2) fetchOverflow(*yes)
EndCycleOutput