Using logical processing3-58 Using LCDS Print Description LanguageRSTACK TESTDefines the test expression for the “end of report” conditions foreither Change mode or Constant mode criteria.Syntax RSTACK TEST = testexpOptionsDefault No defaultRSTACK command: points to note• If the TEST expression on the RSTACK command consistssolely of a Change Mode CRITERIA command,DELIMITER=NO must be coded.• If a record that is an RSTACK delimiter (satisfies the testexpression), it must neither be deleted from nor not selectedfor printing by the RSELECT or RDELETE logical processing.If the record satisfies the RSTACK test criteria but is not adelimiter, it can be deleted from or not selected for printing.However, it still causes report separation.• If an RSTACK command contains a TEST expression thatspecifies a constant mode CRITERIA command, andDELIMITER = YES, the RSTACK command can be used todetect a heading of a report as a report boundary.Points to note for online printing:• Detection of RSTACK criteria within a not yet recognizedbanner page (RSTACK record occurs before BANNERcriteria line) results in subsequent incorrect report separation.• Detection of RSTACK criteria in a recognized but incompletebanner page (RSTACK record occurs after BANNER criterialine) is ignored.Table 3-44. TEST parameter options and definitionsOption Definitiontestexp Defines test criteria that, if satisfied, signals the end of the report for eitherChange Mode or Constant Mode criteria.Refer to “Coding a test expression,” earlier in this chapter, for the format andsyntax of a testexp.