MATRIX LOOPING

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

MATRIX LOOPING

Super3
Dear listers

In the next commands I can construct a new file from ASCII data where
Branch and region are the key variables for that. The question is if we
can construct the same file by counting and looping the same variables
inside the syntax MATRIX ...... END MATRIX (in this case after reading
the initial file from a data99.SAV file).

E. Kazazis

 

 

FILE TYPE GROUPED FILE='c:\data99.DAT'

RECORD=branch 3-5(A) CASE=region 1-2

 

RECORD TYPE  '101'.

DATA LIST /E101_99 6-13 P101_99 14-21 E101_99  22-25.

 

RECORD TYPE  '102'.

DATA LIST /E102_99 6-13 P102_99 14-21 E102_99 22-125.

 

RECORD TYPE .........................

 

END FILE TYPE.

EXECUTE.