FOR Syntax Summary

The formal syntax of the FOR statement is:

FOR fieldname [NOPRINT]row [OVER row]
.
.
.
.
END

where:

 

row

Can be any of the following:

tag [OR tag...][options] 
[fieldname] 
DATA n,[n,....] $ 
DATA PICKUP [FROM filename] tag [LABEL label] [AS 'text'] 
RECAP name[/format]=expression; 
BAR [AS 'character'] [OVER] 
"text" 
parentvalue {GET|WITH} CHILD[REN] [{n|ALL}] [ADD [m|ALL]] 
   [AS {CAPTION|'text'}] [LABEL label]parentvalue ADD [{m|ALL}] [AS {CAPTION|'text'}] [LABEL label] 
PAGE-BREAK [OVER]

 

tag

Can be any of the following:

value [OR value...] value TO value

 

options

Can be any of the following:

AS 'text' 
[INDENT m] 
NOPRINT 
[LABEL label] 
WHEN EXISTS 
[POST [TO filename]]