Can anyone help me? I stuck in removing commas from my sas dataset. Well, I wants to generate .csv file from my sas dataset but due to some commas are already existed in original dataset; it generates extra variable.
Hey klaz,
thanks for helping, but I could not able to find the whole syntax for compress statement. Actually I am very new for this SAS programming. If possible to you then can you please send me whole syntax.... like Data "data name"...
You need to know the variable name of the offending character string. In my example above I named that variable 'yourvar'. You need to place the compress() function in your datastep code.
ex
Code:
data yourdatasetname;
set yourdssourcename;
*** WILL REMOVE COMMAS FROM VARIABLE VALUE ***;
yourvar = compress(yourvar,',');
run;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.