BookmarkSubscribeRSS Feed
thanikondharish
Calcite | Level 5

I have one dataset/dummy data .

for example:

data test ;

length text $ 20 ;

text='i love you' ;

output;

text='i like you' ;

output ;

run;

 

my question is how to find unexcepted values in text variable ?

 

4 REPLIES 4
thanikondharish
Calcite | Level 5
I have copied some text from Excel and pasted into sas
andreas_lds
Jade | Level 19

@thanikondharish wrote:
I have copied some text from Excel and pasted into sas

Please define "unexpected".

Quentin
Super User

Suggest looking into the VERIFY() function.

BASUG is hosting free webinars Next up: Don Henderson presenting on using hash functions (not hash tables!) to segment data on June 12. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 365 views
  • 0 likes
  • 4 in conversation