options yearcutoff=1950; data _null_; a='26oct02'd; put 'SAS date='a; put 'formatted date='a date9.; run;
data schedule; input @1 jobid $ @6 projdate mmddyy10.; datalines; A100 01/15/25 A110 03/15/2025 A200 01/30/96 B100 02/05/00 B200 06/15/2000 ; proc print data=schedule; format projdate mmddyy10.; run;
Days Between Project Start and Project End 1 Obs jobid projdate 1 A100 01/15/1925 2 A110 03/15/2025 3 A200 01/30/1996 4 B100 02/05/2000 5 B200 06/15/2000
JULDAY. 1
|
||||
JULIAN. 1
|
||||
PDJULG. 1
|
||||
PDJULI. 1
|
||||
1In SAS, a Julian date is a date in the form YYNNN or YYYYNNN, where YY is a two-digit year, YYYY is a four-digit year, and NNN is the ordinal offset from January 1 of the year YY or YYYY. SAS processes Julian dates only for valid SAS dates. |
JULIAN. 1
|
||||
JULIAN7. 1
|
||||
JULDATE 1
|
||||
JULDATE7 1
|
||||
1In SAS, a Julian date is a date in the form YYNNN or YYYYNNN, where YY is a two-digit year, YYYY is a four-digit year, and NNN is the ordinal offset from January 1 of the year YY or YYYY. SAS processes Julian dates only for valid SAS dates. |
options nodate pageno=1 linesize=80 pagesize=18; data test; Time1=86399; format Time1 datetime.; Date1=86399; format Date1 date9.; Time2=86399; format Time2 timeampm.; run; proc print data=test; title 'Same Number, Different SAS Values'; footnote1 'Time1 is a SAS DATETIME value'; footnote2 'Date1 is a SAS DATE value'; footnote3 'Time2 is a SAS TIME value'; run; footnote;