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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 603 views
  • 0 likes
  • 3 in conversation