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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 1247 views
  • 0 likes
  • 2 in conversation