SEGNO
Can only be used in criteria for a segmented template.
This function has no parameters and returns a numeric value representing the current segment number. It is only relevant when running with a segmented template. The default value of 1 is returned if used with non-segmented processing.
SEGNO example shows header or first segment identification criteria.
⋮
Z Data Tools Field Selection/Edit Line 1 of 5
---Criteria - Enter 0 - Related ID expression, 1 or 2 - expression by field---
0 Rid: +
1 Id : segno()=1 +
2 Sel: +
Offset 0 Enter "/" to OR with related ID
Cmd Seq SHE Ref Field Name Picture Type Start Length
**** Top of data ****
1 1 SEG-HDR AN 1 4
2 2 SEG-NUM-A 9 ZD 1 1
3 2 SEG-NUM-B 9 ZD 2 1
4 2 SEG-NUM-C 9 ZD 3 1
5 2 SEG-NUM-D 9 ZD 4 1
**** End of data ****