04-06-2017 09:50 AM
I have what I hope is a really simple enterprise guide issue for the experts. I am very new to programming prompt windows in EG so I may not fully understand your responses so stick with me.
I have created a simple prompt which is called Project_Prompt and there are 3 static values that the user will be presented with when the stored process runs.
When the stored process runs a window pops up with a pompt for the user to select a project, this value as I understand it is stored in &Project_Prompt and lets say the unformatted project number is A12345
I have added SAS Code into the prompt area that is basically macro code that says:
%if &project_code='A1234' %then %do:
libname source "my daya";
However while this code runs and there is no error in the log there is no new libname assigned. If i remove the macro code and just leave the libname assignment it works.
Am I referencing the prompt incorrectly ?
04-07-2017 10:08 AM
Ok...some sucess....I have it now satating in the log that it has assigned the libname test which is perfect and what I wanted...however if I refresh the SASApp server tree there is no test libname....any ideas ?
04-08-2017 07:05 AM
Is this running in the Workspace Server or the Stored Process Server context?
What you need to ensure is that your stored process executes in the same context than your SAS EG session as else the library assignment won't be avaialable in your SAS EG session.