<?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 Horizontally aligned data in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Horizontally-aligned-data/m-p/798806#M423</link>
    <description>&lt;P&gt;Hey guys, I'm stuck in a project. My code will only print 3 obs but I need it to print 5 as you can see the other two obs are aligned horizontally from the first and second lines of data. How do I make them print with the other 3 data lines without touching the data itself?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-02-25 at 11.50.39 PM.png" style="width: 528px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68957i50287CCCFAD9D76B/image-dimensions/528x255?v=v2" width="528" height="255" role="button" title="Screen Shot 2022-02-25 at 11.50.39 PM.png" alt="Screen Shot 2022-02-25 at 11.50.39 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what it prints.&amp;nbsp;&lt;/P&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 2022-02-25 at 11.51.37 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68958i416583543EFAA741/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-02-25 at 11.51.37 PM.png" alt="Screen Shot 2022-02-25 at 11.51.37 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need it to print like this. Can someone please help me?&lt;/P&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 2022-02-25 at 11.53.55 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68959i4F20C1D7041E229F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-02-25 at 11.53.55 PM.png" alt="Screen Shot 2022-02-25 at 11.53.55 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;THANKS!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Sat, 26 Feb 2022 04:55:23 GMT</pubDate>
    <dc:creator>Younes10</dc:creator>
    <dc:date>2022-02-26T04:55:23Z</dc:date>
    <item>
      <title>Horizontally aligned data</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Horizontally-aligned-data/m-p/798806#M423</link>
      <description>&lt;P&gt;Hey guys, I'm stuck in a project. My code will only print 3 obs but I need it to print 5 as you can see the other two obs are aligned horizontally from the first and second lines of data. How do I make them print with the other 3 data lines without touching the data itself?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-02-25 at 11.50.39 PM.png" style="width: 528px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68957i50287CCCFAD9D76B/image-dimensions/528x255?v=v2" width="528" height="255" role="button" title="Screen Shot 2022-02-25 at 11.50.39 PM.png" alt="Screen Shot 2022-02-25 at 11.50.39 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what it prints.&amp;nbsp;&lt;/P&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 2022-02-25 at 11.51.37 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68958i416583543EFAA741/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-02-25 at 11.51.37 PM.png" alt="Screen Shot 2022-02-25 at 11.51.37 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need it to print like this. Can someone please help me?&lt;/P&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 2022-02-25 at 11.53.55 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68959i4F20C1D7041E229F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-02-25 at 11.53.55 PM.png" alt="Screen Shot 2022-02-25 at 11.53.55 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;THANKS!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 04:55:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Horizontally-aligned-data/m-p/798806#M423</guid>
      <dc:creator>Younes10</dc:creator>
      <dc:date>2022-02-26T04:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Horizontally aligned data</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Horizontally-aligned-data/m-p/798807#M424</link>
      <description>&lt;P&gt;Split your DATALINES rows into 5 lines, after your date variable,&amp;nbsp; then it will import and print correctly.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 05:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Horizontally-aligned-data/m-p/798807#M424</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-02-26T05:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Horizontally aligned data</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Horizontally-aligned-data/m-p/798808#M425</link>
      <description>I cannot touch the datalines. My professor said I have to write a code for it.</description>
      <pubDate>Sat, 26 Feb 2022 05:43:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Horizontally-aligned-data/m-p/798808#M425</guid>
      <dc:creator>Younes10</dc:creator>
      <dc:date>2022-02-26T05:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Horizontally aligned data</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Horizontally-aligned-data/m-p/798814#M426</link>
      <description>&lt;P&gt;Lookup in the &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n0oaql83drile0n141pdacojq97s.htm" target="_self"&gt;SAS Documentation for the INPUT statement&lt;/A&gt; what the&amp;nbsp;@ can get used for.&lt;BR /&gt;&lt;SPAN&gt;Then adopt below sample to your code and data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  infile datalines dlm=',';
  input a b @@;
  datalines;
1,2
1,2,3,4,5,6
1,2,3,4
;

proc print data=test;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1645859290479.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68960i4C8E97947F36C875/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1645859290479.png" alt="Patrick_0-1645859290479.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 07:10:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Horizontally-aligned-data/m-p/798814#M426</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-02-26T07:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Horizontally aligned data</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Horizontally-aligned-data/m-p/799045#M427</link>
      <description>Thank you so much! it helped!</description>
      <pubDate>Mon, 28 Feb 2022 01:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Horizontally-aligned-data/m-p/799045#M427</guid>
      <dc:creator>Younes10</dc:creator>
      <dc:date>2022-02-28T01:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Horizontally aligned data</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Horizontally-aligned-data/m-p/799057#M428</link>
      <description>&lt;P&gt;There is no alignment required here.&amp;nbsp;&amp;nbsp;Just read the values.&lt;/P&gt;
&lt;P&gt;If you want SAS to keep reading from the same line to get the next observation then use double trailing&amp;nbsp;@ on the INPUT statement.&lt;/P&gt;
&lt;P&gt;Also read the numbers as numbers, not strings.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And add formats to display the numbers the way you want.&amp;nbsp; Avoid MDY or DMY ordering for dates as either choice will confuse half of your audience.&amp;nbsp; Use YMD order or DATE format.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  input price :comma. sqft tax date :anydtdte. @@;
  format price dollar10.2 date yymmdd10.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Feb 2022 03:04:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Horizontally-aligned-data/m-p/799057#M428</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-02-28T03:04:35Z</dc:date>
    </item>
  </channel>
</rss>

