BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
cbrotz
Pyrite | Level 9

I have not written many stored processes in SAS EG.  I did create one to store code that is used multiple times in many sets of code with the idea that if changes are needed, I could change it in one place for all code.  I was hoping that the output could just be sent to a work. file.  The code runs fine when I use the work. file but it appears to not be saving the data as I cannot reference the  work.  file further in the code.  If I use a  permanent SAS dataset it runs fine.  I was hoping to just create a temporary work file though.  Is it possible to just create a work file using Stored Processes?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

No, because the work session disappears when the stored process is done. You can write the file to a temp or perhaps rather than a stored process use a %INCLUDE to call the program instead.

View solution in original post

2 REPLIES 2
Reeza
Super User

No, because the work session disappears when the stored process is done. You can write the file to a temp or perhaps rather than a stored process use a %INCLUDE to call the program instead.

cbrotz
Pyrite | Level 9

Thank you!  The Temp file worked.

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