23 %MACRO _getPgmDesc (i_pgmfile =
28 %IF NOT %sysfunc(fileexist(&i_pgmfile)) %THEN %RETURN;
31 infile
"&i_pgmfile" truncover end=eof;
33 retain inbrief 0 desc;
35 if upcase(line) =:
'\BRIEF' then
do;
36 line = left (substr(line,7));
39 if substr(line,1,1)=
'\' or line=
' ' or line=
'0D'x then inbrief=0;
41 if desc=
' ' then desc = line;
42 else desc = trim(desc) !!
' ' !! line;
45 if desc =
' ' then desc =
"&i_pgmfile.";
46 call symput(
"&r_desc", trimn(desc));