SAS: PROC EXPORT adds a "_" in the Excel sheet name but the _ is not there in SAS? -


i have following sas code exports .xls-file. (nb: need old 1997-2003 format).

i specify sheet name be: 'pb organization'

but when file created sheet name 'pb_organization'

an "_" has been added. happening?

ps: file contains right columns , rows, sheet name wrong.

%let path_org = "\\folder\currentmonth - pb organization";  proc export data=pb_org2    outfile = &path_org     dbms=xls replace;    sheet = 'pb organization'; run; 

from sas docs:

sheet=sheet-name

identifies particular spreadsheet in excel workbook. use sheet= option when want import entire spreadsheet. if export procedure sheet-name contains special characters (such space) sas converts underscore.

the space converted underscore. "employee information" becomes "employee_information"

see here http://support.sas.com/documentation/cdl/en/acpcref/63184/html/default/viewer.htm#a003103761.htm


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -