data have ;
name='sdkfksf%%&545453435' ;
new1=comperss(name, ,'kp') ;
run;
if we run above program new1 variable have only punctuals .
what is the meaning of second argument in compress function?
Did you check the manual?
http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000212246.htm
There is a whole section on Modifiers.
The second argument is the character list which specifies the characters you want to have removed. If you only wanted hyphens removed it would be a hyphen in quotes.
I would suggest bookmarking this page:
Then click on Functions, find the function of interest and you can see all the details for that particular function, such as RAND() or COMPRESS.
@thanikondharish wrote:
data have ;
name='sdkfksf%%&545453435' ;
new1=comperss(name, ,'kp') ;
run;
if we run above program new1 variable have only punctuals .
what is the meaning of second argument in compress function?
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 lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.