lesson2-2.7- level2

15 views
Skip to first unread message

Sumitra

unread,
Aug 5, 2014, 1:01:56 AM8/5/14
to anova...@googlegroups.com
Hi vikas,
In this practice Orion2.discount dataset is not define the observations of JULY monthdate.
without observations How can do  the statement Season='summer';
the error was indicate like this.
47 Season= 'winter';
48 output;
49 Start_Date='01July2008'd;
_____________
77
ERROR: Invalid date/time/datetime constant '01July2008'd.
ERROR 77-185: Invalid number conversion on '01July2008'd.
50 End_Date= '31July2008'd;
_____________
77
ERROR: Invalid date/time/datetime constant '31July2008'd.
ERROR 77-185: Invalid number conversion on '31July2008'd.
51 Season="summer";
52 output;
53 run;
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.EXTENDED may be incomplete. When this step was
stopped there were 0 observations and 6 variables.
WARNING: Data set WORK.EXTENDED was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
real time 0.03 seconds
cpu time 0.04 seconds
54 proc print data=work.Extended;
55 run;
sas-II lesson2.7lve2.pdf

Jennifer SUN

unread,
Aug 5, 2014, 12:14:27 PM8/5/14
to anova...@googlegroups.com
there is only two format you can use as

Write a date as a constant in an expressionSAS date constant'ddmmmyy'd

or

'ddmmmyyyy'

'17mar00'd


'17mar2000'd

Reply all
Reply to author
Forward
0 new messages