| Visual RPG Language Reference |
|
DETAILSPEC (RPG Cycle)
DETAILSPEC is migrated and defines the detail specs of a print
file. DETAILSPEC can follow a HEADINGSPEC and TOTALSPEC.
DETAILSPEC
Fmt (Format name)
Cond (Conditional indicator)
FetchOverflow (*Yes | *No)
Parts
- Fmt
-
Required. Contains the name of the record format containing the detail lines.
- Cond
-
Optional. Contains the conditional indicators. More than 1 condition
can be specified using *And, and/or *Not
between.
- FetchOverflow
-
Optional. Indicates if the page is full and has reached
overflow. Only the overflow lines for the file are checked for
output. All total lines conditioned by the overflow indicator is
weritten.
Example
BegCyclePrintAttr
headingspec CpyHdr
cond(*in1p *or *inOF)
headingspec OrdHdr cond(*in77)
fetchOverflow(*yes)
headingspec DetdHdr cond(*in77)
fetchOverflow(*yes)
detailspec PDetail cond(*in42)
fetchOverflow(*yes)
totalspec
DetTot cond(*inL1
*and detInd) fetchOverflow(*yes)
totalspec BoHdr
cond(*inL1 *and detInd *and *in43)
fetchOverflow(*yes)
detailspec PBo
cond(*in43) fetchOverflow(*yes)
totalspec
BoSubT cond(*inL1
*and boInd) fetchOverflow(*yes)
totalspec BoTot
cond(*inL2 *and boInd)
fetchOverflow(*yes)
totalspec OrdTot cond(*inL2)
fetchOverflow(*yes)
EndCyclePrintAttr