LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2002, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 1 May 2002 15:30:11 -0400
Reply-To:     "Shoemaker, Jack" <shoe@STATPROBETECHNOLOGIES.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Shoemaker, Jack" <shoe@STATPROBETECHNOLOGIES.COM>
Subject:      Re: x command: quotes
Comments: To: Lex jansen <lex@LEX-JANSEN.DEMON.NL>
Content-Type: multipart/alternative;

<SERMON ON> SAS is not a scripting language. You should build a script in your language of choice: Perl, Python, WNT Scripting, instead of trying to make SAS do this. <SERMON OFF>

To solve your problem, try something like this (untested <g>)

For example

%macro sas; %sysfunc(sysget(sasroot))\sas.exe -NOSPLASH -NOLOGO -ICON -SYSIN %mend sas;

%DO i = 1 %TO &nprog; X %sas "&&prog&i"; %END;

-----Original Message----- From: Lex jansen To: SAS-L@LISTSERV.UGA.EDU Sent: 5/1/02 3:14 PM Subject: x command: quotes

I'm struggling with my quotes. I have a macro that reads names of programs from a text file and then submits all these programs one after the other.

something like:

%LET sas %sysfunc(sysget(sasroot))\sas.exe -NOSPLASH -NOLOGO -ICON -SYSIN;

And then in a loop I would do:

%DO i = 1 %TO &nprog; X "&sas &&prog&i"; %END;

However, since I went from 6.12 to 8.2 the SASROOT has blanks, because it is installed in C:\Program Files\SAS Institute\SAS\V8. That is where the X command breaks. I tried many combinations. Of course I could do: X "C:\PROGRA~1\SASINS~1\SAS\V8 &&prog&i

But that is not neat.

There has to be a simple solution.

Thanks,

Lex Jansen


[text/html]


Back to: Top of message | Previous page | Main SAS-L page