05-08-2012 05:53 AM
Is there a possibility to direct put statement to sas file ?
I need to export i
array x $3 ('a' 'b' 'c' 'd' 'e');
array c $3;
ncomb=comb(n,k); /* The one extra call goes back */
do j=1 to ncomb+1; /* to the first combination. */
call allcombi(n, k, of i
do h=1 to k;
*put @4 j= @10 'i= ' i
05-08-2012 10:32 AM
PUT output can be directed to a text file by adding a FILE statement in the data step;
file "put the name of your output file here";
I'm not sure what you mean by "SAS file" as SAS uses a fair number of different file types: data set, catalog, transport, programs as well as generating output in many more formats.