BookmarkSubscribeRSS Feed
sophia_SAS
Obsidian | Level 7

Dear SAS community,

 

I would like to run N lines from my SAS program. Based on some research, I think the subtop command is the best way to go.  However, I can't seem to figure out how to utilize this command.  Would someone direct me to some useful resources?

 

On a similar note, anyone know why you can only run <1000 lines using the Run --> Submit N Lines command from the menu bar?

 

Thanks again!

1 REPLY 1
ballardw
Super User

Are you always running the same number of lines? If so easiest might be a KEYS entry. In BASE SAS F9 in the edior by default should bring up a KEYS menu. If there hasn't been any customization you will see for Key SHF F1 (shift F1) subtop. You can add a number after that to indicate the that you want to run the top n lines. But it always submits the top and that fixed number of lines.

 

It might be worthwhild to investigate breaking your code into sections and possibly using %include files to run just bits of it.

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 789 views
  • 0 likes
  • 2 in conversation