Visual RPG Language Reference  

EXCEPTSPEC

EXCEPTSPEC generates a WRITE to the printfile specified in the *FetchOverflow method, and is conditioned on the overflow indicator for the file to which the format belongs.

EXCEPTSPEC     



Fmt (Format name)

Parts

Fmt

Required. Contains the name of the record format containing the detail lines.

Remarks

The EXCEPTSPEC section of migrated code controls printing.  Each HeadingSpec, DetailSpec and TotalSpec command contain the conditions in which each is printed.  

Add a parameter to *FetchOverflow(<print file>) which is the print file over which the FetchOverflow should happen. This parameter will cause FetchOverflow to happen only over those specs that belong to the print file. No other print file specs should be tested nor printed.

 

Example

EXCEPTSPEC
   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)
ENDPRINTATTR

See Also

   *FetchOverflow Method
   DCLFMTCYCLEATTR
   ENDPRINTATTR
   HEADINGSPEC
   DETAILSPEC
   TOTALSPEC