Desktop productivity for business analysts and programmers

Enterprise Guide Prompt issue

Reply
Occasional Contributor
Posts: 11

Enterprise Guide Prompt issue

Hello

 

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";

 

%end;

 

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 ?

 

Thanks

 

Colm

Super User
Posts: 19,167

Re: Enterprise Guide Prompt issue

Try removing the quotes from the string A12345. 

 

 

Occasional Contributor
Posts: 11

Re: Enterprise Guide Prompt issue

Sadly this does not work either

Occasional Contributor
Posts: 11

Re: Enterprise Guide Prompt issue

Hey again

 

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 ?

 

Thanks

 

Colm

Respected Advisor
Posts: 4,137

Re: Enterprise Guide Prompt issue

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.

Ask a Question
Discussion stats
  • 4 replies
  • 156 views
  • 0 likes
  • 3 in conversation