<?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: How to get the labels to show up in my proc print SAS Studio in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-get-the-labels-to-show-up-in-my-proc-print-SAS-Studio/m-p/702157#M25873</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had the similar issue at the beginning and I fixed it with the following code. I used NOOBS instead of ID statement but I am pretty sure it should do the same thing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added SPLIT statement to make sure that look the same as the homework requirements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Valerie&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 15:14:42 GMT</pubDate>
    <dc:creator>valerieyim</dc:creator>
    <dc:date>2020-12-10T15:14:42Z</dc:date>
    <item>
      <title>How to get the labels to show up in my proc print SAS Studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-get-the-labels-to-show-up-in-my-proc-print-SAS-Studio/m-p/701726#M25800</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't seem to get the labels to show up in my proc print. Here is my code and the output I'm receiving.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;title1 "Subjects Who Died from Heart Failure";&lt;/DIV&gt;&lt;DIV&gt;proc print data=hypanl.test;&lt;/DIV&gt;&lt;DIV&gt;var wtlb sbp bmi;&lt;/DIV&gt;&lt;DIV&gt;label&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;SSN = 'Soc Sec Number'&lt;/DIV&gt;&lt;DIV&gt;WtLb = 'Subject Weight'&lt;/DIV&gt;&lt;DIV&gt;SBP = 'Systolic Blood Pressure';&lt;/DIV&gt;&lt;DIV&gt;ID SSN;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52013i7D453C5209AB1A34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;P&gt; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;data WORK.TEST;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;infile datalines dsd truncover;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;input SSN:$11. GenderCd:32. EthCd:$16. RaceCd:$16. EthRaceCd:$3. BirthDt:32. StateCd:$2. VisitDt:32. HtIn:32. WtLb:32. SBP:32. DBP:32. DeathDt:32. ICD10:$6. CODCd:32. HypRelDeathInd:32. BMI:32.;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;label SSN="Social Security Number" GenderCd="Gender Code" EthCd="Ethnicity Code" RaceCd="Race Code" EthRaceCd="Ethnicity/Race Code" BirthDt="Birth Date" StateCd="StateCd" VisitDt="Visit Date" HtIn="Height (In)" WtLb="Weight (Lb)" SBP="Systolic BP (mmHg)" D&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;BP="Diastolic BP (mmHg)" DeathDt="Death Date" ICD10="ICD 10 Code" CODCd="Cause of Death Code" HypRelDeathInd="Hypertension-Related Death";&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;datalines;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;147-48-1068 1 H W HIS 2306 UT 19848 65 158 123 61 . . 0 26.925443787&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;184-44-2710 1 H W HIS 11974 IA 20012 69.738 174.195 128 74 . . 0 25.788685458&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;416-08-7584 1 H B HIS 8418 MS 19740 72 176 106 77 . . 0 24.444444444&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;417-75-1425 1 H W HIS 7205 MS 19983 73 188 106 65 . . 0 25.400638018&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;417-98-4516 1 H B HIS 1924 MS 19827 67 196 127 74 . . 0 31.436845623&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;;;;;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Nov 2020 01:21:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-get-the-labels-to-show-up-in-my-proc-print-SAS-Studio/m-p/701726#M25800</guid>
      <dc:creator>ksumbundu</dc:creator>
      <dc:date>2020-11-26T01:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the labels to show up in my proc print SAS Studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-get-the-labels-to-show-up-in-my-proc-print-SAS-Studio/m-p/701731#M25801</link>
      <description>&lt;P&gt;You need to specify the LABEL option in the PRINT statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=hypanl.test LABEL;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=n17dcq1elcvpvkn1pkecj41cva6j.htm&amp;amp;locale=en#n0enjwai891uuyn1rl84ksabp75a"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=n17dcq1elcvpvkn1pkecj41cva6j.htm&amp;amp;locale=en#n0enjwai891uuyn1rl84ksabp75a&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/344390"&gt;@ksumbundu&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't seem to get the labels to show up in my proc print. Here is my code and the output I'm receiving.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;title1 "Subjects Who Died from Heart Failure";&lt;/DIV&gt;
&lt;DIV&gt;proc print data=hypanl.test;&lt;/DIV&gt;
&lt;DIV&gt;var wtlb sbp bmi;&lt;/DIV&gt;
&lt;DIV&gt;label&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;SSN = 'Soc Sec Number'&lt;/DIV&gt;
&lt;DIV&gt;WtLb = 'Subject Weight'&lt;/DIV&gt;
&lt;DIV&gt;SBP = 'Systolic Blood Pressure';&lt;/DIV&gt;
&lt;DIV&gt;ID SSN;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52013i7D453C5209AB1A34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;
&lt;P&gt; &lt;/P&gt;
&lt;BR /&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;DATA&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;data WORK.TEST;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;infile datalines dsd truncover;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;input SSN:$11. GenderCd:32. EthCd:$16. RaceCd:$16. EthRaceCd:$3. BirthDt:32. StateCd:$2. VisitDt:32. HtIn:32. WtLb:32. SBP:32. DBP:32. DeathDt:32. ICD10:$6. CODCd:32. HypRelDeathInd:32. BMI:32.;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;label SSN="Social Security Number" GenderCd="Gender Code" EthCd="Ethnicity Code" RaceCd="Race Code" EthRaceCd="Ethnicity/Race Code" BirthDt="Birth Date" StateCd="StateCd" VisitDt="Visit Date" HtIn="Height (In)" WtLb="Weight (Lb)" SBP="Systolic BP (mmHg)" D&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;BP="Diastolic BP (mmHg)" DeathDt="Death Date" ICD10="ICD 10 Code" CODCd="Cause of Death Code" HypRelDeathInd="Hypertension-Related Death";&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;datalines;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;147-48-1068 1 H W HIS 2306 UT 19848 65 158 123 61 . . 0 26.925443787&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;184-44-2710 1 H W HIS 11974 IA 20012 69.738 174.195 128 74 . . 0 25.788685458&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;416-08-7584 1 H B HIS 8418 MS 19740 72 176 106 77 . . 0 24.444444444&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;417-75-1425 1 H W HIS 7205 MS 19983 73 188 106 65 . . 0 25.400638018&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;417-98-4516 1 H B HIS 1924 MS 19827 67 196 127 74 . . 0 31.436845623&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;;;;;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 01:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-get-the-labels-to-show-up-in-my-proc-print-SAS-Studio/m-p/701731#M25801</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-26T01:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the labels to show up in my proc print SAS Studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-get-the-labels-to-show-up-in-my-proc-print-SAS-Studio/m-p/701732#M25802</link>
      <description>&lt;DIV&gt;proc print data=hypanl.test&amp;nbsp; &lt;FONT size="5" color="#FF00FF"&gt;&lt;STRONG&gt;LABEL&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/DIV&gt;
&lt;DIV&gt;var wtlb sbp bmi;&lt;/DIV&gt;
&lt;DIV&gt;label&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;SSN = 'Soc Sec Number'&lt;/DIV&gt;
&lt;DIV&gt;WtLb = 'Subject Weight'&lt;/DIV&gt;
&lt;DIV&gt;SBP = 'Systolic Blood Pressure';&lt;/DIV&gt;
&lt;DIV&gt;ID SSN;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Nov 2020 01:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-get-the-labels-to-show-up-in-my-proc-print-SAS-Studio/m-p/701732#M25802</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-26T01:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the labels to show up in my proc print SAS Studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-get-the-labels-to-show-up-in-my-proc-print-SAS-Studio/m-p/701736#M25803</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Try putting the label on your Proc Print statement. You can also try using this method using the code below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=dataname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPLIT= "*";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE CODCd =2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID SSN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR WtLb&amp;nbsp; BMI&amp;nbsp; SBP;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LABEL&amp;nbsp; &amp;nbsp; &amp;nbsp;SSN&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; 'Soc Sec*Number'&lt;/P&gt;&lt;P&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; &amp;nbsp;WtLb&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; 'Subject Weight'&lt;/P&gt;&lt;P&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; &amp;nbsp; BMI&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; 'Body Mass Index'&lt;/P&gt;&lt;P&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; &amp;nbsp; SBP&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; 'Systolic Blood Pressure';&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:12:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-get-the-labels-to-show-up-in-my-proc-print-SAS-Studio/m-p/701736#M25803</guid>
      <dc:creator>bshiferaw27</dc:creator>
      <dc:date>2020-12-10T15:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the labels to show up in my proc print SAS Studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-get-the-labels-to-show-up-in-my-proc-print-SAS-Studio/m-p/702105#M25859</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use a label statement to specify the column headers. You want to include a SPLIT = '*' statement to tell SAS where to split, and t&lt;SPAN style="font-family: inherit;"&gt;he split is where the * is. Then make sure to include * in your label statements where you want the label to move to a new line.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:17:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-get-the-labels-to-show-up-in-my-proc-print-SAS-Studio/m-p/702105#M25859</guid>
      <dc:creator>traciplummer</dc:creator>
      <dc:date>2020-12-10T15:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the labels to show up in my proc print SAS Studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-get-the-labels-to-show-up-in-my-proc-print-SAS-Studio/m-p/702157#M25873</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had the similar issue at the beginning and I fixed it with the following code. I used NOOBS instead of ID statement but I am pretty sure it should do the same thing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added SPLIT statement to make sure that look the same as the homework requirements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Valerie&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:14:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-get-the-labels-to-show-up-in-my-proc-print-SAS-Studio/m-p/702157#M25873</guid>
      <dc:creator>valerieyim</dc:creator>
      <dc:date>2020-12-10T15:14:42Z</dc:date>
    </item>
  </channel>
</rss>

