October 31, 2008, 10:34 AM
<JG>As Prarie says you can use ON TABLE which is an implicit BY REPORT.
Are you wanting to insert 'freeform text' or data.
If you have a known structure then you can artificially create BY sequencers
for instance based on a row count.
DEFINE FILE CAR
COUNTER/I5 WITH MODEL=LAST COUNTER +1;
BREAK/I5= DECODE COUNTER(1 1 2 1 3 1 4 2 5 3 6 3 7 3 8 4 ELSE 99);
END
TABLE FILE CAR
PRINT MODEL DCOST
BY BREAK NOPRINT
ON BREAK SUBFOOT
"This is comment <BREAK"
END
October 31, 2008, 11:04 AM
Martin_fmiThanks both
Here is a solution to my problem. Sorry for the dummy topic - it just did't come up into my mind earlier:
DEFINE FILE CAR
IND/I3 WITH MODEL = IND+1;
END
TABLE FILE CAR
PRINT MODEL COUNTRY
BY IND NOPRINT
ON IND SUBFOOT
"SUBFOOT"
WHEN COUNTRY NE LAST COUNTRY
-* or a different condition
END
-RUN
-EXIT