Hi Guys
Below dataset split into three datasets like alphabet , digits ,special characters
using compress function i do not know exactly scan function can do this scenario
data special_char;
x='abacd123=@7!*#$ ^';
run;
Is there an actual question here?
What is it that you want to do with that dataset?
What should the three resulting datasets look like?
split into three datasets
alphabet digits special characters
You want three datasets? Not three variables (one for each class of character)?
It seems we even have to write your questions for you.
Do you mean to have three datasets, each with a character variable x,
where the first contains
abacd
the second
123
and the third
=@7!*#$ ^
?
You already have everything you need, you just need to use it "the other way round".
So ask yourself first: "what does the modifier string 'ak' do?"
But that code just creates three duplicates of the same dataset.
If 'ka' keeps alpha and 'kd' keeps digits then to get everything else use 'ad' without the k.
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!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: