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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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