@PrinceAde wrote:
Sorry, sir. I saw in the Text; SAS® Certified Professional Prep Guide: Advanced Programming Using SAS® 9.4
May-be share the section that confuses you and we can share how we understand it.
In SAS9.4 the only data types available for SAS tables are CHAR and NUMERIC. I didn't even know that Proc SQL allows for other datatypes - but they all result in type CHAR and NUM.
proc sql;
create table work.sample
(
var1 char(20)
,var2 varchar(20)
,var3 integer
,var4 smallint
,var5 decimal
,var6 numeric
,var7 float(10,2)
,var8 real
,var9 double precision
,var10 date
)
;
quit;
proc contents data=work.sample;
run;quit;
It looks like when requesting a DATE type SAS also adds a DATE. format which is useful.
... View more