I'm using 'put (_all_)(',');' to export all variables into a CSV file, however I need to put column headers in the file as well. I'm holding about 200 columns of data from a previously defined macro:-
" %MACRO INPUTCD ;
%DO I=1 %TO 200;
@1391 + ((&I-1)*2) IFCODE&I ib2. "
Is there a way of getting the column titles in without having to do " put 'ifcode1,' 'ifcode2,' " etc etc up to 200. I was hoping the above %ifcode would work as " '%ifcode,' " but no joy it just prints "%ifcode". 'ifcode:' doesn't work either.
Anyone know a quick fix?
Thanks
Scott
" %MACRO INPUTCD ;
%DO I=1 %TO 200;
@1391 + ((&I-1)*2) IFCODE&I ib2. "
Is there a way of getting the column titles in without having to do " put 'ifcode1,' 'ifcode2,' " etc etc up to 200. I was hoping the above %ifcode would work as " '%ifcode,' " but no joy it just prints "%ifcode". 'ifcode:' doesn't work either.
Anyone know a quick fix?
Thanks
Scott