ERROR 22-322: Syntax error, expecting one of the following: a name, *.
This is one of the classic SAS errors that you can get from PROC SQL and it can be thrown by a number of things. Missing out a comma in a list of variables on a SELECT statement is one situation that will do it, as will having an extraneous one. As I discovered recently, an [...]
ERROR: Invalid value for width specified – width out of range
This could be the beginning of a series on error messages from PROC SQL that may appear unclear to a programmer more familiar with Data Step. The cause of my getting the message that heads this posting is that there was a numeric variable with a length less that the default of 8, not the best of [...]
Reading data into SAS using the EXCEL and PCFILES library engines
Recently, I had the opportunity to have a look at the Excel library engine again because I need to read Excel data into SAS. You need SAS Access for PC Files licensed for it to but it does simplify the process of getting data from spreadsheets into SAS. It all revolves around setting up a library pointing [...]
A few more SAS functions to know
There are whole pile of SAS functions for testing text strings that hadn’t come to my attention until this week. Until then, I’d have gone about using functions like INDEX and PRXMATCH functions for the same sort of ends but it’s never any load to have a few different ways of doing things and to [...]
%sysfunc and missing spaces
Recently, I was trying something like this and noted some odd behaviour: data _null_; file fileref; put “text %sysfunc(pathname(work)) more text”; run; This is the kind of thing that I was getting: text c:\sasworkmore text In other words, the space after %sysfunc was being ignored and, since I was creating and executing a Windows batch file [...]
AND & OR, a cautionary tale
The inspiration for this post is a situation where having the string “OR” or “AND” as an input to a piece of SAS Macro code breaking a program that I had written. Here is a simplified example of what I was doing: %macro test; %let doms=GE GT NE LT LE AND OR; %let lv_count=1; %do %while [...]
Topics Discussed
Adobe Apache Blogging Blogs Canon Command Line CSS Debian Fedora Firefox GNOME Google Hard Drives Hardware HTML Installation Internet Explorer Linux Microsoft MySQL Opera Operating System Perl Photoshop Photoshop Elements PHP Plugins SAS Software SQL Ubuntu UNIX upgrade VirtualBox Virtualisation Virtual Machines VMware Web Browsers Windows Windows Vista Windows XP WordPress WordPress.com WordPress plugins XHTMLTwitter Updates
- Delicious: Example 4.9 Computing Confidence Limits for the Mean, Standard Deviation, and Variance http://ow.ly/18OCZJ 1 day ago
- GR Shared Items: SAS Enterprise Guide 4.3 is available http://ow.ly/18O1jS 2 days ago
- GR Shared Items: Two New SAS Blogs http://ow.ly/18O1jT 2 days ago
- GR Shared Items: SAS EG 4.3 is here (but its hiding with Elvis) http://ow.ly/18MYxY 3 days ago
- GR Shared Items: Weblog Tools Collection: WordPress and the Fatal Memory Error http://ow.ly/18MdIo 4 days ago
- More updates...
Monthly Archives