Copying Objects into a New Document Store Using PROC DOCUMENT

After you have the hierarchy in the document store NEWSALDOC defined as shown in Figure 11.16, you can copy output objects from an existing ODS document to NEWSALDOC. For this example, we rerun the original PROC MEANS and PROC FREQ steps in the first example, but without SAS titles and without procedure titles, and then we save the document store in BASICSALDOC.

proc document name=work.newsaldoc(update); dir \work.newsaldoc\Central_America#1\Mexico#1; copy \work.basicsaldoc\Means#1\ByGroup2#1\Summary#1 to \work.newsaldoc\Central_America#1\Mexico#1; copy \work.basicsaldoc\Freq#1\ByGroup2#1\Table1#1\OneWayFreqs#1 to ^; run; dir; dir \US_Canada#1; dir Canada; copy \work.basicsaldoc\Means#1\ByGroup1#1\Summary#1 ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.