FORMAT CODE |
N Z,Z0,Z1,R S R=$G(^TMP("IBXSAVE",$J,"RM")) F Z=1:1 Q:'$D(^TMP($J,"IBC-RC",Z)) S Z1=^(Z),Z0=$S(+Z1=1:$P(Z1,U,9),+Z1=2:$E($P(Z1,U,2),78,80+R),1:$E($P(Z1,U,2),73,75+R)) S:Z'>21 IBXDATA(Z)=Z0 D:Z'<21 CKREV^IBCEF3(Z,Z0) |
FORMAT CODE DESCRIPTION |
This data element is a group data element where more than one occurrence
The ending extract point is one less in each case if the right margin is
only 80, not 81. Since only 23 lines of service line can appear on one form,
if there are more than 23 lines, subsequent pages are forced for the
remaining data lines after 23.
might be expected. It relies on the presence of data in array
^TMP("IBC-RC",n) extracted previously. The first '^' piece of the array
indicates whether this is a 'normal' service data line (=1) or a text line
(=2 or =3). For a normal service line, the data is found in the ninth '^'
piece of the array. For text line where the first piece = 2, the text is
assumed to start in column 1, so the data is extracted from positions 78-81.
For text line where the first piece = 3, the text is assumed to start in
column 6, so the data for this field is extracted from positions 73-76.
|