Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mfv_getpathuri.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mfv_getpathuri macro function
4
5 <h4> SAS Macros </h4>
6 @li mf_uid.sas
7 @li mfv_getpathuri.sas
8 @li mp_assert.sas
9 @li mv_createfile.sas
10
11**/
12
13options mprint sgen;
14
15%let file=%mf_uid();
16
17/* create a folder */
18filename somefile temp;
19data _null_;
20 file somefile;
21 put 'hello testings';
22run;
23%let path=&mcTestAppLoc/temp;
24%mv_createfile(path=&path, name=&file..txt,inref=somefile)
25
26
27%mp_assert(
28 iftrue=(%mfv_existfile(&path/&file..txt)=1),
29 desc=Check if created file exists
30)
31
32%mp_assert(
33 iftrue=(%length(%mfv_getpathuri(&path/&file..txt))>0),
34 desc=Check that a URI was returned
35)