Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mv_deletejes.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mv_deletejes macro
4
5 <h4> SAS Macros </h4>
6 @li mp_assert.sas
7 @li mp_assertscope.sas
8 @li mv_createjob.sas
9 @li mv_deletejes.sas
10 @li mv_getfoldermembers.sas
11
12**/
13
14%let path=&mcTestAppLoc/jobs;
15%let name=deletejob;
16
17filename ft15f001 temp;
18data _null_;
19 file ft15f001;
20 put 'data _null_; run;';
21run;
22%mv_createjob(path=&path, name=&name)
23
24%mp_assertscope(SNAPSHOT)
25%mv_deletejes(path=&path, name=&name)
26%mp_assertscope(COMPARE,
27 desc=mv_deletejes does not leak scope,
28 ignorelist=MC6_JADP1LEN MC6_JADP2LEN MC6_JADP3LEN MC6_JADPNUM MC6_JADVLEN,
29 outds=work.test_results
30)
31
32/* the listing is the oracle, and it also covers the empty-folder path. The
33 assertion is scoped to this job's name rather than the row count, so it says
34 nothing about anything else that lands in the folder */
35%mv_getfoldermembers(root=&path, outds=work.afterdelete)
36%let stillthere=0;
37data _null_;
38 set work.afterdelete;
39 if upcase(name)=upcase("&name") then call symputx('stillthere',1,'l');
40run;
41%mp_assert(
42 iftrue=(&stillthere=0),
43 desc=Check the job definition is gone
44)