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 (October 2004, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 15 Oct 2004 11:01:17 -0700
Reply-To:     "Huang, Ya" <yhuang@AMYLIN.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Huang, Ya" <yhuang@AMYLIN.COM>
Subject:      Re: Disable(or enable?) comments in call execute?
Comments: To: "Chang Y. Chung" <chang_y_chung@HOTMAIL.COM>
Content-Type: text/plain; charset="iso-8859-1"

Great!

Thanks Chang, Since I thought SAS consider it comments anyway, I never test if it will work for single '*' comment.

Kind regards,

Ya

-----Original Message----- From: Chang Y. Chung [mailto:chang_y_chung@HOTMAIL.COM] Sent: Friday, October 15, 2004 10:59 AM To: SAS-L@LISTSERV.UGA.EDU; Huang, Ya Subject: Re: Disable(or enable?) comments in call execute?

On Fri, 15 Oct 2004 13:52:25 -0400, Huang, Ya <yhuang@AMYLIN.COM> wrote:

>Hi folkes, > >The following is a simplified data step with call execute: > >21 data _null_; >22 set sashelp.class (where=(sex='M')); >23 call execute('run;'); >24 run; > >NOTE: CALL EXECUTE generated line. >1 + run; >2 + run; >3 + run; >... > >In my real code, 'run' will be a more complicate line. >Now I want to know which name corresponding to which run in the log, >so I added a comments in the call execute: > >25 data _null_; >26 set sashelp.class (where=(sex='M')); >27 call execute('run; /* name='||name||' */'); >28 run; > >NOTE: CALL EXECUTE generated line. >1 + run; >2 + run; >3 + run; >.... > >I was hoping to see this: > >1 + run; /* Alfred */ >2 + run; /* Henry */ >3 + run; /* James */ >... > >Obviously, SAS consider them comments, and does not want them >shown in the log. I tried to add source and source2 options, but didn't >work.

Hi, Ya,

how about comment statement?

Cheers, Chang

data _null_; set sashelp.class(obs=3); call execute('run;' || " *" || name || ";"); run; /* on log NOTE: CALL EXECUTE generated line. 1 + run; *Alfred ; 2 + run; *Alice ; 3 + run; *Barbara ; */


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