s-news
[Top] [All Lists]

if-statement in sas.get from hmisc library

To: "'s-news@wubios.wustl.edu'" <s-news@wubios.wustl.edu>
Subject: if-statement in sas.get from hmisc library
From: "Augustyns, Ilse [PRDBE]" <IAUGUSTY@PRDBE.jnj.com>
Date: Fri, 28 May 2004 15:11:23 +0200

Hi all,

I am using sas.get from the hmisc library to load a SAS dataset into Splus.
I run into problems when using the ifs selection for character variables.
The SAS-system stops with errors on the ifs macro variable.
It runs without errors if the ifs-variable only contains numerical if-statements.

This is my code:

indata <- sas.get(library="c:\\datacollection",
                     member='SASname',variable=c('num1','char1'),
                     ifs= c('if num1 ge 5','if char1 = "CHARACTER SELECTION"'),
                    sasprog="C:\\Program Files\\SAS Institute\\SAS\\V8\\sas.exe")

Does anyone have an idea what is going wrong and how to solve this?

Kind regards,
_________________________________________

Ilse Augustyns
_________________________________________

<Prev in Thread] Current Thread [Next in Thread>
  • if-statement in sas.get from hmisc library, Augustyns, Ilse [PRDBE] <=