Author: Abid Hasan
Posted: Wed May 18, 2016 10:51 am (GMT 5.5)
Hello Enrico,
Imho the ICETOOL posts are relevant, since it requests the TS to refer the ICETOOL COUNT operator parameters in the DFSORT manual.
In this case, a HIGHER(n) sub-operator of COUNT is what the TS needs; 'n' being equal to '1'.
Syntax:
The above will return an RC '0' if the record count is 1 or less. In case the record count is greater than '1', an RC '12' will be set; which in-turn can be controlled by the RC sub-parameter. The good thing about this is, DFSORT will not try checking the 3rd record, if the criteria of > 1 record is met; i.e. at any point of time a maximum of '2' records will be processed.
Please correct me if I still have it figured wrong![icon_redface.gif]()
Hth.
_________________
Thanks.
Posted: Wed May 18, 2016 10:51 am (GMT 5.5)
Hello Enrico,
Imho the ICETOOL posts are relevant, since it requests the TS to refer the ICETOOL COUNT operator parameters in the DFSORT manual.
In this case, a HIGHER(n) sub-operator of COUNT is what the TS needs; 'n' being equal to '1'.
Syntax:
Code: |
COUNT FROM(<TS's Input DSN>) HIGHER(1) |
The above will return an RC '0' if the record count is 1 or less. In case the record count is greater than '1', an RC '12' will be set; which in-turn can be controlled by the RC sub-parameter. The good thing about this is, DFSORT will not try checking the 3rd record, if the criteria of > 1 record is met; i.e. at any point of time a maximum of '2' records will be processed.
Please correct me if I still have it figured wrong

Hth.
_________________
Thanks.