Thank you, @Tyrel Marak. That is precisely what I ended up doing yesterday:
EVAL "
<<F(SAVEDLISTS,BEG.DT000,1)>>;
<<F(SAVEDLISTS,END.DT000,1)>>;
SUBR('S.GET.SCS.ID', '', @ID, @1, @2, 'I':@VM:'E', 'N', 'Y');
SUBR('S.TRANS','STUDENT.ACAD.CRED',@3,'STC.SCS.COURSE.SECTION','X');
SUBR('S.TRANS','COURSE.SECTIONS',@4,'SEC.COURSE.LEVELS','X');
CONVERT(@SM,'|', @5);
SUBR('-INDEXS',@6,'1400',1);
SUBR('-INDEXS',@6,'9101',1);
SUBR('-GTS',@7,REUSE(0));
SUBR('-GTS',@8,REUSE(0));
SUM(SUBR('-ORS',@9,@10));
DCOUNT(@3,@VM);
IF @11 EQ 0 THEN 'NO DEU' ELSE (IF @11 EQ @12 THEN 'ALL DEU' ELSE 'SOME DEU')
"
And I'll mention something else that had me stumped for about half-hour. That is, I initially had the EVAL expression wrapped in single quotes. This was fine until I added that last statement and the system returned a syntax error message. Stepping back and taking a broader view, I noticed that the system wrapped @1 and @2 in single quotes, so I'm surprised the error didn't appear earlier. In any case, another take away for me was wrap your EVAL expression in double quotes.