BookmarkSubscribeRSS Feed
R_A_G_
Calcite | Level 5
Hi,

I have a very long sets of codes but there are times that I just need a small section from the top and bottom.

How do I divide up the middle section so it wouldn't run

Ex:
this is the code I want

this is the code with all the comments and Macro that I do not want

this is the code I want

Thank you
2 REPLIES 2
data_null__
Jade | Level 19
[pre]
> this is the code I want

%macro skip;
> this is the code with all the comments and Macro that
> I do not want
%mend skip;

> this is the code I want
[/pre]
Cynthia_sas
SAS Super FREQ
Hi:
SAS has 2 forms of comments for "regular" code, as explained here:
http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000289375.htm

and, also the ability to comment in macro programming code, as explained here;
http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#tw3514-definemacr... (in the topic entitled "Inserting Comments in Macros")

cynthia

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 764 views
  • 0 likes
  • 3 in conversation