<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Printing 20 Datasets in a same library in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Printing-20-Datasets-in-a-same-library/m-p/72437#M20997</link>
    <description>Hi:&lt;BR /&gt;
  A clarification.  The name of the data set is DICTIONARY.MEMBERS if you're using SQL and SASHELP.VTABLE or VSTABLE if you're using a DATA step program. Building CALL EXECUTE statements will happen in 1 DATA step program, that's true. However, the statements (PROC PRINTS) that are built do not represent 1 program, but a series of 20 PROC PRINT programs or steps that are put into a program queue. The 1 program that builds the CALL EXECUTE statements will run, then the 20 PROC PRINTS will run, AFTER the entire DATA step has finished building all the CALL EXECUTE statments. &lt;BR /&gt;
&lt;BR /&gt;
There is an example of using CALL EXECUTE to build program code here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=17077䊵" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=17077䊵&lt;/A&gt;&lt;BR /&gt;
You would not need the conditional logic in that program.&lt;BR /&gt;
&lt;BR /&gt;
 Instead, you would search SASHELP views of the DICTIONARY tables and build your PROC PRINTS as illustrated. More information on SASHELP and DICTIONARY processing is described here:&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi26/p017-26.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi26/p017-26.pdf&lt;/A&gt; &lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/forum2007/235-2007.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2007/235-2007.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Wed, 04 Feb 2009 14:07:30 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-02-04T14:07:30Z</dc:date>
    <item>
      <title>Printing 20 Datasets in a same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Printing-20-Datasets-in-a-same-library/m-p/72434#M20994</link>
      <description>In  a library (Ex-Work). i have 20 Datasets .now i want to print all the datasets in that library at once.

Message was edited by: Michel_SAS</description>
      <pubDate>Wed, 04 Feb 2009 08:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Printing-20-Datasets-in-a-same-library/m-p/72434#M20994</guid>
      <dc:creator>R_Win</dc:creator>
      <dc:date>2009-02-04T08:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Printing 20 Datasets in a same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Printing-20-Datasets-in-a-same-library/m-p/72435#M20995</link>
      <description>Hi Michel.,&lt;BR /&gt;
&lt;BR /&gt;
If u want all the 20 data sets in a single dataset do as follows&lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
set sashelp.column &lt;BR /&gt;
     sashelp.company&lt;BR /&gt;
     ------------------&lt;BR /&gt;
     ------------------&lt;BR /&gt;
     ------------------;&lt;BR /&gt;
	run;&lt;BR /&gt;
	proc print;&lt;BR /&gt;
	run;&lt;BR /&gt;
&lt;BR /&gt;
 and if u want to 20 datasets in a permanent library and assign a library.</description>
      <pubDate>Wed, 04 Feb 2009 09:29:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Printing-20-Datasets-in-a-same-library/m-p/72435#M20995</guid>
      <dc:creator>venkatesh</dc:creator>
      <dc:date>2009-02-04T09:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Printing 20 Datasets in a same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Printing-20-Datasets-in-a-same-library/m-p/72436#M20996</link>
      <description>But if your tables don't have the same lay-out, you may wish to print them independently (but in the same program). You can use call execute from a data step that reads SASHELP.VMEMBER for instance.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Wed, 04 Feb 2009 11:14:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Printing-20-Datasets-in-a-same-library/m-p/72436#M20996</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2009-02-04T11:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Printing 20 Datasets in a same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Printing-20-Datasets-in-a-same-library/m-p/72437#M20997</link>
      <description>Hi:&lt;BR /&gt;
  A clarification.  The name of the data set is DICTIONARY.MEMBERS if you're using SQL and SASHELP.VTABLE or VSTABLE if you're using a DATA step program. Building CALL EXECUTE statements will happen in 1 DATA step program, that's true. However, the statements (PROC PRINTS) that are built do not represent 1 program, but a series of 20 PROC PRINT programs or steps that are put into a program queue. The 1 program that builds the CALL EXECUTE statements will run, then the 20 PROC PRINTS will run, AFTER the entire DATA step has finished building all the CALL EXECUTE statments. &lt;BR /&gt;
&lt;BR /&gt;
There is an example of using CALL EXECUTE to build program code here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=17077䊵" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=17077䊵&lt;/A&gt;&lt;BR /&gt;
You would not need the conditional logic in that program.&lt;BR /&gt;
&lt;BR /&gt;
 Instead, you would search SASHELP views of the DICTIONARY tables and build your PROC PRINTS as illustrated. More information on SASHELP and DICTIONARY processing is described here:&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi26/p017-26.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi26/p017-26.pdf&lt;/A&gt; &lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/forum2007/235-2007.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2007/235-2007.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 04 Feb 2009 14:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Printing-20-Datasets-in-a-same-library/m-p/72437#M20997</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-02-04T14:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Printing 20 Datasets in a same library</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Printing-20-Datasets-in-a-same-library/m-p/72438#M20998</link>
      <description>&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
 &lt;BR /&gt;
Michel_SAS &lt;BR /&gt;
 &lt;BR /&gt;
How would your printer cope with 20 datasets to print "at once"?&lt;BR /&gt;
 &lt;BR /&gt;
it wouldn't!&lt;BR /&gt;
It would print one at a time&lt;BR /&gt;
unless, perhaps, you have 20 printers, but I don't expect so.&lt;BR /&gt;
 &lt;BR /&gt;
Much more likely ~ I expect you want 20 print files, or perhaps 20 worksheets in an excel workbook?&lt;BR /&gt;
 &lt;BR /&gt;
Even thought there is a PROC CONTENTS feature that conveniently reports on the structure of _all_ data sets in a SAS library, there is no corresponding feature of PROC PRINT to print the contents of all data sets in a library. &lt;BR /&gt;
I like the possibility of drag-n-drop support in SAS Enterprise Guide (SEG) providing a quick delivery of multiple data sets into excel or some other output destination, but since SEG is not my field of expertise I can only recommend you pose your question on that forum at &lt;A href="http://support.sas.com/forums/forum.jspa?forumID=10" target="_blank"&gt;http://support.sas.com/forums/forum.jspa?forumID=10&lt;/A&gt; .&lt;BR /&gt;
 &lt;BR /&gt;
In the "SAS Macro Facility, Data Step and SAS Language Elements" umbrella forum at &lt;A href="http://support.sas.com/forums/forum.jspa?forumID=31" target="_blank"&gt;http://support.sas.com/forums/forum.jspa?forumID=31&lt;/A&gt; enthusiasts might package the printing of multiple data sets into a macro of some sort to achieve what you seek. &lt;BR /&gt;
 &lt;BR /&gt;
Even if SEG functionality supports your objective of conveniently "printing" all data sets at "once", I wouldn't refer to it as being achieved "at once" by a SAS Procedure&lt;BR /&gt;
.              ( so, sorry,  wrong forum :).&lt;BR /&gt;
 &lt;BR /&gt;
Peter C</description>
      <pubDate>Wed, 04 Feb 2009 16:00:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Printing-20-Datasets-in-a-same-library/m-p/72438#M20998</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-04T16:00:09Z</dc:date>
    </item>
  </channel>
</rss>

