Write SAS Data-Labels to Excel file -
i try write labels of each variable excelsheet in sas. im using option dblabel=yes
which allows print labels column headings in excel. unfortunately seems labels long. has solution? here code m using:
data test; length 3. b 3. c 3.; input b c; label = "this label long writing sas excel"; datalines; 18 20 15 25 20 80 63 72 14 run; libname xls oledb provider="microsoft.ace.oledb.12.0" preserve_tab_names=yes preserve_col_names=yes datasource="f:my workspace\test_9.xls" provider_string="excel 12.0"; data xls.test (dblabel=yes); set test; run; libname xls clear;
this ther error receive.
error: error binding parameters: invalid column name: label long writing sas excel
thanks in advance
this doesn't appear problem proc export instead.
proc export data=test outfile="c:\test.csv" label; run;
Comments
Post a Comment