SAS 过程模板文本换行符



我的目标是通过SAS生成fdf输出,以便我可以将其导入Adobe。

不幸的是,我的proc模板生成的文件"template.fdf"只是单行。但是,我需要在每个 put 语句之后添加新的代码行。有没有办法插入这个?

提前谢谢你

PROC TEMPLATE;
DEFINE TAGSET template.FDF / STORE = SASUSER.TEMPLAT; 
DEFINE EVENT DOC_BODY; 
START:
put "%FDF-1.2 "; <=== new breakline in the document
PUT "text"; <=== new breakline in the document
put "<</Root 1 0 R>> ";<=== new breakline in the document
FINISH:        
PUT "%%EOF";
END;END;
RUN;
FILENAME OUT "C:..template.FDF"; 
ODS LISTING CLOSE; 
ODS MARKUP BODY = OUT 
TAGSET = template.FDF; 
ODS MARKUP CLOSE; ODS LISTING;

PUT 语句上的 NL 选项

put "%FDF-1.2 " nl;

从示例 3 开始 模板过程:创建标记语言标记集

最新更新