29%let testloc=%mf_getapploc(&_program)/tests/mv_jobwaitfor_test;
31filename testprog temp;
36%mv_createjob(path=&testloc,name=waitjob,code=testprog)
51 where method='GET' and rel='state';
52 uri=substr(uri,1,length(uri)-6);
55%mp_assertscope(SNAPSHOT)
56%mv_jobwaitfor(ALL,inds=work.plainuri,outds=work.jobstates1)
57%mp_assertscope(COMPARE)
60 iftrue=(%sysfunc(attrn(%sysfunc(open(work.jobstates1)),NOBS))=1),
61 desc=mv_jobwaitfor completed the job from a plain uri
66 call symputx('goturi',uri);
70 iftrue=(%symexist(goturi) and %length(&goturi)=55),
71 desc=outds uri is the plain 55-
char job uri
86 where method='GET' and rel='state';
89%mp_assertscope(SNAPSHOT)
90%mv_jobwaitfor(ALL,inds=work.statelink,outds=work.jobstates2)
91%mp_assertscope(COMPARE)
94 iftrue=(%sysfunc(attrn(%sysfunc(open(work.jobstates2)),NOBS))=1),
95 desc=mv_jobwaitfor completed the job from a state link
100 call symputx('goturi2',uri);
104 iftrue=(%symexist(goturi2) and %length(&goturi2)=55),
105 desc=outds uri from state link is also the plain 55-
char job uri