Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mv_createwebservice.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mv_createwebservice macro
4
5 <h4> SAS Macros </h4>
6 @li mv_createwebservice.sas
7 @li mv_getjobcode.sas
8
9**/
10
11/**
12 * Test Case 1
13 * Send special char in a service
14 */
15
16filename testref temp;
17data _null_;
18 file testref;
19 put '01'x;
20run;
21%put TEST1: creating web service;
22%mv_createwebservice(
23 path=&mcTestAppLoc/temp/macros,
24 name=mv_createwebservice,
25 code=testref
26)
27%put TEST1: fetching web service code;
28%mv_getjobcode(
29 path=&mcTestAppLoc/temp/macros,
30 name=mv_createwebservice,
31 outref=compare
32)
33%put TEST1: checking web service code;
34data work.test_results;
35 length test_description $256 test_result $4 test_comments $256;
36 if _n_=1 then call missing (of _all_);
37 infile compare end=eof;
38 input;
39 if eof then do;
40 if _infile_='01'x then test_result='PASS';
41 else test_result='FAIL';
42 test_description="Creating web service with invisible character";
43 output;
44 stop;
45 end;
46run;