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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1178 views
  • 0 likes
  • 2 in conversation