DATA Step, Macro, Functions and more

functions

Accepted Solution Solved
Reply
Contributor
Posts: 50
Accepted Solution

functions

hi, 

i am getting an error:

51 data test4;
52 set T.Grocery_coupons;
53 format mm date9.;
54 mm=intnx('month','31Mar2014'd,-3,'s');
--- -------
49 49
NOTE 49-169: The meaning of an identifier after a quoted string may change in a future SAS release. Inserting white
space between a quoted string and the succeeding identifier is recommended.

55 run;

 

this is my code:

data test4;
set T.Grocery_coupons;
format mm date9.;
mm=intnx('month','31Mar2014'd,-3,'s');
run;

thanks

 

 

 


Accepted Solutions
Solution
‎06-28-2016 08:47 AM
Contributor
Posts: 63

Re: functions

hello,

 

 

please try this one.

function.PNG

View solution in original post


All Replies
Super User
Posts: 6,930

Re: functions

Interesting. I don't get that NOTE:

23         GOPTIONS ACCESSIBLE;
24         data test4;
25         set sashelp.class;
26         format mm date9.;
27         mm=intnx('month','31Mar2014'd,-3,'s');
28         run;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.TEST4 has 19 observations and 6 variables.
NOTE: DATA statement used (Total process time):
      real time           0.03 seconds
      cpu time            0.00 seconds

(SAS version 9.2)

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Solution
‎06-28-2016 08:47 AM
Contributor
Posts: 63

Re: functions

hello,

 

 

please try this one.

function.PNG

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 178 views
  • 0 likes
  • 3 in conversation