f



WARNING or ERROR

Hi friends,

I often use dataset options like KEEP, DROP, RENAME and WHERE.
Sometimes I make a mistake and specify a non-existent variable.
Sometimes I get a warning, sometimes I get an error:
WARNING: The variable _Rater_ in the DROP, KEEP, or RENAME list has never
been referenced.
ERROR: The variable _Rater_ in the DROP, KEEP, or RENAME list has never
been referenced.

The warnings occur with the dataset options in the DATA statement.
The errors occur with the dataset options in the SET statement.
Non-existent variables in the MODIFY statement yields a warning,
while they yield an error in MERGE and UPDATE statements.
However the error with the RENAME option is quite different already,
so the above error text does never apply to the RENAME option!

Furthermore specifying non-existent variable name in a WHERE clause
yields an error, both in the DATA and the SET (and comparable) statements.

I do not understand why the warnings are warnings and
from the viewpoint of consistency between DATA and other statements
I would logically expect all of them to be errors too.

* TEST PROGRAM ;

DATA TestData;
  x = 1;
RUN;

DATA KeepData (KEEP=y);
  SET TestData;
RUN;

DATA DropData (DROP=y);
  SET TestData;
RUN;

DATA RenameData (RENAME=(y=z));
  SET TestData;
RUN;

DATA KeepData;
  SET TestData (KEEP=z);
RUN;

DATA KeepData;
  MODIFY KeepData (KEEP=z);
RUN;

DATA DropData;
  SET TestData (DROP=z);
RUN;

DATA DropData;
  MERGE TestData TestData (DROP=z);
RUN;

DATA RenameData;
  SET TestData (RENAME=(z=y));
RUN;

DATA RenameData;
  UPDATE KeepData TestData (RENAME=(z=y));
  BY x;
RUN;

DATA WhereData (WHERE=(y=1));
  SET TestData;
RUN;

DATA WhereData;
  SET TestData (WHERE=(y=1));
RUN;

I may not have been complete while testing the results of the dataset
options.

Regards - Jim.
--
Jim Groeneveld, Netherlands
Statistician, SAS consultant
home.hccnet.nl/jim.groeneveld
0
jim.1stat (180)
12/5/2008 11:10:55 AM
comp.soft-sys.sas 142828 articles. 3 followers. Post Follow

0 Replies
3138 Views

Similar Articles

[PageSpeed] 33

Reply:

Similar Artilces:

SAS Macros to Search and Report Errors and Warnings from your SAS Logs
Any suggestions or enhancements to this macro....Please let me know.... http://sastechies.blogspot.com/2010/10/sas-macros-to-search-and-report-errors.html ...

commenting errors flagged as warnings instead of errors
I'm using Visual C++ on Windows Vista. Being "only human", I sometimes use ***************************************/ to underline a section of code instead of the correct /************************************/ I'm surprised by the fact that my mistake generates a warning rather than an error. How does the compiler understand *************************/ ? Thanks On Apr 8, 10:26=A0pm, Comp1...@yahoo.co.uk wrote: > I'm using Visual C++ on Windows Vista. > Being "only human", I sometimes use > ***************************************/ =A0 to ...

New kernel feature ? "NOTICE: Scheduling removal of page 0x00000000.10d0c000" after "WARNING: [AFT0] 3 soft errors ..."
Hi! ---- I have an old Ultra1 which seems to have sporadic "fun" with one of the memory modules (="WARNING: [AFT0] 3 soft errors ..."), nothing serious... .... today, after an kernel update (from 108528-23 to 108528-23) there is now a 2nd line following the old message: -- snip -- Jan 14 10:08:00 bloodbath unix: WARNING: [AFT0] 3 soft errors in less than 24:00 (hh:mm) detected from Memory Module U0702 Jan 14 10:08:00 bloodbath unix: NOTICE: Scheduling removal of page 0x00000000.10d0c000 -- snip -- Does that mean the kernel now removes the hot spots where these errors oc...

Re: Segmentation error: was: SAS Error Message
Short answer: this probably is not a problem with SAS. Segmentation errors usually arise when there is a bug in the program. Have you run the shell script from an interactive session to verify it works? Are you either writing the shell script, or writing a parameter file for the shell script from within your SAS session? If so, look again at the syntax of the created script or inclusion file. Usually, these errors occur where array references are out of bounds or use pointers that are corrupt or uninitialised. Modifying your shell script with a series of PrintF() statements will help y...

Error in SAS
HI all , i am getting a meassage in SAS enterprise guide while running the code as ERROR: user doesnt have appropriate authorization level for file xxxx could anyone help removing the error Thanks Atul ...

warnings as errors?
Is there a way to tell Ruby to treat warnings as errors? When writing my tutorial, I wanted a way to programmatically detect if a function was generating warnings, so I could show that warning on screen. Now I'm in another situation, using drb, where I can't see the warnings. (And I think they are causing these "broken pipe" errors I am getting, but even if they aren't...) I could handle all of these problems if I could tell Ruby to treat warnings as errors. Is there any way to do this? Thanks, Chris ...

error and warning
Are warnings equally dangerous like errors ???? What is the difference between errors and warnings ?? asit wrote: > Are warnings equally dangerous like errors ???? Sometimes yes, sometimes even more dangerrous, sometimes less. Make sure you understand what the warning tries to tell you > What is the difference between errors and warnings ?? Usualla errors prevent the compiler to finish it's work, while with warning that (usually) doesn't happen Bye, Jojo In article <0f43d8bb-f186-4857-9fb3-32bcbe309bbc@f10g2000hsf.googlegroups.com>, asit <lipun4u@gmail.com>...

When is an error not an error?
When it's OSS slopware, of course. http://www.angelfire.com/planet/dfs0/Knode_send_error.png On 2006-09-12 02:42, * DFS wrote: > When it's OSS slopware, of course. > > http://www.angelfire.com/planet/dfs0/Knode_send_error.png > Well, some time ago I had a problem with OE - too long reference line to other posts, and OE of course refused to send... then crashed. Should I name it a feature? -- Andrea On Tue, 12 Sep 2006 03:25:29 +0200, Andrea wrote: > On 2006-09-12 02:42, * DFS wrote: >> When it's OSS slopware, of course. >> >> http:/...

When is an error not an error?
The Java language specification claims in: 8.8.7.1 Explicit Constructor Invocations .... "If an anonymous class instance creation expression appears within an explicit constructor invocation statement, then the anonymous class may not refer to any of the enclosing instances of the class whose constructor is being invoked." Helpfully it gives an example: "For example: class Top { int x; class Dummy { Dummy(Object o) {} } class Inside extends Dummy { Inside() { super(new Object() { int r = x; }); // error } Inside(final int y) { super(new Object() { int r = y; }); // correct } } } " Notice the word 'error' in the comment. This example compiles without error and produces the correct code. In what sense is it an 'error'? It is not a compiler error, it is not a runtime error. To quote Douglas Adams "this must be some new meaning of the word 'error' with which I am unfamiliar". Any idea what's gone wrong? In article <gepkhr$rop$1$8302bc10@news.demon.co.uk>, Anon <blackhole@nowhere.com> wrote: > The Java language specification claims in: > 8.8.7.1 Explicit Constructor Invocations [<http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.8. 7.1>] > Notice the word 'error' in the comment. This example compiles without > error and ...

Warning: error writing VTOC Warning: no backup labels Write label failed
i canot format my new hard disk or use it. i found dublacate action like the following: root@dnuspc02 # format Searching for disks...done c8t60060E8004F3AD000000F3AD00001217d0: configured with capacity of 4.87GB c8t60060E8004F3AD000000F3AD00001218d0: configured with capacity of 4.87GB c8t60060E8004F3AD000000F3AD00001219d0: configured with capacity of 4.87GB c8t60060E8004F3AD000000F3AD00001413d0: configured with capacity of 4.87GB c8t60060E8004F3B6000000F3B600001217d0: configured with capacity of 4.87GB c8t60060E8004F3B6000000F3B600001218d0: configured with capacity of 4.87GB c8t60060E8004F3B6...

MAC SE: "Bomb" "Sys Error" / Address error" at start
Stephen Buggie (505) 863-2390 Psychology Department Univ. of New Mexico, Gallup February 15, 2006 200 College Road Gallup NM 87301 buggie@unm.edu NEED RESCUE DISK! MAC SE -- BOMB System Error / Address Error ------------------------------------------------------------------------------------------------ Dear Macintosh experts, My Mac SE crashes at power-up. I gives the bell-chime, then it proceeds though the launch sequence. After showing two extension-icons, it crashes. Then a dialogue-box shows the BOMB icon with the message, SORRY, A SYSTEM ERROR HAS OCCURRED --- ADDRESS ERROR It never reaches the desktop; this crash occurs every time. The Mac SE has a 330 meg internal hard drive, System 6.x.x, and a 1.4 meg internal 3.5 floppy drive. There is a SCSI port but no internal CD reader. The b/w screen is extremely sharp in its focus. The computer worked fine until about a year ago, when I stupidly put a file in the wrong folder. It has crashed consistently ever since! It has an assortment of software on the hard drive, but I have backups of everything and am willing to reformat the entire hard drive if necessary to get the computer working again! If I can resurrect the computer, I hope to upgrade the system to System 7.0 or 7.1 . DONE SO FAR: Yes, I have launched it with shift-key down, to turn off the extensions, but it always crashes Ive also tried vari...

help for an error warning
Hello, this is the first day I use mutt, and i find problems to store read messages in a mailbox...in fact, the program shows me this error warning: 'couldn' t lock /home/username/mbox?' (mbox is the file name of stored messages, right?)... Could you suggest anything, please? Thanks, ALberto Alberto Mazzocato wrote: > Hello, this is the first day I use mutt, and i find problems to store > read messages in a mailbox. In fact, the program shows me this error > warning: 'couldn' t lock /home/username/mbox?' (mbox is the file name > of stored messa...

Re: why is this warning(error) ??????????
SAS_Learner , You can do what you want, Yes you can use a label statement as well as a format statement. Teo things you need to do, lose the parens and the format. Ther label and format statements are giving you the error, teh particular construct of these you have choosen to use are not aplicable within sql. But SQl has its own constructs to achieve the same thing. Try the following: proc sql ; create table test as <---- Need a 'as' here Select Customer Format = $char4. Label ='Customer number ' , Item Format = $char10. Label = 'Item purchased ' , units Format = 8. Label = '# Units purchased ' , unitcost Format = Dollar12.2 Label = 'Unit cost' From < you didnt have anything here but you need to refernece a data set> ; quit ; Toby Dunn From: SAS_learner <proccontents@GMAIL.COM> Reply-To: SAS_learner <proccontents@GMAIL.COM> To: SAS-L@LISTSERV.UGA.EDU Subject: why is this warning(error) ?????????? Date: Tue, 20 Jun 2006 23:46:02 -0400 Guys I am using SAS 8.2 version on windows xp platform , I am trying to do something like this and I getting this warning in the Log can some body explain me why and how to solve it proc sql ; 36 create table test 37 (customer char(4) , 38 item char(10) , 39 units num, 40 unitcost num(8,2)); NOTE: Table WORK.TEST created, with 0 rows and 4 columns. 41 label customer = ...

KAIO error or warning
IDS 11.5FC6 on RHEL 5.2. We're getting a warning, or maybe error, each time we start one of the many instances on this server. requested number of KAIO events (16384) exceeds limit (8448). using 8448. Although the "limit" number varies; sometimes as low as 128. Any ideas what this is or if it's a worry? IBM Service Request Number 81212 019 866 refers. thanks Neil, I would not worry too much but you should check the following two kerne= l parameters: "/proc/sys/fs/aio-max-nr" "/proc/sys/fs/aio-nr" Ids would like to use half of remaining system wide AIO requests... an= d not getting it Do you have other IDS instances running on the same machine or differen= t SW using also the AIO interface ? Kind regards Sandor -----------------------------------------------------------------------= -------------------------------------------------------------------- IBM Deutschland Research & Development GmbH / Vorsitzender des Aufsichtsrats: Martin Jetter Gesch=E4ftsf=FChrung: Dirk Wittkopp Sitz der Gesellschaft: B=F6blingen / Registergericht: Amtsgericht Stutt= gart, HRB 243294 = "Neil Truby" = <neil.truby@arden = ta.com> ...

SAS Error Message
Has anyone ever seen the below error? It's a crazy Segmentation Fault error that I get in the log when trying to execute a shell script from SAS. The actual log is at the bottom. We can't seem to figure it out. I'm running SAS for windows version 9. I am getting the error when I run the following code: =20 x '/users/apps/ssg1/data_archive/green_net/run_ftp.sh'; =20 REMOTE(WFSAS): MetaReady REMOTE(WFSAS): /users/apps/ssg1/data_archive/green_net/appr_comm_ftp.sh: 401836 Segmentation fault(coredump) =20 Thanks in advance... Bruce, Is the following of any help? ht...

Re: WARNING or ERROR
I have not tested all your cases, but I guess the general rule SAS is following is - if the particular condition will result in the code not being able to run successfully, then it is an ERROR else it is a WARNING. I know I am being vague here, but guess SAS behaves in a similar manner. For example, a KEEP in the SET statement implies that it must be included in the PDV and SAS has no way to know its type and length, whereas in the DATA statement, it can simply ignore it in the output with a warning. Regards, Anindya On Fri, Dec 5, 2008 at 4:40 PM, Jim Groeneveld <jim.1stat@yahoo.com> wrote: > Hi friends, > > I often use dataset options like KEEP, DROP, RENAME and WHERE. > Sometimes I make a mistake and specify a non-existent variable. > Sometimes I get a warning, sometimes I get an error: > WARNING: The variable _Rater_ in the DROP, KEEP, or RENAME list has never > been referenced. > ERROR: The variable _Rater_ in the DROP, KEEP, or RENAME list has never > been referenced. > > The warnings occur with the dataset options in the DATA statement. > The errors occur with the dataset options in the SET statement. > Non-existent variables in the MODIFY statement yields a warning, > while they yield an error in MERGE and UPDATE statements. > However the error with the RENAME option is quite different already, > so the above error text does never apply to the RENAME option! > > Furthermore specifying non-existent variable ...

SAS I/O error
Hi, I get weird SAS I/O error from time to time. Here is an example. First I created a sas dataset "customer.sas7bdat" in library abc. It has 8545476 observations and 3 numeric variables. Next I sorted it. The code is really simple. Proc sort data=abc.customer;by customerid;run; Then it returned error message saying "ERROR: An I/O error has occurred on file ABC.CUSTOMER.DATA". I thought probably it's something related to the memory even though the sas dataset is not really huge. Therefore I tried data inv01; set abc.customer (firstobs=1 obs=100); r...

What would be the right warning/error?
Consider this code static typedef struct { int boo; } FOO; This provokes with MSVC: ------------------------------ Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50727.762 for x64 Copyright (C) Microsoft Corporation. All rights reserved. tstruct.c tstruct.c(1) : error C2159: more than one storage class specified ------------------------------ With gcc we have: ---------------------------- root@ubuntu-vm:/tmp# gcc t.c t.c:1: error: multiple storage classes in declaration specifiers ---------------------------- With lcc-win I had Warning tstruct.c: 1 multiple types in a declaratio...

Error SAS to ORACLE
Hi everybody, I have the following situation, I have SAS Foundation 9.1 on a unix machine and ACCESS To ORACLE and it was running perfect. And I have several libraries on Oracle very fine. but I stopped the services in order to install SP4. The installer didn't work but at the time of start the services again the objectspawner starts normally but when a connection is made from a client the log gives the following error: 20061124:15.07.54.46: 00000003:Could not load /SAS/SAS_9.1/sasexe/sasora (36 images loaded) 20061124:15.07.54.47: 00000003:Error: Unable to find library 'libclntsh....

Info about Errors ,warnings..!
Hi all, Where can i get the complete details about the all types of errors and warnings that a C-compiler pops up..?? any pdfs or links or books to refer....! plz help me out.. Regards, Rajshekhar Rajshekhar <rajshekhar3@gmail.com> wrote: > Hi all, > Where can i get the complete details about the all types of errors and > warnings that a C-compiler pops up..?? Most likely you'll find these in the manuals of the compiler in use. There are to many to actually write one documentation that fits all. > > any pdfs or links or books to refer....! > plz help me out....

Turn off errors and warnings
Hi! Get some errors and warnings, how to turn them off? Not all warnings and errors....just some specific.. cheers take a look at example 5 at: <http://www.mathworks.com/access/helpdesk/help/techdoc/ref/warning.html> Ola wrote: > > > Hi! > > Get some errors and warnings, how to turn them off? Not all > warnings > and errors....just some specific.. > > cheers ...

Compile Warnings and Errors
Hello, Just trying my first program. It's a FIR filter below. For some reason, if it is put in "void main()" without the "return y" line, it spits out a compile warning on the line "float y[20]" saying the variable y was never referenced. If I put it into its own function, "float fir()", and then call it from "void main()", it produces a compile error on the line "return y" saying "return value type does not match the function type" int i, j; int datapoints = 10, length = 10; float temp; float x_d[10] = {0, 0, 0...

Enabling errors/warnings
Hi all, I'm kinda new to VO and im stuck with a problem. I need to enable a specific warning in the error browser because I disabled it a while ago to get my app compiled. Iv'e googled it and searched in the manuals and helpfiles but I can't figure out where I can enable the warning again. Thanks in advance, Bob Lamens Marti IT Is the last icon to the right, Options -- Ciao Alessandro "Bob Lamens [Marti IT]" <bob-at-m@rti.nl> ha scritto nel messaggio news:48bbdfa8$0$771$58c7af7e@news.kabelfoon.nl... > Hi all, > > I...

Warning treated as error
I am trying to compile a driver code for Windows 2003 server (WNET). DDK 3790 does not support compiling the code with Microsoft Visual C++ Editor. Its Release notes say that we can compile the code in the provided ddk build environment. So I tried with that. Initially while compiling it gave some warnings which it was treating like errors. But there is an option available to avoid this by setting the warning level. But again, in linking the linker is treating some other linking warning as error and I don't have any idea how to avoid it. Also I don't know how to remove that w...