BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
anming
Pyrite | Level 9

colon means "begin with " in the wild card, such as,

 

data ABCD;

set EF: ;      /* a dataset name stats with EF, like EF11.

 

Drop TEMP: ; to drop any variables starting with TEMP.

 

Total = sum (of var:); all variables with "var" in the name.

 

Arry col(*) col: ;

 

Anything else?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
novinosrin
Tourmaline | Level 20

Hi @anming  You may have come across this interesting technical paper that is worth reading -

However just in case- That Mysterious Colon (:) 

https://support.sas.com/resources/papers/proceedings/proceedings/sugi26/p073-26.pdf

 

 

View solution in original post

2 REPLIES 2
novinosrin
Tourmaline | Level 20

Hi @anming  You may have come across this interesting technical paper that is worth reading -

However just in case- That Mysterious Colon (:) 

https://support.sas.com/resources/papers/proceedings/proceedings/sugi26/p073-26.pdf

 

 

PaigeMiller
Diamond | Level 26

If x=: 'ABC' then ...

 

If the value of x starts with the letters ABC then this is true and the THEN clause is executed.

--
Paige Miller

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 899 views
  • 6 likes
  • 3 in conversation