28%let testloc=%mf_getapploc(&_program)/tests/mv_jobwaitfor_test;
30filename testprog temp;
35%mv_createjob(path=&testloc,name=waitjob,code=testprog)
50 where method='GET' and rel='state';
51 uri=substr(uri,1,length(uri)-6);
54%mp_assertscope(SNAPSHOT)
55%mv_jobwaitfor(ALL,inds=work.plainuri,outds=work.jobstates1)
56%mp_assertscope(COMPARE)
59 iftrue=(%sysfunc(attrn(%sysfunc(open(work.jobstates1)),NOBS))=1),
60 desc=mv_jobwaitfor completed the job from a plain uri
65 call symputx('goturi',uri);
69 iftrue=(%symexist(goturi) and %length(&goturi)=55),
70 desc=outds uri is the plain 55-
char job uri
85 where method='GET' and rel='state';
88%mp_assertscope(SNAPSHOT)
89%mv_jobwaitfor(ALL,inds=work.statelink,outds=work.jobstates2)
90%mp_assertscope(COMPARE)
93 iftrue=(%sysfunc(attrn(%sysfunc(open(work.jobstates2)),NOBS))=1),
94 desc=mv_jobwaitfor completed the job from a state link
99 call symputx('goturi2',uri);
103 iftrue=(%symexist(goturi2) and %length(&goturi2)=55),
104 desc=outds uri from state link is also the plain 55-
char job uri