Hello, I've got a problem with an input file which I've been asked to strip out some policy numbers. The problem arises with the first variable being called '!' i.e.
!,polref
*,1
*,2
*,3
*,4
*,5
PROC IMPORT OUT= WORK.exclam
DATAFILE= "C:\Scott\PeskyExclamation.csv"
DBMS=CSV REPLACE;
GETNAMES=YES;
DATAROW=2;
RUN;
proc print;
run;
Obs _ polref
1 * 1
2 * 2
3 * 3
4 * 4
5 * 5
SAS substitutes the original '!' and replaces it with an underscore '_'. Does anyone know how to get round this, I really need to carry the exclamation variable through into a proc export back into a csv file after I've stripped my policy numbers out, must be in the same order as well. Hope I'm making sense here?
Thanks
SPhill
!,polref
*,1
*,2
*,3
*,4
*,5
PROC IMPORT OUT= WORK.exclam
DATAFILE= "C:\Scott\PeskyExclamation.csv"
DBMS=CSV REPLACE;
GETNAMES=YES;
DATAROW=2;
RUN;
proc print;
run;
Obs _ polref
1 * 1
2 * 2
3 * 3
4 * 4
5 * 5
SAS substitutes the original '!' and replaces it with an underscore '_'. Does anyone know how to get round this, I really need to carry the exclamation variable through into a proc export back into a csv file after I've stripped my policy numbers out, must be in the same order as well. Hope I'm making sense here?
Thanks
SPhill