Thank you Mr. Chris.
Could you please tell me the use of substr function for numerical values is it same as for charecters. Here is example
data work.AreaCodes;
Phonenumber=3125551212;
Code='('!!substr(Phonenumber,1,3)!!')';
run;
answer is ( 3).
hai,
I am a starter in SAS and while I was doing the following progrmme I found answer as 'length 7' and 'under 6'. I want explenation how it does.
data fltaten;
input jobcode $ salary name $;
cards;
FLAT1 70000 Bob
FLAT2 60000 Joe
FLAT3 30000 Ann
;
run;
data desc;
set fltaten;
if...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.