ERROR: Physical file does not exist when trying to run %mastatus(&_stpwork.status.txt); at the close of a Stored Process in SAS CI

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 5
Accepted Solution

ERROR: Physical file does not exist when trying to run %mastatus(&_stpwork.status.txt); at the close of a Stored Process in SAS CI

I'm getting this error now from running this code at the conclusion of my stored process in CI. Any thoughts?

Code:

%STPEND;

%mastatus(&_stpwork.status.txt);

Error:

ERROR: Physical file does not exist,

       /SASWork2/SAS_work224F00001217_server.com/SAS_work2EDF00001217_server.com/fcb34000-ba71-11e3-8001-343633313132/status.txt.


Accepted Solutions
Solution
‎04-02-2014 03:06 PM
Occasional Contributor
Posts: 5

Re: ERROR: Physical file does not exist when trying to run %mastatus(&_stpwork.status.txt); at the close of a Stored Process in SAS CI

SAS tech help got back to me. The issue was a disordering of the %STPEND and the %mastatus in the STP:

This is the proper order:

%MACount(&outtable);

%mastatus(&_stpwork.status.txt);

%STPEND;

View solution in original post


All Replies
Solution
‎04-02-2014 03:06 PM
Occasional Contributor
Posts: 5

Re: ERROR: Physical file does not exist when trying to run %mastatus(&_stpwork.status.txt); at the close of a Stored Process in SAS CI

SAS tech help got back to me. The issue was a disordering of the %STPEND and the %mastatus in the STP:

This is the proper order:

%MACount(&outtable);

%mastatus(&_stpwork.status.txt);

%STPEND;

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 465 views
  • 0 likes
  • 1 in conversation