18 call symput(
'lf_libds',
'work.table'||
byte(10));
20%mp_assertscope(SNAPSHOT)
21%put mf_islibds LF result: %mf_islibds(%superq(lf_libds));
22%mp_assertscope(COMPARE,
23 desc=mf_islibds does not leak macro variables,
24 outds=work.test_results
29 iftrue=(%mf_islibds(&lf_libds)=1),
30 desc=Unquoted trailing LF is stripped from the macro argument,
31 outds=work.test_results
36 iftrue=(%mf_islibds(%superq(lf_libds))=0),
37 desc=Reject a macro-quoted libds ending in LF,
38 outds=work.test_results
43 %mf_islibds(work.something)=1
45 desc=%str(Checking mf_islibds(work.something)=1),
46 outds=work.test_results
53 desc=%str(Checking mf_islibds(nolib)=0),
54 outds=work.test_results
59 %mf_islibds(badlibref.ds)=0
61 desc=%str(Checking mf_islibds(badlibref.ds)=0),
62 outds=work.test_results
69 desc=%str(Checking mf_islibds(w.t.f)=0),
70 outds=work.test_results
75 %mf_islibds(abcdefgh.ds)=1
77 desc=Accept 8-character libref,
78 outds=work.test_results
83 %mf_islibds(1lib.ds)=0
85 desc=Reject libref starting with a digit,
86 outds=work.test_results
91 %mf_islibds(work.1data)=0
93 desc=Reject dataset name starting with a digit,
94 outds=work.test_results
99 %mf_islibds(work.st_mods)=1
101 desc=Accept underscore in dataset name,
102 outds=work.test_results
107 %mf_islibds(lib_ref.data)=1
109 desc=Accept underscore in libref,
110 outds=work.test_results
115 %mf_islibds(WORK.DATA)=1
117 desc=Accept uppercase libref and dataset name,
118 outds=work.test_results
123 %mf_islibds(w.abcdefghijklmnopqrstuvwxyz123456)=1
125 desc=Accept 32-character dataset name,
126 outds=work.test_results
131 %mf_islibds(w.abcdefghijklmnopqrstuvwxyz1234567)=0
133 desc=Reject 33-character dataset name,
134 outds=work.test_results