BookmarkSubscribeRSS Feed
glmsas
Calcite | Level 5

Hello, i create a project and added a prompt window at the first object to run.

it ask for several items. in the middle there's one line that shows listin prompt with a folder/file location

sas1.jpg

here's the log from after this prompt ran with the copy files to/from SAS server tool that Chris wrote.

the folder in blue below is not what is in the prompt window above.

running a %put _user_; show me this in the macro var

GLOBAL LISTIN G:\ICQ\Pricing Quality\Projects\2013 EG Test Folder\gm_test

which is what the macro resolvs to below.

i've hit the reset button at top right and re-entered the prompts and still not getting my current line entry above.

Suggestions?

thanks

gary

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %let _egcopySource = &listin;
4          %let _egcopyTarget = &work278_location;
5          %put Source files resolve to &_egcopySource;
Source files resolve to G:\ICQ\Pricing Quality\Projects\2013 EG Test Folder\gm_test
6          %put Target folder resolves to &_egcopyTarget;
Target folder resolves to /users/work278/nbk1hhk/test
7         
8          QUIT; RUN;
9         

NOTE: Source file resolved to G:\ICQ\Pricing Quality\Projects\2013 EG Test Folder\gm_test
NOTE: Target folder resolved to /users/work278/nbk1hhk/test

ERROR: File G:\ICQ\Pricing Quality\Projects\2013 EG Test Folder\gm_test does not exist on FF01FAF2C0774













































9 REPLIES 9
Reeza
Super User

Are the other variables changing? If so you most likely set it somewhere else in the code, for testing probably?

glmsas
Calcite | Level 5

no this is the first object in the project.

i did run the prompt window several times before and had that directory in there at one time.

But on subsequnent runs the macro var never got updated.

and that seems to be the problem

Reeza
Super User

Add some %put statements at various points to see your variable status, directly after the prompt, before being used and any other place.

This will allow you to narrow down where to look.

Also, check the scope, is it global or local variable.

glmsas
Calcite | Level 5

see the first post for the log from that prompt from that object.

the listin in the prompt window does not match what is in the log macro resolution

G:\ICQ\Pricing Quality\Projects\amn.xlsx              in the prompt window

and

G:\ICQ\Pricing Quality\Projects\2013 EG Test Folder\gm_test   in the macro var

glmsas
Calcite | Level 5

ok, i put a data _null_; program before the Copy object and put the Prompts in that Program and then linked it to the Copy and the macros resolved fine.

So it doesn't look like the Prompt macro timing is not availible in the step that uses it?

gary

Reeza
Super User

When you defined your macro variable did you set it as global?

See the screenshot from Chris@SAS

jakarman
Barite | Level 11

How did you define the prompts in the EG-project:
- which options (global?)

- which macro-vars for each prompt (not being duplicated?)

- as running on Unix (/users/work) any settings for parallel execution activated? 

---->-- ja karman --<-----
glmsas
Calcite | Level 5

yes the use though out project box was checked for all

Reeza
Super User

Contact tech support then. 

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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