03-13-2014 11:14 AM
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
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.
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
8 QUIT; RUN;
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
03-13-2014 12:08 PM
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
03-13-2014 12:20 PM
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.
03-13-2014 12:30 PM
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
G:\ICQ\Pricing Quality\Projects\2013 EG Test Folder\gm_test in the macro var
03-13-2014 02:44 PM
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?
03-13-2014 03:09 PM
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?