here is a string like chq.2312244%4452-
from that i want only special characters in a column.
dont use compress. bcoz i have 1.2 billion of records.i want
another process to find the values instant from the data.

Answer Posted / krish

data spdot;
set spec_char;
if count(name,'.') ge 1 then dot=".";
if count(name,'%') ge 1 then per="%";
if count(name,"-") ge 1 then iph= "-";
col=(dot || per ||iph);
run;proc print;run;

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain about sas business intelligence? : Sas-bi

596


what is sas metadata server? : Sas-di

580


What would you change about your job?

1918


How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

1087


What are the data types that sas contain?

649






For what purposes have you used sas macros? : sas-macro

535


What is the use of the %include statement?

680


How sas treats the dsd delimiters?

714


What are the applications primarily used by business analyst? : Sas-bi

548


why a stop statement is needed for the point= option on a set statement?

617


Can you execute a macro within a macro? Describe. : sas-macro

664


Why double trailing @@ is used in input statement?

690


How do you specify the number of iterations and specific condition within a single do loop?

615


Name some categories in sas 9? : sas-grid-administration

551


What is the basic syntax style in SAS?

610