<?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: create data set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/822005#M324552</link>
    <description>&lt;P&gt;Big hint: NEVER use tabs in code, unless you &lt;U&gt;explicitly&lt;/U&gt; want them. And &lt;U&gt;&lt;STRONG&gt;NEVER, NEVER, NEVER&lt;/STRONG&gt;&lt;/U&gt; allow your editor to replace blanks with tabs.&lt;/P&gt;
&lt;P&gt;For work purposes, my SAS editor is always set to replace tabs with blanks, on input and when code is loaded from a file. I only allow tabs in the On Demand session I use for the Communities, as I need to get code in there from postings of others "as is", so I can recreate the issues (as was the case here).&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2022 08:33:18 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-07-07T08:33:18Z</dc:date>
    <item>
      <title>create data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/821996#M324545</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I am getting empty data set.&lt;/P&gt;
&lt;P&gt;What is the way to solve it please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Z1 Z2 Z3 X1 X2 X3 X4 X5 X6 $ ;
cards;
2905817	1025710	314	40442 .	0 0.0346175427 1 C102
;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Jul 2022 08:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/821996#M324545</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2022-07-07T08:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: create data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/821999#M324547</link>
      <description>&lt;P&gt;Maxim 3: Know Your Data, which also extends to "Know Your Datalines";&lt;/P&gt;
&lt;P&gt;When I run your code with a little twist:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input;
put _infile_ $hex80.;
cards;
2905817	1025710	314	40442 .	0 0.0346175427 1 C102
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get this log:&lt;/P&gt;
&lt;PRE&gt; 69         data have;
 70         input;
 71         put _infile_ $hex80.;
 72         cards;
 
 32393035383137093130323537313009333134093430343432202E093020302E3033343631373534
&lt;/PRE&gt;
&lt;P&gt;"37" is the hex code for the digit 7, and the immediately following hex code is "09", which means it's a tab.&lt;/P&gt;
&lt;P&gt;But you also have blanks ("20") as delimiters; mixing delimiters is a BAD IDEA.&lt;/P&gt;
&lt;P&gt;Replace all tabs with blanks, and it works:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Z1 Z2 Z3 X1 X2 X3 X4 X5 X6 $ ;
cards;
2905817 1025710 314 40442 . 0 0.0346175427 1 C102
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or make sure that all delimiters are tabs, so you can use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile datalines dlm="09"x;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 08:19:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/821999#M324547</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-07-07T08:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: create data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/822000#M324548</link>
      <description>&lt;P&gt;No ploblem.&lt;/P&gt;
&lt;P&gt;Your code creates a dataset that has 1 obs.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="japelin_0-1657181819816.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73020iDEA70B8E0DE02214/image-size/medium?v=v2&amp;amp;px=400" role="button" title="japelin_0-1657181819816.png" alt="japelin_0-1657181819816.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check if there are any warnings or errors in the logs.&lt;/P&gt;
&lt;P&gt;And restart SAS and then run this code by itself to see if it resolves the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 08:19:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/822000#M324548</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-07-07T08:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: create data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/822001#M324549</link>
      <description>&lt;P&gt;You probably have your editor set to replace all tabs with blanks, so it auto-corrects the mistake of the OP &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 08:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/822001#M324549</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-07-07T08:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: create data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/822004#M324551</link>
      <description>&lt;P&gt;Exactly!&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="japelin_0-1657182332358.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73021iA5917C22708A193C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="japelin_0-1657182332358.png" alt="japelin_0-1657182332358.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;(this image is other text editor.)&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 08:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/822004#M324551</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-07-07T08:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: create data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/822005#M324552</link>
      <description>&lt;P&gt;Big hint: NEVER use tabs in code, unless you &lt;U&gt;explicitly&lt;/U&gt; want them. And &lt;U&gt;&lt;STRONG&gt;NEVER, NEVER, NEVER&lt;/STRONG&gt;&lt;/U&gt; allow your editor to replace blanks with tabs.&lt;/P&gt;
&lt;P&gt;For work purposes, my SAS editor is always set to replace tabs with blanks, on input and when code is loaded from a file. I only allow tabs in the On Demand session I use for the Communities, as I need to get code in there from postings of others "as is", so I can recreate the issues (as was the case here).&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 08:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/822005#M324552</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-07-07T08:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: create data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/822006#M324553</link>
      <description>&lt;P&gt;PS you can use a mix of delimiters, but I &lt;U&gt;strongly&lt;/U&gt; recommend against it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile datalines dlm="0920"x;
input Z1 Z2 Z3 X1 X2 X3 X4 X5 X6 $ ;
cards;
2905817	1025710	314	40442 .	0 0.0346175427 1 C102
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Jul 2022 08:35:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/822006#M324553</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-07-07T08:35:43Z</dc:date>
    </item>
  </channel>
</rss>

