ERROR: Floating Point Zero Divide.
ERROR: Termination due to Floating Point Exception
ERROR: Termination due to Floating Point Exception
This strange set of errors is not well documented and, as I eventually found out, has nothing to do with my original query:
proc sql;
create table _test_ as
select * from sashelp.vtable
where upcase(libname)="SPECIFIC_LIBNAME"
;
quit;
create table _test_ as
select * from sashelp.vtable
where upcase(libname)="SPECIFIC_LIBNAME"
;
quit;
Where "SPECIFIC_LIBNAME" was a macro variable containing the libname I wanted information about.
The solution to this problem was to clear a particular library that consisted only of views. This library's members were generated prior to the above step, and may have somehow contributed to the problem within the SASHelp metadata. In general, it may be a good practice to review the libraries and their sizes when encountering problems with the SASHelp library, which contains a great deal of metadata on SAS libraries.
For this set of errors, however, this solution will probably not always work. It would appear that the problem is related to extensions of SAS that are dependent on external sources. In this case, it may have been the SQL procedure. This does seem strange, since SQL is a widely-used standard. Clearing the previously-created library may have cleared up an exception caused by a large amount of data in the SASHelp table that was not accounted for in the manner in which SAS implemented the SQL standard or the proprietary extensions of it.
If you encounter this error, please let me know! Especially if you know how to fix it!
Articles and Discussions Regarding these Errors: