<?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: Text above columns in proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262121#M15570</link>
    <description>&lt;P&gt;I posted a screen shot of the output with the data and variable names in red right there.&amp;nbsp; I'll attach it again for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I think that's part of the problem.&amp;nbsp; I think people are assuming that "patient profile" is code for someone's name, but it's not.&amp;nbsp; That the fields listed under variable actually contain data, but they ARE the data.&amp;nbsp; The screenshot is verbatim what is in my dataset that i need to show up.&amp;nbsp; It's one dataset with proc contents meta data for about 50+ tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one dataset with 9 fields in it and i need to place them all in a single report.&amp;nbsp; That's it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see where "the same item appearing multiple times" is.&amp;nbsp; I have 9 fields all with unique names.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12435iA81B284394A54BC7/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="ProcReport.png" title="ProcReport.png" /&gt;</description>
    <pubDate>Thu, 07 Apr 2016 16:07:55 GMT</pubDate>
    <dc:creator>MeganE</dc:creator>
    <dc:date>2016-04-07T16:07:55Z</dc:date>
    <item>
      <title>Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/261844#M15543</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to use proc report and get text outside of the table?&amp;nbsp; The output needs to (vaguely) look like this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PATIENTS: Patient Profile&lt;BR /&gt;Contains one record per patient in the database, and gives basic demographic and related data.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Variable &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Type &amp;nbsp;&amp;nbsp; &amp;nbsp;Length &amp;nbsp;&amp;nbsp; &amp;nbsp;Format &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Comment&lt;BR /&gt;ADRIND &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;num &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;8 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;This patient is included in the cohort&lt;BR /&gt;ADRINDTXT &amp;nbsp;&amp;nbsp; &amp;nbsp;char &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;1 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$ADRINDT. &amp;nbsp;&amp;nbsp; &amp;nbsp;Reason this patient was not included in the cohort&lt;BR /&gt;BORN &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;num &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;8 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;MMDDYY10. &amp;nbsp;&amp;nbsp; &amp;nbsp;Date of Birth&lt;/P&gt;&lt;P&gt;[blah blah more meta data...]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;I have the table grid worked out, but not the text above it, which is three variables:&lt;/P&gt;&lt;P&gt;[name] : [Desc1]&lt;/P&gt;&lt;P&gt;[Desc2]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code i have so far:&lt;/P&gt;&lt;P&gt;ods listing close;&lt;BR /&gt;ods pdf file="&amp;amp;path.AppendixB.pdf";&lt;BR /&gt;proc report data=Formats3 nowd headline headskip wrap center;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;column name desc1 desc2 variable type length format comment;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;define variable / width=12 "Variable";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;define type &amp;nbsp;&amp;nbsp; &amp;nbsp;/ width=9 "Type";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;define length&amp;nbsp;&amp;nbsp; &amp;nbsp;/ width=16 "Length";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;define format&amp;nbsp;&amp;nbsp; &amp;nbsp;/ width=254 "Format";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;define comment&amp;nbsp;&amp;nbsp; &amp;nbsp;/ width=254 "Comment";&lt;BR /&gt;run;&lt;BR /&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Megan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 16:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/261844#M15543</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2016-04-06T16:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/261851#M15544</link>
      <description>&lt;P&gt;From your post I can't tell whether you want Proc Contents output as part of your report or not. Could you post an example of what you actually want this to look like. Dummy data is fine but since your question involves layout issues then we need an actual layout. An example dataset would also help to test code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also are the values you indicate with :&lt;/P&gt;
&lt;P&gt;[name] : [Desc1]&lt;/P&gt;
&lt;P&gt;[Desc2]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may be that By group processing with Name Desc1 and Desc2 would work as there are some controls available for by values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 17:17:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/261851#M15544</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-06T17:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/261854#M15545</link>
      <description>&lt;P&gt;I did post what i want it to look like:&lt;/P&gt;&lt;P&gt;Using variable names, it's:&lt;/P&gt;&lt;P&gt;[name]: [desc1]&lt;/P&gt;&lt;P&gt;[desc2]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Headers:) Variable &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Type &amp;nbsp;&amp;nbsp; &amp;nbsp;Length &amp;nbsp;&amp;nbsp; &amp;nbsp;Format &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; Comment&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Variable] &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; [Type]&amp;nbsp;&amp;nbsp; [Length]&amp;nbsp;&amp;nbsp;&amp;nbsp; [Format]&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;[Comment]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output looks like:&lt;/P&gt;&lt;P&gt;PATIENTS: Patient Profile&lt;BR /&gt;Contains one record per patient in the database, and gives basic demographic and related data.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Variable &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Type &amp;nbsp;&amp;nbsp; &amp;nbsp;Length &amp;nbsp;&amp;nbsp; &amp;nbsp;Format &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Comment&lt;BR /&gt;ADRIND &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;num &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;8 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;This patient is included in the cohort&lt;BR /&gt;ADRINDTXT &amp;nbsp;&amp;nbsp; &amp;nbsp;char &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;1 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$ADRINDT. &amp;nbsp;&amp;nbsp; &amp;nbsp;Reason this patient was not included in the cohort&lt;BR /&gt;BORN &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;num &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;8 &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;MMDDYY10. &amp;nbsp;&amp;nbsp; &amp;nbsp;Date of Birth&lt;/P&gt;&lt;P&gt;[blah blah more meta data...]&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 17:21:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/261854#M15545</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2016-04-06T17:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/261862#M15546</link>
      <description>&lt;P&gt;Maybe proc report isn't the way to go??&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 17:33:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/261862#M15546</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2016-04-06T17:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/261876#M15548</link>
      <description>&lt;P&gt;Couple of thoughts...&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Use &lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473628.htm" target="_self"&gt;LINE statement&lt;/A&gt;s in a &lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473626.htm" target="_self"&gt;COMPUTE BEFORE&lt;/A&gt; block.&lt;/LI&gt;
&lt;LI&gt;Use &lt;A href="http://support.sas.com/documentation/cdl/en/odsug/67921/HTML/default/viewer.htm#p14gx25pepks6dn1q9m7vkq3gfoi.htm" target="_self"&gt;ODS TEXT=&lt;/A&gt; or&lt;A href="http://support.sas.com/documentation/cdl/en/odsproc/67922/HTML/default/viewer.htm#p01vqfrzpxj3bgn1x9elf98takez.htm" target="_self"&gt; PROC ODSTEXT&lt;/A&gt; to create the text above.&lt;/LI&gt;
&lt;LI&gt;Create two PROC REPORT tables, the first one with the text above. Use &lt;A href="http://support.sas.com/documentation/cdl/en/odsug/67921/HTML/default/viewer.htm#p06ji2uhvayhq5n1eik2z2rf2ga8.htm" target="_self"&gt;ODS LAYOUT&lt;/A&gt; to print the tables with no space between them. You'll have to use some care to make both tables the same width.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Also, those WIDTH= options don't work when you're creating PDF output. Instead, use the &lt;A href="http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/viewer.htm#a002972093.htm" target="_self"&gt;WIDTH= style attribute&lt;/A&gt;&amp;nbsp;in a STYLE= option on the DEFINE statements.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 18:06:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/261876#M15548</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2016-04-06T18:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/261900#M15549</link>
      <description>&lt;P&gt;Thanks, but it doesn't look like i can use variable names in the text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have three fields:&lt;/P&gt;&lt;P&gt;Name - dataset name&lt;/P&gt;&lt;P&gt;Desc1 - a short description of the dataset.&lt;/P&gt;&lt;P&gt;Desc2 - a longer description of the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the content of those three fields above each of the tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And thanks/sorry, but i have about 5 minutes experience with proc report.&amp;nbsp; I don't know how to do a compute block or line statement or where to even put them in the code that i already have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just need to display the contents one dataset that contains table description information and proc contents info.&amp;nbsp; And it's not looking like proc report is the best way for me to do it.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 19:04:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/261900#M15549</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2016-04-06T19:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/261959#M15550</link>
      <description>&lt;PRE&gt;
Not sure. What kind of report are you looking for ? Post a picture to display it .
Maybe you need NAMED option :


proc report data=Formats3 nowd headline headskip wrap center   named  ;


&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Apr 2016 01:18:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/261959#M15550</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-04-07T01:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262041#M15561</link>
      <description>&lt;P&gt;This is the current output.&amp;nbsp; I created it through a data null with put statements.&amp;nbsp; *If* it can be done through proc report, it might be easier.&amp;nbsp; The put statements and word wrapping and junk is a p.i.t.a.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to attach a photo.&amp;nbsp; The words in red are the variable names from the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get variable, type, length, format, and comment through proc report, but i cannot get category, name, desc1, or desc2 in those positions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12431i5E8CD5A0E7267ED2/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="ProcReport.png" title="ProcReport.png" /&gt;</description>
      <pubDate>Thu, 07 Apr 2016 11:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262041#M15561</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2016-04-07T11:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262094#M15563</link>
      <description>Hi, In addition to BallardW's suggestion just a few comments -- headline, headskip, wrap and width= are ignored by PDF, as they are LISTING only syntax.&lt;BR /&gt;&lt;BR /&gt;In addition, generally for what you describe (a TABLE for each patient), many people would use COMPUTE BEFORE _PAGE_ as an alternative to BY group processing. I believe there are some previous postings that show the use of both methods of getting extra information on the report.&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
      <pubDate>Thu, 07 Apr 2016 15:03:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262094#M15563</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-04-07T15:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262095#M15564</link>
      <description>Thanks, but i don't have the necessary foundation in proc report in order to be able to adapt code written for something else, for what i need to do.</description>
      <pubDate>Thu, 07 Apr 2016 15:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262095#M15564</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2016-04-07T15:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262098#M15565</link>
      <description>&lt;P&gt;If someone actually wants to put in the compute stuff whereever it goes so that i can display the name, desc1, and desc2 variables in the right place, i'd be grateful.&amp;nbsp; But i don't have a clue how to work it in where it needs to go.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;BR /&gt;ods pdf file="&amp;amp;path.AppendixB.pdf";&lt;BR /&gt;proc report data=Formats3 nowd headline headskip wrap center;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;column name desc1 desc2 variable type length format comment;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;define variable / width=12 "Variable";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;define type &amp;nbsp;&amp;nbsp; &amp;nbsp;/ width=9 "Type";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;define length&amp;nbsp;&amp;nbsp; &amp;nbsp;/ width=16 "Length";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;define format&amp;nbsp;&amp;nbsp; &amp;nbsp;/ width=254 "Format";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;define comment&amp;nbsp;&amp;nbsp; &amp;nbsp;/ width=254 "Comment";&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;M&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 15:22:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262098#M15565</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2016-04-07T15:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262102#M15566</link>
      <description>&lt;P&gt;Here is an approach that might help. Since the key bit appears to be that you have the name and descriptions about a data set in another set the code below:&lt;/P&gt;
&lt;P&gt;1) creates an example data set to work with&lt;/P&gt;
&lt;P&gt;2) creates a control dataset with some of the elements you describe&lt;/P&gt;
&lt;P&gt;3) uses the control dataset to put the header elements before table output using Call Execute&lt;/P&gt;
&lt;P&gt;4) uses existing SAS maintained meta data to extract the remainder of the data elements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This approach would probably work best if your "comment" field actually is assigned as the variable label.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data work.class;
   set SASHELP.Class;
   format age f2. height 4.1 weight 5.1 Sex $1. Name $10.; 
   Label 
      Age='Age at measure'
      Height='Height in inches'
      weight='Weight in pounds'
      Sex = 'Gender'
      Name= 'Student name'
   ;
run;
   

data RepControl;
   informat dsname $32. libname $8. desc1 desc2 category $50.;
   infile datalines dlm=',';
   input dsname libname desc1 desc2 category;
   dsname=upcase(dsname);
   libname=upcase(libname);
datalines;
CLASS,Work,Student height and weight,Contains one record per student, Example Data
;
run;


ods pdf file="c:\somepath\trial.pdf";
data _null_;
   set RepControl;
   length str $ 200;
   str= catx('"',"ODS Text=",Category,";");
   Call Execute(str);

   str = catx(": ",Dsname,Desc1);
   str= catx('"',"ODS Text=",Str,";");
   Call Execute(str);

   str=catx('"',"ODS Text=",Desc2,";");
   Call Execute(str);
   Call Execute("Proc sql;");
   Call Execute("   select Name Label='Variable',Type Label='Type',Length label='Length',");
   Call Execute("          format Label='Format',Label Label='Comment'");
   Call Execute("   from dictionary.columns");
   str = cats('      where libname="',libname,'" and memname="',dsname,'"');
   Call Execute(str);
   call Execute("   order by Name;");
   call execute("quit;");
run;
ods pdf close;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Apr 2016 15:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262102#M15566</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-07T15:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262107#M15567</link>
      <description>&lt;P&gt;I really don't understand why no one seems to understand what my data source is or how i want the report to look.&amp;nbsp; I thank you all for trying, i really do.&amp;nbsp; But i'm closing this post.&amp;nbsp; It's not helping at this point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 15:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262107#M15567</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2016-04-07T15:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262111#M15568</link>
      <description />
      <pubDate>Thu, 07 Apr 2016 15:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262111#M15568</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-07T15:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262113#M15569</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/71196"&gt;@MeganE&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I really don't understand why no one seems to understand what my data source is or how i want the report to look.&amp;nbsp; I thank you all for trying, i really do.&amp;nbsp; But i'm closing this post.&amp;nbsp; It's not helping at this point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;1) You did not post DATA we could test anything with so it is somewhat difficult to see what you are starting with&lt;/P&gt;
&lt;P&gt;2) You show what appears to be the same item appearing multiple times and did not seem to understand we were trying to get clarification of the requirement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 15:57:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262113#M15569</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-07T15:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262121#M15570</link>
      <description>&lt;P&gt;I posted a screen shot of the output with the data and variable names in red right there.&amp;nbsp; I'll attach it again for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I think that's part of the problem.&amp;nbsp; I think people are assuming that "patient profile" is code for someone's name, but it's not.&amp;nbsp; That the fields listed under variable actually contain data, but they ARE the data.&amp;nbsp; The screenshot is verbatim what is in my dataset that i need to show up.&amp;nbsp; It's one dataset with proc contents meta data for about 50+ tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one dataset with 9 fields in it and i need to place them all in a single report.&amp;nbsp; That's it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see where "the same item appearing multiple times" is.&amp;nbsp; I have 9 fields all with unique names.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12435iA81B284394A54BC7/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="ProcReport.png" title="ProcReport.png" /&gt;</description>
      <pubDate>Thu, 07 Apr 2016 16:07:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262121#M15570</guid>
      <dc:creator>MeganE</dc:creator>
      <dc:date>2016-04-07T16:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262229#M15574</link>
      <description>&lt;P&gt;With the data you have I do not really understand why you went to proc report instead of proc print. Nothing you are doing in the body of that report requires proc report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I still do not know if your&amp;nbsp; CATEGORY,&amp;nbsp;NAME, DESC1 and DESC2 are in the same dataset you are displaying or not.&lt;/P&gt;
&lt;P&gt;If in the same dataset are the on all rows or just one? You could provide the output from proc print to show what the actual structure of the data may be.&lt;/P&gt;
&lt;P&gt;If&amp;nbsp;all the data is in one set then you may need something with a separate step to build the information that appears OUTSIDE of the Proc results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Things generally get tricky to some extent when you want different variables Name and Desc2 for example to appear within the column space. The procedures that allow that are somewhat stringent in requirements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 22:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262229#M15574</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-07T22:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Text above columns in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262251#M15576</link>
      <description>&lt;PRE&gt;
Also could try #byval1 + BY statement.
You'd better post some test data to let someone code it for you .


&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Apr 2016 00:51:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-above-columns-in-proc-report/m-p/262251#M15576</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-04-08T00:51:34Z</dc:date>
    </item>
  </channel>
</rss>

