현재 자동화 된 SAS 보고서를 설정하려고합니다. 나는 Windows 작업 스케줄러에 예약됩니다 자동화 부분에 대해 다음 테스트 배치 프로그램을 작성했습니다 :"ods html text ="를 사용하여 배치 SAS 프로그램의 출력 문서에 html 삽입
"C:\SAS Location\sas.exe" -sysin "C:\SAS program location\test_report.sas" -LOG "C:\Log location\test_report.log" -PRINT "C:\Output Location\test_report.lst"
다음과 같이 다음과 같은 기본 보고서는 시작 :
%let date = %sysfunc(date(),worddate.);
ods graphics on;
title;
ods html path='C:/folder for HTML file'
gpath='C:/folder for images'
body="dental_screen_report_&sysdate..htm"
headtext="<title>Dental Screening Report &date</title>"
style=htmlblue;
ods html text="
<table style='width:100%'>
<tr style='text-align:center'>
<td><a href='C:/Location of PDF version of report/dental_screen_report_&sysdate..pdf'>Download PDF</a></td>
</tr>
</table>
</br>
";
*proc template code is placed in here to generate report.
ods html close;
내가 직접 코드를 실행 SAS에서 HTML에 대한 링크가 삽입 된 HTML 코드가 제대로 작동하지만 배치 프로그램을 실행하면 html이 올바르게 인코딩되지 않은 것처럼 보입니다 (아래 참조). 나머지 보고서는 괜찮습니다. 더 이상 작동하지 않는 PDF 링크 일뿐입니다.
<div class="l usertext"> <table style='width:100%'> <tr style='text-align:center'> <td><a href='C:/Users/GarrettWeaver/desktop/urgent/pdf/dental_screen_report_26MAR14.pdf'>Download PDF</a></td> </tr> </table> </br></div>
일괄 프로그램을 통해 올바르게 작동하는 법을 잘 모르겠습니다. SAS 프로그램 내에 삽입하는 대신 SAS 외부에 링크를 추가하는 것이 더 낫지 않습니까?
의견을 보내주세요.
문제를 해결할 수 있었고 공백이나 문자를 반환 할 수 없었습니다. – skijunkie