[상세내용]
Batch 작업에서 처음으로 본 오류가 발생하여 원인파악을 문의 드립니다.
해당 프로그램 수정은 한번도 없었으며 평소에 잘 돌았던 코드이며, 오류메시지는 아래와 같습니다. WARNING: 명백한 매크로 PARSE_SAS_LOG 불러오기를 처리할 수 없습니다.
문장이 올바르지 않거나 적당한 순서에 사용되지 않았습니다. ERROR: SAS 시스템으로 매크로 라이브러리를 열지 못했습니다.
ERROR: 카탈로그 'WORK.SASMACR'(으)로부터 헤더 정보를 읽을 수 없습니다.
...
오류가 발생한 이후, 수작업으로 실행하니 정상적으로 Batch 작업이 완료 되었습니다.
[답변]
해당 현상에 대해 확인한 결과, 다수의 유사사례가 있었고 SAS에서는 공통적으로 아래와 같은 조치방법을 제시하고 있습니다.
이러한 현상은 backup program, antivirus program, encryption, or an indexing application(Google Desktop) 등의 3'rd party S/W 에 의해서 발생하는 것으로 확인되었습니다.
자세한 내용은 아래 내용 참고하시기 바랍니다.
This problem is likely caused by third party software.
In many cases it is a backup program, antivirus program, encryption, or an indexing application like Google Desktop that is accessing or touching the SAS temporary files while they are in use by SAS.
If a backup program or virus scan is running on an interval, that would explain why the problem is intermittent.
*To fix the lock, add SAS file extensions to the exclude list of the interfering application. You should exclude .lck, .sd2, .sc2, .SPDS, and .Sas*
--- CAUTION: take care when excluding non-temporary SAS data sets from a backup. SAS Recommends that backups occur when SAS is not running.
--- NOTE: the "star" in .Sas* This is to include:
.sas7bdat /* DATA */
.sas7butl /* UTILITY */
.sas7bput /* PUTILITY */
.sas7bcat /* CATALOG */
.sas7bpgm /* PROGRAM */
.sas7bndx /* INDEX */
.sas7bvew /* VIEW */
.sas7bacs /* ACCESS */
.sas7bmdb /* MDDB */
.sas7bfdb /* FDB */
.sas7bitm /* ITEMSTOR */
.sas7baud /* AUDIT */
.sas7bbak /* BACKUP */
.sas7bdmd /* DMDB */
.sas7bods /* SASODS */
.sas /* SAS program file */
*Depending on how the exclusion list works, it may be better to list each file type.
If the problem application is not a backup program or virus scan then the cause is still probably a third party program.
A way to determine which program(s) are causing this is to use Microsoft Sysinternals called Process Monitor.
You can download Process Monitor for free from Microsoft at, http://technet.microsoft.com/en- us/sysinternals/bb896645.aspx?PHPSESSID=d926
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Early bird rate extended! Save $200 when you sign up by March 31.