XSAVE is permitted within a loop as is DATA LIST!!!) !
No example handy but AIRCODE ALERT...
Do the RTFM thing to XSAVE . Review features and limitations.
DO IF blahblah.
XSAVE OUTFILE "blahblah".
ELSE IF blabla .
XSAVE OUTFILE "Blabla".
ELSE IF blbl .
XSAVE OUTFILE "Blbl".
ELSE IF bb .
XSAVE OUTFILE "Bb".
XSAVE OUTFILE "Else".
>I have to perform a loop on a number of files containing monthly data. I am
>new to SPSS and it appears that the loop command will only work for
>transformations. Is there any syntax that will allow me to read files
>process them and save them in order by month ? If so please could you post
>an example for me ?
>Thanks in advance.