mirror of
https://github.com/sasjs/core.git
synced 2026-04-10 18:33:14 +00:00
feat: adding ISLIB validation to mp_validatecol macro
This commit is contained in:
@@ -129,4 +129,30 @@ run;
|
||||
desc=Test4 - ISFORMAT,
|
||||
test=EQUALS 6,
|
||||
outds=work.test_results
|
||||
)
|
||||
|
||||
/**
|
||||
* Test 5 - ISLIB
|
||||
*/
|
||||
data test5;
|
||||
infile datalines4 dsd;
|
||||
input;
|
||||
inf=_infile_;
|
||||
%mp_validatecol(inf,ISLIB,islib)
|
||||
if islib=1;
|
||||
datalines4;
|
||||
some
|
||||
!lib
|
||||
%abort
|
||||
definite
|
||||
2fail
|
||||
nineletrs
|
||||
.failalso
|
||||
_valid
|
||||
;;;;
|
||||
run;
|
||||
%mp_assertdsobs(work.test5,
|
||||
desc=Testing ISLIB,
|
||||
test=EQUALS 3,
|
||||
outds=work.test_results
|
||||
)
|
||||
Reference in New Issue
Block a user