BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am new to Stored Processes. We are trying to convert all .sas programs (reports) into Stored processes.

In our old sas code we are using include to call other code. I am looking for a way to replace the include command by calling a stored process. Is this possible and how.
3 REPLIES 3
deleted_user
Not applicable
I don't believe this is possible in SAS 9.1.x.

A solution around this is to convert your programs into macros and call these macros from your stored processes, thereby enabling calling the code chunks from many stored processes.
deleted_user
Not applicable
I was afraid that is was not possible.

Stored Processes have the advantage that the meta data is stored in the meta data server and you can control who may use the Stored process.

Another advantage is that (we are using Unix) that the Stored Processes places the code on the server with the correct user rights.
Vince_SAS
Rhodochrosite | Level 12
Do you really need to convert all the %INCLUDE code to stored processes? People routinely write stored processes that use %INCLUDE.

Vince DelGobbo
SAS R&D

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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