BookmarkSubscribeRSS Feed

[SAS 프로그래밍 고수 백승민] [MACRO] MACRO내용 확인 및 저장(%COPY)

Started ‎06-11-2020 by
Modified ‎06-11-2020 by
Views 345

* 라이브러리에 Macro 저장하는 예제와 저장된 Macro의 내용을 확인 하는 프로그램입니다.

libname test 'c:\';

* MACRO저장 라이브러리 지정;
options mstored sasmstore=test;

* MACRO생성후 소스 저장;
%macro BACK/store source;
  PROC PRINT DATA=SASHLEP.CLASS;
  RUN;
%mend;

 * 로그에 위의 MACRO 내용 확인;
%copy BACK/source;

 * SAS파일로 매크로 내용 저장;
%copy BACK/source OUT='C:\TEST1.SAS';

Contributors
Version history
Last update:
‎06-11-2020 03:51 AM
Updated by:

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Article Labels
Article Tags