<?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: ERROR 79-322: Expecting a CONTENTS in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/ERROR-79-322-Expecting-a-CONTENTS/m-p/903963#M40355</link>
    <description>&lt;P&gt;As posted, your code can't work, as yo have no blanks separating the statements (COLUMN or DEFINE) from the variable names.&lt;/P&gt;
&lt;P&gt;Next, you have a variable in COLUMN for which no DEFINE exists, and a DEFINE for a variable not included in COLUMN.&lt;/P&gt;
&lt;P&gt;Finally, the only options in a DEFINE statement which have an equal sign are COLOR and CONTENTS. Labels are given as quoted strings without an equal sign. To display multiple statistics for a single variable, define the statistics in the COLUMN statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=HYPANL.HYPANALYSIS1_20231116 split='/';
column TxNm N SBP,(mean std) DBP,(mean std);
define TxNm / 'Race Code';
define N / group;
define SBP / analysis;
define DBP / analysis;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For detailed help, post example data in a DATA step with DATALINES; and the expected result from this.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2023 16:28:29 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-11-20T16:28:29Z</dc:date>
    <item>
      <title>ERROR 79-322: Expecting a CONTENTS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-79-322-Expecting-a-CONTENTS/m-p/903950#M40352</link>
      <description>&lt;P&gt;Hi SAS coders,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do a PROC REPORT and ran into this error: "&lt;SPAN&gt; ERROR 79-322: Expecting a CONTENTS."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My code is&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;PROC REPORT DATA = HYPANL.HYPANALYSIS1_20231116 SPLIT = '/';&lt;/DIV&gt;&lt;DIV&gt;COLUMNRaceCd N SBP DBP;&lt;/DIV&gt;&lt;DIV&gt;DEFINETxNm/ 'Race Code';&lt;/DIV&gt;&lt;DIV&gt;DEFINEN/ GROUP;&lt;/DIV&gt;&lt;DIV&gt;DEFINESBP/ ANALYSIS MEAN FORMAT = 4.1 'MEAN';&lt;/DIV&gt;&lt;DIV&gt;DEFINESBP/ STD = 'STD';&lt;/DIV&gt;&lt;DIV&gt;DEFINEDBP/ ANALYSIS MEAN FORMAT = 4.1 'MEAN';&lt;/DIV&gt;&lt;DIV&gt;DEFINE &amp;nbsp;DBP / STD = 'STD';&lt;/DIV&gt;&lt;DIV&gt;RUN;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I attached a ss to show where it says the error.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2023-11-20 at 9.01.21 AM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90050iB0B2EB4F827D8B43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2023-11-20 at 9.01.21 AM.png" alt="Screen Shot 2023-11-20 at 9.01.21 AM.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;I don't know what this error means.&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Nov 2023 16:04:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-79-322-Expecting-a-CONTENTS/m-p/903950#M40352</guid>
      <dc:creator>kcvaldez98</dc:creator>
      <dc:date>2023-11-20T16:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 79-322: Expecting a CONTENTS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-79-322-Expecting-a-CONTENTS/m-p/903963#M40355</link>
      <description>&lt;P&gt;As posted, your code can't work, as yo have no blanks separating the statements (COLUMN or DEFINE) from the variable names.&lt;/P&gt;
&lt;P&gt;Next, you have a variable in COLUMN for which no DEFINE exists, and a DEFINE for a variable not included in COLUMN.&lt;/P&gt;
&lt;P&gt;Finally, the only options in a DEFINE statement which have an equal sign are COLOR and CONTENTS. Labels are given as quoted strings without an equal sign. To display multiple statistics for a single variable, define the statistics in the COLUMN statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=HYPANL.HYPANALYSIS1_20231116 split='/';
column TxNm N SBP,(mean std) DBP,(mean std);
define TxNm / 'Race Code';
define N / group;
define SBP / analysis;
define DBP / analysis;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For detailed help, post example data in a DATA step with DATALINES; and the expected result from this.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 16:28:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-79-322-Expecting-a-CONTENTS/m-p/903963#M40355</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-20T16:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 79-322: Expecting a CONTENTS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-79-322-Expecting-a-CONTENTS/m-p/903968#M40356</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some data and expected results is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA =&amp;nbsp;&lt;/P&gt;&lt;P&gt;RaceCd, SBP, DBP&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;161&lt;/TD&gt;&lt;TD&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;160&lt;/TD&gt;&lt;TD&gt;78&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;O&lt;/TD&gt;&lt;TD&gt;168&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;W&lt;/TD&gt;&lt;TD&gt;176&lt;/TD&gt;&lt;TD&gt;73&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;W&lt;/TD&gt;&lt;TD&gt;159&lt;/TD&gt;&lt;TD&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My outcome should look like this minus the actual numbers since I am only providing you a fraction of the dataset that I am working with.&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-11-20 at 9.33.22 AM.png" style="width: 424px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90058iDC5F4A0C1C38B5D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-11-20 at 9.33.22 AM.png" alt="Screen Shot 2023-11-20 at 9.33.22 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you, again!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 16:41:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-79-322-Expecting-a-CONTENTS/m-p/903968#M40356</guid>
      <dc:creator>kcvaldez98</dc:creator>
      <dc:date>2023-11-20T16:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 79-322: Expecting a CONTENTS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-79-322-Expecting-a-CONTENTS/m-p/904102#M40375</link>
      <description>&lt;P&gt;See this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value $rcd
  "B" = "Black"
  "O" = "Other"
  "W" = "White"
;
run;

data have;
input RaceCd :$1. SBP DBP;
label
  RaceCd = "Race Code"
  SBP = "Systolic"
  DBP  = "Diastolic"
;
format RaceCd $rcd.;
datalines; 
B 161 65
B 160 78
O 168 70
W 176 73
W 159 65
;

proc report data=have;
column RaceCd n ("Average Presures" SBP,(mean std) DBP,(mean std));
define RaceCd / group;
define N / "N";
define SBP / analysis;
define DBP / analysis;
rbreak after / summarize;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Nov 2023 13:56:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-79-322-Expecting-a-CONTENTS/m-p/904102#M40375</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-21T13:56:20Z</dc:date>
    </item>
  </channel>
</rss>

