Date: Thu, 9 Dec 2004 12:01:05 -0500
Reply-To: "Keintz, H. Mark" <mkeintz@WHARTON.UPENN.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Keintz, H. Mark" <mkeintz@WHARTON.UPENN.EDU>
Subject: Re: put a % mark
Content-Type: text/plain; charset="us-ascii"
Yes,
Change
put "%chk(ab=" col1 ");"
to
put '%chk(ab=" col1 ");'
Use of the single quotes prevent the SAS macro processor from trying to
parse the contents.
Mark Keintz
Wharton Research Data Services
215/898-2160
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Yang, Kai
Sent: Monday, December 06, 2004 5:23 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: put a % mark
Hi, SAS - L
Pls look at the program below. I would like to put "%" mark in a txt
file.
I got error messages. The SAS consider that I involve a macro, but I did
not.
Is there a way to solve the problem?
data _null_;
set mk_name3;
file "c:\_chk.txt";
put "%chk(ab=" col1 ");";
run;
Thank you
Kai
|