<?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 Producing a report for each record in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Producing-a-report-for-each-record/m-p/72053#M15553</link>
    <description>I produce a weekly SAS data set for which I would like to print one record per page for the staff member who will be using it.  I'd like it to look something like this:&lt;BR /&gt;
&lt;BR /&gt;
Page 1:&lt;BR /&gt;
ID #: &lt;BR /&gt;
XXXXXX&lt;BR /&gt;
Name:  &lt;BR /&gt;
XXXXX, XXX&lt;BR /&gt;
City: &lt;BR /&gt;
XXXXXXXX&lt;BR /&gt;
&lt;BR /&gt;
Page 2:&lt;BR /&gt;
ID #: &lt;BR /&gt;
YYYYYYY&lt;BR /&gt;
Name:  &lt;BR /&gt;
YYYYY, YYY&lt;BR /&gt;
City: &lt;BR /&gt;
YYYYY&lt;BR /&gt;
&lt;BR /&gt;
I know I can use the Reports function in Microsoft Access or Mail Merge in MS Word, but is there a way to get SAS to do this?  I tried using PROC PRINT with a BY statement.  However, the staff member specifically asked for it not to be a line listing, and I haven't been able to get PROC PRINT to give me anything else.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!

I just realized that this is probably in the wrong forum.  I'd welcome any help, but I'm going to repost it in the procedures forum.&lt;BR /&gt;
    &lt;BR /&gt;
Message was edited by: JS2008</description>
    <pubDate>Mon, 29 Mar 2010 19:10:08 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-03-29T19:10:08Z</dc:date>
    <item>
      <title>Producing a report for each record</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Producing-a-report-for-each-record/m-p/72053#M15553</link>
      <description>I produce a weekly SAS data set for which I would like to print one record per page for the staff member who will be using it.  I'd like it to look something like this:&lt;BR /&gt;
&lt;BR /&gt;
Page 1:&lt;BR /&gt;
ID #: &lt;BR /&gt;
XXXXXX&lt;BR /&gt;
Name:  &lt;BR /&gt;
XXXXX, XXX&lt;BR /&gt;
City: &lt;BR /&gt;
XXXXXXXX&lt;BR /&gt;
&lt;BR /&gt;
Page 2:&lt;BR /&gt;
ID #: &lt;BR /&gt;
YYYYYYY&lt;BR /&gt;
Name:  &lt;BR /&gt;
YYYYY, YYY&lt;BR /&gt;
City: &lt;BR /&gt;
YYYYY&lt;BR /&gt;
&lt;BR /&gt;
I know I can use the Reports function in Microsoft Access or Mail Merge in MS Word, but is there a way to get SAS to do this?  I tried using PROC PRINT with a BY statement.  However, the staff member specifically asked for it not to be a line listing, and I haven't been able to get PROC PRINT to give me anything else.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!

I just realized that this is probably in the wrong forum.  I'd welcome any help, but I'm going to repost it in the procedures forum.&lt;BR /&gt;
    &lt;BR /&gt;
Message was edited by: JS2008</description>
      <pubDate>Mon, 29 Mar 2010 19:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Producing-a-report-for-each-record/m-p/72053#M15553</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-29T19:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Producing a report for each record</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Producing-a-report-for-each-record/m-p/72054#M15554</link>
      <description>Alas, no quick way of doing this with a procedure occurs to me (which is not to say one doesn't exist).&lt;BR /&gt;
&lt;BR /&gt;
You can roll your own with a data _null_ step;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   set your_list_of_names;&lt;BR /&gt;
   page + 1;&lt;BR /&gt;
   put "Page:" page/&lt;BR /&gt;
         "ID #:"/&lt;BR /&gt;
         idnum/&lt;BR /&gt;
         "Name:"/&lt;BR /&gt;
         last "," first/&lt;BR /&gt;
         "City:"/&lt;BR /&gt;
         cityName;&lt;BR /&gt;
put _page_;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
The "/" moves to a new line; the put _page_ forces a page eject.  Elaborations based on the n=ps option of the file statement and the put #pagenum&lt;BR /&gt;
put statement are possible.&lt;BR /&gt;
&lt;BR /&gt;
Jonathan&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; I produce a weekly SAS data set for which I would&lt;BR /&gt;
&amp;gt; like to print one record per page for the staff&lt;BR /&gt;
&amp;gt; member who will be using it.  I'd like it to look&lt;BR /&gt;
&amp;gt; something like this:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Page 1:&lt;BR /&gt;
&amp;gt; ID #: &lt;BR /&gt;
&amp;gt; XXXXXX&lt;BR /&gt;
&amp;gt; Name:  &lt;BR /&gt;
&amp;gt; XXXXX, XXX&lt;BR /&gt;
&amp;gt; City: &lt;BR /&gt;
&amp;gt; XXXXXXXX&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Page 2:&lt;BR /&gt;
&amp;gt; ID #: &lt;BR /&gt;
&amp;gt; YYYYYYY&lt;BR /&gt;
&amp;gt; Name:  &lt;BR /&gt;
&amp;gt; YYYYY, YYY&lt;BR /&gt;
&amp;gt; City: &lt;BR /&gt;
&amp;gt; YYYYY&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I know I can use the Reports function in Microsoft&lt;BR /&gt;
&amp;gt; Access or Mail Merge in MS Word, but is there a way&lt;BR /&gt;
&amp;gt; to get SAS to do this?  I tried using PROC PRINT with&lt;BR /&gt;
&amp;gt; a BY statement.  However, the staff member&lt;BR /&gt;
&amp;gt; specifically asked for it not to be a line listing,&lt;BR /&gt;
&amp;gt; and I haven't been able to get PROC PRINT to give me&lt;BR /&gt;
&amp;gt; anything else.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Thanks!&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I just realized that this is probably in the wrong&lt;BR /&gt;
&amp;gt; forum.  I'd welcome any help, but I'm going to repost&lt;BR /&gt;
&amp;gt; it in the procedures forum.&lt;BR /&gt;
&amp;gt;     &lt;BR /&gt;
&amp;gt; age was edited by: JS2008</description>
      <pubDate>Tue, 30 Mar 2010 17:04:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Producing-a-report-for-each-record/m-p/72054#M15554</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-30T17:04:52Z</dc:date>
    </item>
  </channel>
</rss>

