BookmarkSubscribeRSS Feed
whymath
Barite | Level 11

In SAS EG or SAS studio, I can use key Ctrl + I to auto formatter my program. I have two question for it:
1. How can I do this in SAS Base(Display Manager System)?

2. May I process amounts of program files in batches? If so, How?

3 REPLIES 3
PaigeMiller
Diamond | Level 26
  1. No, not in Base SAS
  2. You can submit a .bat file (on Windows) that executes all the desired programs; or you can use %INCLUDE in a single program, something like this:
%include "g:\myfolder\mysubfolder\program1.sas";
%include "g:\myfolder\mysubfolder\program2.sas";
--
Paige Miller
whymath
Barite | Level 11
Hi.
I mean how to perform the auto formatter process in batches? any hint?
AlanC
Barite | Level 11

I am very interested in the answer too. My gues sis that it will be in the APIs SAS EG uses. Look at Chris H's articles on Custom EG Tasks, PowerShell automation, C#. It should be in there as a method call.

 

I would try and find it for you right now but just too many things happening. However, if it was going to be in EG, and accessible, it should be in their dlls and libraries. Hope that is a hint you can use.

https://github.com/savian-net

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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