25 %MACRO _sasunit_getPgmDesc (
31 %IF NOT %sysfunc(fileexist(&i_pgmfile)) %THEN %RETURN;
34 infile
"&i_pgmfile" truncover end=eof;
36 retain inbrief 0 desc;
38 if upcase(line) =:
'\BRIEF' then
do;
39 line = left (substr(line,7));
42 if substr(line,1,1)=
'\' or line=
' ' or line=
'0D'x then inbrief=0;
44 if desc=
' ' then desc = line;
45 else desc = trim(desc) !!
' ' !! line;
47 if eof then call symput(
"&r_desc", trimn(desc));
50 %MEND _sasunit_getPgmDesc;