Sign In
New User? Register
Statisticians_group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
You can search the group for older messages.

Messages

  Messages Help
Advanced
SAS Question   Message List  
Reply | Forward Message #2677 of 4102 |
Re: SAS Question

Hello,

I would check the value it seems as if there is something about it
that does not agree with the equation you are using.

Amy


--- In Statisticians_group@..., Bhattacharya Archan
<archanb@...> wrote:
>
> Hello,
> I am running the following SAS code which is producing the log
attached below. Now I know the error. What I need to know in the log
when it refers to (Line):(Column). 1 at 1:31, what it refers to.
Which line number and column number? How can I make it use the actual
program line number and column number?
> I'll appreciate any help on this.
> Archan
> -------------------------------
> data
> x=xxx;'uuuuuu';run;%macromyfun(num); %do
> data yyy;
> set xxx;
> z=input(x,
> run;i = 1%to&num;best.);%end;%mend
> %myfun(
> And the error in the log is:1 data xxx;
> 2 x='uuuuuu';
> 3 run;
> NOTE: The data set WORK.XXX has 1 observations and 1 variables.
> NOTE: DATA statement used (Total process time):
> real time 0.03 seconds
> cpu time 0.03 seconds
>  
> 4
> 5 %macro myfun(num);
> 6 %do i = 1 %to &num;
> 7 data yyy;
> 8 set xxx;
> 9 z=input(x,best.);
> 10 run;
> 11 %end;
> 12 %mend;
> 13 %myfun(1)
> NOTE: Invalid argument to function INPUT at line 1 column 31.
> x=uuuuuu z=. _ERROR_=1 _N_=1
> NOTE: Mathematical operations could not be performed at the
following places. The results of
> the operations have been set to missing values.
> Each place is given by: (Number of times) at (Line):(Column).
> 1 at 1:31
> NOTE: There were 1 observations read from the data set WORK.XXX.
> NOTE: The data set WORK.YYY has 1 observations and 2 variables.
> NOTE: DATA statement used (Total process time):
> real time 0.01 seconds
> cpu time 0.01 seconds;1)
>





Thu May 15, 2008 2:08 pm

moccalatte2003
Offline Offline
Send Email Send Email

Forward
Message #2677 of 4102 |
Expand Messages Author Sort by Date

Hello, I am running the following SAS code which is producing the log attached below. Now I know the error. What I need to know in the log when it refers to...
Bhattacharya Archan
archanb
Offline Send Email
May 15, 2008
11:32 am

Hello, I would check the value it seems as if there is something about it that does not agree with the equation you are using. Amy ... attached below. Now I...
moccalatte2003
Offline Send Email
May 15, 2008
2:08 pm

Hi Archan/Amy, There is a difference in location of errors from sas macro and open code. Line number meaning is different in macro language, its the number of...
Dominic, Littish
litdom
Offline Send Email
May 15, 2008
10:43 pm

Hi Archan/Amy, There is a difference in location of errors from sas macro and open code. Line number meaning is different in macro language, its the number of...
Dominic, Littish
litdom
Offline Send Email
May 15, 2008
10:45 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help