Learning
Base SAS,
Advanced SAS,
Proc SQl,
ODS,
SAS in financial industry,
Clinical trials,
SAS Macros,
SAS BI,
SAS on Unix,
SAS on Mainframe,
SAS interview Questions and Answers,
SAS Tips and Techniques,
SAS Resources,
SAS Certification questions...
visit http://sastechies.blogspot.com
5. SAS Techies 2009 11/13/09 DATE() Today() Gives the current date Date() Today() 14686 MDY Contructs SAS date from the values passed to it MDY( month,day,year ) 01/01/1960 ->> 0 Functin Description Form Sample Value YEAR Extracts the year value from a SAS date value. YEAR( date ) 2002 MONTH Extracts the month value from a SAS date value. MONTH( date ) 12 DAY Extracts the day value from a SAS date value. DAY( date ) 5
6. SAS Techies 2009 11/13/09 Example LastName=scan(‘How, R’,1,' ,'); Initial=substr('NsHARAD',1,1); substr(x,1,3)=‘NEW'; Where x=‘SKWEST’ NewAddress= trim(‘Jersey ‘) NewAddress= trim(left((‘ Jersey ‘) ) Found=index(‘SAS Analyst,‘SAS ') UPCASE(‘sharad’) LOWCASE(‘ShaRAD’) Function Usage SCAN SCAN( argument,n,delimiters ) SUBSTR SUBSTR( argument,position,n ) TRIM TRIM( argument ) LEFT (argument) INDEX INDEX( source,excerpt ) UPCASE UPCASE( argument ) LOWCASE LOWCASE( argument )
Editor's Notes
SASTechies.com Sharad C Narnindi - Attic Technologies 2005
SASTechies.com Sharad C Narnindi - Attic Technologies 2005
SASTechies.com Sharad C Narnindi - Attic Technologies 2005
SASTechies.com Sharad C Narnindi - Attic Technologies 2005
SASTechies.com Sharad C Narnindi - Attic Technologies 2005