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

Hi Team,

I have created a stored process in my SAS Enterprise Guide 8.3 and saved it under Shared Data Folder. I have created some prompts in the Stored process for getting some inputs when running the PROJECT. Unfortunately the Stored Process is taking the Inputs from the programmer but those macro variables are not getting resolved in the other objects like a program. Is that something I am missing with the stored process creation to get these macro variables created by Stored process to be used in entire PROJECT Process Flow ?

 

thanks in advance,

Thalla

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

A stored process is executed in a completely different context than your other project nodes. A stored process is executed in a stored process server instance, which runs on a generic userid (sassrv), and the environment there is cleaned up immediately after the STP has finished. Your Enterprise guide can only access macro variables defined in your workspace server, which runs on your userid and is persistent for the EG session (unless you terminate it yourself).

You can attach a user prompt to a code node, set macro variables from the prompt values in that code, and use those macro variables in conditions for the next nodes.

View solution in original post

1 REPLY 1
Kurt_Bremser
Super User

A stored process is executed in a completely different context than your other project nodes. A stored process is executed in a stored process server instance, which runs on a generic userid (sassrv), and the environment there is cleaned up immediately after the STP has finished. Your Enterprise guide can only access macro variables defined in your workspace server, which runs on your userid and is persistent for the EG session (unless you terminate it yourself).

You can attach a user prompt to a code node, set macro variables from the prompt values in that code, and use those macro variables in conditions for the next nodes.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 276 views
  • 0 likes
  • 2 in conversation