I know compress function and its modifiers like 'kp' 'ka' 'kd' , but couldn't find difference in below program what will happen if I run below program?
data t ;
name='jhon peter' ;
a=compress(name,,'r') ;
run;
(duplicate of later post)
Hi:
You are correct, the R is not a modifier. This is what happens:
Perhaps the OP could clarify what the desired output was going to be using 'R' in the COMPRESS Function.
Cynthia
nothing happens,
to compress r use in second argument.
find the documentation what are allowed in modifiers(third argument) and r is not of them. it generally looking for groups of letter like alphabets(a) digits(d) etc
http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000212246.htm
data t ;
name='jhon peter' ;
a=compress(name,'r') ;
run;
Two very easy steps:
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.
Ready to level-up your skills? Choose your own adventure.