<?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: Manually Input Dataset in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Manually-Input-Dataset/m-p/767467#M30764</link>
    <description>&lt;P&gt;If you want character values for DVDECOD, you have to specify that DVDECOD is character in the INPUT statement (by using a $ plus optional formatting) and do not enclose them in quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data devtype;
 input dvdecod $ @@;
 cards;
 00 01 02 03 04 05
 06 07 08 09 10 11
 12 13 14 15 16 17
 18 19 99
 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 13 Sep 2021 16:16:30 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-09-13T16:16:30Z</dc:date>
    <item>
      <title>Manually Input Dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Manually-Input-Dataset/m-p/767459#M30760</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I pretty much just want these character values (I need the leading zero for merging and ordering), to be in a single column. I thought the&amp;nbsp;@@ would allow me to write my list in a single row and still go in the correct column. However, I end up with an error instead, so maybe I misunderstood it's use. Is there a way to write this code without having to go the the next line after each value?&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Code Have*/&lt;BR /&gt;data devtype;
 input dvdecod@@;
 cards;
 '00' '01' '02' '03' '04' '05'
 '06' '07' '08' '09' '10' '11'
 '12' '13' '14' '15' '16' '17'
 '18' '19' '99'
 ;
run;&lt;BR /&gt;&lt;BR /&gt;/*Code&amp;nbsp;Trying&amp;nbsp;to&amp;nbsp;Avoid*/&lt;BR /&gt;data&amp;nbsp;devtype;&lt;BR /&gt;&amp;nbsp;input&amp;nbsp;dvdecod;&lt;BR /&gt;&amp;nbsp;cards;&lt;BR /&gt;&amp;nbsp;'00'&lt;BR /&gt;&amp;nbsp;'01'&lt;BR /&gt;&amp;nbsp;'02'&lt;BR /&gt;&amp;nbsp;'03'&lt;BR /&gt;&amp;nbsp;...&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/*Log&amp;nbsp;File&amp;nbsp;Error - repeats*/&lt;BR /&gt;NOTE: Invalid data for DVDECOD in line 1001 2-5.&lt;BR /&gt;1001 '12' '13' '14' '15' '16' '17'&lt;BR /&gt;DVDECOD=- _ERROR_=1 _N_=13&lt;BR /&gt;NOTE: Invalid data for DVDECOD in line 1001 7-10.&lt;BR /&gt;NOTE: Invalid data errors for file CARDS occurred outside the printed range.&lt;BR /&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 16:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Manually-Input-Dataset/m-p/767459#M30760</guid>
      <dc:creator>mariko5797</dc:creator>
      <dc:date>2021-09-13T16:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Manually Input Dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Manually-Input-Dataset/m-p/767463#M30761</link>
      <description>&lt;P&gt;EDIT:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure why the new lines didn't carry over. For ease to view.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariko5797_0-1631549088177.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63541iEA806C8C9B7CD4C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariko5797_0-1631549088177.png" alt="mariko5797_0-1631549088177.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 16:05:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Manually-Input-Dataset/m-p/767463#M30761</guid>
      <dc:creator>mariko5797</dc:creator>
      <dc:date>2021-09-13T16:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Manually Input Dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Manually-Input-Dataset/m-p/767464#M30762</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data devtype;
 input dvdecod @@;
 dvdecod_leading0 = put(dvdecod,z2.);
 dvdecod_leading0_quotes = "'"!! dvdecod_leading0 !! "'";
 cards;
 0  1  2  3  4  5
 6  7  8  9 10 11
12 13 14 15 16 17
18 19 99
;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 16:08:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Manually-Input-Dataset/m-p/767464#M30762</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-09-13T16:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Manually Input Dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Manually-Input-Dataset/m-p/767466#M30763</link>
      <description>&lt;P&gt;If you want leading zeros then read the values are text instead of numeric.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data devtype;
  input dvdecod $ @@;
cards;
00 01 02 03 04 05
06 07 08 09 10 11
12 13 14 15 16 17
18 19 99
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Sep 2021 16:12:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Manually-Input-Dataset/m-p/767466#M30763</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-09-13T16:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Manually Input Dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Manually-Input-Dataset/m-p/767467#M30764</link>
      <description>&lt;P&gt;If you want character values for DVDECOD, you have to specify that DVDECOD is character in the INPUT statement (by using a $ plus optional formatting) and do not enclose them in quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data devtype;
 input dvdecod $ @@;
 cards;
 00 01 02 03 04 05
 06 07 08 09 10 11
 12 13 14 15 16 17
 18 19 99
 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Sep 2021 16:16:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Manually-Input-Dataset/m-p/767467#M30764</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-13T16:16:30Z</dc:date>
    </item>
  </channel>
</rss>

