<?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: data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385172#M65720</link>
    <description>Could you please provide the variable names with the data and the query with expected output</description>
    <pubDate>Thu, 03 Aug 2017 03:25:04 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2017-08-03T03:25:04Z</dc:date>
    <item>
      <title>dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385167#M65711</link>
      <description>&lt;P&gt;How can I create data set with below data&lt;/P&gt;&lt;P&gt;variable names are&lt;/P&gt;&lt;P&gt;acctno|actdt|deactdt|deactreason|goodcredit|rateplan|dealertype|AGE|Province|sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data&lt;BR /&gt;1176913194483|06/20/1999|||0|1|A1|58|BC|128&lt;BR /&gt;1176914599423|10/04/1999|10/15/1999|NEED|1|1|A1|45|AB|72&lt;BR /&gt;1176951913656|07/01/2000|||0|1|A1|57|BC|593&lt;BR /&gt;1176954000288|05/30/2000|||1|2|A1|47|ON|83&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can anyone help to create data set?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 03:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385167#M65711</guid>
      <dc:creator>librasantosh</dc:creator>
      <dc:date>2017-08-03T03:09:03Z</dc:date>
    </item>
    <item>
      <title>data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385168#M65719</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1176913194483 06/20/1999 0 1 A1 58 BC $128.00&lt;BR /&gt;1176914599423 10/04/1999 10/15/1999 NEED 1 1 A1 45 AB $72.00&lt;BR /&gt;1176951913656 07/01/2000 0 1 A1 57 BC $593.00&lt;BR /&gt;1176954000288 05/30/2000 1 2 A1 47 ON $83.00&lt;BR /&gt;1176969186303 12/13/2000 1 1 C1 82 BC&lt;BR /&gt;1176991056273 08/31/1999 09/18/2000 MOVE 1 1 C1 92 QC $1041.00&lt;BR /&gt;1176991866552 05/24/2000 1 1 A1 77 ON&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 03:11:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385168#M65719</guid>
      <dc:creator>librasantosh</dc:creator>
      <dc:date>2017-08-03T03:11:00Z</dc:date>
    </item>
    <item>
      <title>data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385169#M65722</link>
      <description>&lt;P&gt;how can I show&amp;nbsp;the acctno is unique?&amp;nbsp;what will be the code to see the number of accounts activated and deactivated? Also the earliest and latest activation/deactivation dates available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone give me code.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 03:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385169#M65722</guid>
      <dc:creator>librasantosh</dc:creator>
      <dc:date>2017-08-03T03:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385171#M65723</link>
      <description>&lt;P&gt;Could you please provide sample data and expected output to get better response&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 03:22:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385171#M65723</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-08-03T03:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385172#M65720</link>
      <description>Could you please provide the variable names with the data and the query with expected output</description>
      <pubDate>Thu, 03 Aug 2017 03:25:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385172#M65720</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-08-03T03:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385173#M65716</link>
      <description>&lt;P&gt;Please create a sample txt file as attached and run the below code with the location of sample where you save it&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile='~path\sample.txt' out=sample dbms=dlm replace;
getnames=yes;
delimiter='|';
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Aug 2017 03:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385173#M65716</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-08-03T03:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385194#M65724</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/156990"&gt;@librasantosh&lt;/a&gt;, please pay attention:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Is this post an answer to your previous post:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/data/m-p/385168" target="_self"&gt;https://communities.sas.com/t5/SAS-Procedures/data/m-p/385168&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Assuming the answer is YES then:&lt;/P&gt;
&lt;P&gt;1) There is no need to open a new thread of posts. Just use REPLY to continue the thread&lt;/P&gt;
&lt;P&gt;2) You were asked by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12151"&gt;@Jagadishkatam&lt;/a&gt;&amp;nbsp;to provide variable names, so we have a common language to talk about.&lt;/P&gt;
&lt;P&gt;3) I suggest you reply to this post, providing code using the {i} icon or the man in a square icon, like that:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
    input var1 var2 mmddyy10. var3 ...;    /* addapt logic names to variables */
datalines;
1176913194483 06/20/1999 0 1 A1 58 BC $128.00
1176914599423 10/04/1999 10/15/1999 NEED 1 1 A1 45 AB $72.00
1176951913656 07/01/2000 0 1 A1 57 BC $593.00
1176954000288 05/30/2000 1 2 A1 47 ON $83.00
1176969186303 12/13/2000 1 1 C1 82 BC
1176991056273 08/31/1999 09/18/2000 MOVE 1 1 C1 92 QC $1041.00
1176991866552 05/24/2000 1 1 A1 77 ON
; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;4) What is the issue you have? What kind of help you need ?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 08:00:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385194#M65724</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-08-03T08:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385198#M65721</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/156990"&gt;@librasantosh&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1176913194483 06/20/1999 0 1 A1 58 BC $128.00&lt;BR /&gt;1176914599423 10/04/1999 10/15/1999 NEED 1 1 A1 45 AB $72.00&lt;BR /&gt;1176951913656 07/01/2000 0 1 A1 57 BC $593.00&lt;BR /&gt;1176954000288 05/30/2000 1 2 A1 47 ON $83.00&lt;BR /&gt;1176969186303 12/13/2000 1 1 C1 82 BC&lt;BR /&gt;1176991056273 08/31/1999 09/18/2000 MOVE 1 1 C1 92 QC $1041.00&lt;BR /&gt;1176991866552 05/24/2000 1 1 A1 77 ON&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 08:14:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385198#M65721</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-03T08:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385209#M65725</link>
      <description>&lt;P&gt;I merged those seemingly related posts into one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/156990"&gt;@librasantosh&lt;/a&gt;:&lt;/P&gt;
&lt;P&gt;When you posted your question(s), you saw this right below the posting window:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Stop right there!&lt;/STRONG&gt; Before pressing POST, tick off this checklist. Does your post …&lt;/P&gt;
&lt;TABLE align="left" border="1" cellpadding="5" cellspacing="5" width="75%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;✔ Have a descriptive subject line, i.e., How do I ‘XYZ’?&lt;/TD&gt;
&lt;TD&gt;✔ Use simple language and provide context? Definitely mention what version you’re on.&lt;/TD&gt;
&lt;TD&gt;✔ Include code and example data? Consider using the &lt;A href="https://communities.sas.com/t5/Community-Memo/Getting-the-Most-from-Your-Post-SAS-Syntax-Highlighter/ba-p/230172" target="_blank"&gt;SAS Syntax feature&lt;/A&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You did not&lt;/P&gt;
&lt;P&gt;- have a descriptive subject line&lt;/P&gt;
&lt;P&gt;- use understandable language that makes it easy for others to understand; keep in mind that most of us use English as a common language without being native English speakers themselves. Also provide context.&lt;/P&gt;
&lt;P&gt;- include the code you already tried, and data in a usable form. If you have trouble writing a simple datastep with some datalines, use the macro provided in&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; to convert your dataset to a data step and post that here in a code window (7th icon above the posting window)&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 08:48:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385209#M65725</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-03T08:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385221#M65726</link>
      <description>&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;I have tried same method given by you, but data out showing values in different column. &lt;BR /&gt;Forxample, for one row entries are in different then other row entry. &lt;BR /&gt;&lt;BR /&gt;I hope you have understand my question&lt;BR /&gt;data&lt;/SPAN&gt; have&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token keyword"&gt;input&lt;/SPAN&gt; var1 var2 mmddyy10&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt; var3 &lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;    &lt;SPAN class="token comment"&gt;/* addapt logic names to variables */&lt;/SPAN&gt;
&lt;SPAN class="token datalines"&gt;&lt;SPAN class="token keyword"&gt;datalines&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Aug 2017 09:28:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385221#M65726</guid>
      <dc:creator>librasantosh</dc:creator>
      <dc:date>2017-08-03T09:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385223#M65727</link>
      <description>&lt;P&gt;Please post the WHOLE step including the datalines, and indicate where the resulting dataset did not meet your expectations. If the step failed, post the (once again,&lt;U&gt;&lt;/U&gt;&amp;nbsp;&lt;U&gt;whole&lt;/U&gt;) log.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 09:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385223#M65727</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-03T09:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385225#M65728</link>
      <description>&lt;P&gt;Below is the code I have used for data creation. But table giving values to different place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data KRM;&lt;BR /&gt;Input acctno &amp;nbsp;actdt mmddyy10. &amp;nbsp;deactdt mmddyy10. &amp;nbsp;deactreason$ &amp;nbsp;goodcredit &amp;nbsp;rateplan &amp;nbsp;dealertype$ &amp;nbsp;AGE &amp;nbsp;Province$ sales;&lt;BR /&gt;&lt;BR /&gt;Datalines;&lt;BR /&gt;1176951913656 07/01/2000 0 1 A1 57 BC $593.00&lt;BR /&gt;1176954000288 05/30/2000 1 2 A1 47 ON $83.00&lt;BR /&gt;1176969186303 12/13/2000 1 1 C1 82 BC&lt;BR /&gt;1176991056273 08/31/1999 09/18/2000 MOVE 1 1 C1 92 QC $1041.00&lt;BR /&gt;1176991866552 05/24/2000 1 1 A1 77 ON&lt;BR /&gt;1176992889500 11/28/2000 1 1 C1 68 AB $72.00&lt;BR /&gt;1177000067271 12/23/1999 0 1 B1 75 ON $134.00&lt;BR /&gt;1177028996676 09/21/2000 0 1 C1 QC $179.00&lt;BR /&gt;1177057406016 09/21/2000 0 1 C1 50 ON $529.00&lt;BR /&gt;1177066422248 04/26/1999 01/15/2001 NEED 0 1 A2 55 NS $44.00&lt;BR /&gt;1177113886410 09/13/2000 01/08/2001 COMP 0 1 C1 45 ON $63.00&lt;BR /&gt;1177128264924 12/10/1999 1 1 B1 38 ON $178.00&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 09:43:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385225#M65728</guid>
      <dc:creator>librasantosh</dc:creator>
      <dc:date>2017-08-03T09:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385245#M65729</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/156990"&gt;@librasantosh&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Below is the code I have used for data creation. But table giving values to different place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data KRM;&lt;BR /&gt;Input acctno &amp;nbsp;actdt mmddyy10. &amp;nbsp;deactdt mmddyy10. &amp;nbsp;deactreason$ &amp;nbsp;goodcredit &amp;nbsp;rateplan &amp;nbsp;dealertype$ &amp;nbsp;AGE &amp;nbsp;Province$ sales;&lt;BR /&gt;&lt;BR /&gt;Datalines;&lt;BR /&gt;1176951913656 07/01/2000 0 1 A1 57 BC $593.00&lt;BR /&gt;1176954000288 05/30/2000 1 2 A1 47 ON $83.00&lt;BR /&gt;1176969186303 12/13/2000 1 1 C1 82 BC&lt;BR /&gt;1176991056273 08/31/1999 09/18/2000 MOVE 1 1 C1 92 QC $1041.00&lt;BR /&gt;1176991866552 05/24/2000 1 1 A1 77 ON&lt;BR /&gt;1176992889500 11/28/2000 1 1 C1 68 AB $72.00&lt;BR /&gt;1177000067271 12/23/1999 0 1 B1 75 ON $134.00&lt;BR /&gt;1177028996676 09/21/2000 0 1 C1 QC $179.00&lt;BR /&gt;1177057406016 09/21/2000 0 1 C1 50 ON $529.00&lt;BR /&gt;1177066422248 04/26/1999 01/15/2001 NEED 0 1 A2 55 NS $44.00&lt;BR /&gt;1177113886410 09/13/2000 01/08/2001 COMP 0 1 C1 45 ON $63.00&lt;BR /&gt;1177128264924 12/10/1999 1 1 B1 38 ON $178.00&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When you read data using delimited (list) input, you have to provide something to be read when values are missing. SAS uses a single dot for this.&lt;/P&gt;
&lt;P&gt;Note that you should use the colon right in front of the informat, so SAS does not switch to formatted (fixed-column) input, which requires all character columns to be present (in your case, 10 for the mmddyy10. format).&lt;/P&gt;
&lt;P&gt;Finally, the truncover option allows missing values at the end of a dataline, so that SAS does not skip to the next line.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data KRM;
infile cards truncover;
input
  acctno :$13.
  actdt :mmddyy10.
  deactdt :mmddyy10.
  deactreason$
  goodcredit
  rateplan
  dealertype$
  AGE
  Province$
  sales :dollar10.2
;
format
  actdt deactdt mmddyy10.
;
datalines;
1176951913656 07/01/2000 . . 0 1 A1 57 BC $593.00
1176954000288 05/30/2000 . . 1 2 A1 47 ON $83.00
1176969186303 12/13/2000 . . 1 1 C1 82 BC
1176991056273 08/31/1999 09/18/2000 MOVE 1 1 C1 92 QC $1041.00
1176991866552 05/24/2000 . . 1 1 A1 77 ON
1176992889500 11/28/2000 . . 1 1 C1 68 AB $72.00
1177000067271 12/23/1999 . . 0 1 B1 75 ON $134.00
1177028996676 09/21/2000 . . 0 1 C1 . QC $179.00
1177057406016 09/21/2000 . . 0 1 C1 50 ON $529.00
1177066422248 04/26/1999 01/15/2001 NEED 0 1 A2 55 NS $44.00
1177113886410 09/13/2000 01/08/2001 COMP 0 1 C1 45 ON $63.00
1177128264924 12/10/1999 . . 1 1 B1 38 ON $178.00
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Aug 2017 10:53:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385245#M65729</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-03T10:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385257#M65733</link>
      <description>I agree with these codes, but If I have huge data then How will I put '.' for the all missing values. This has more than thousand observation. Is there any way for this one? Thanks alot for reply</description>
      <pubDate>Thu, 03 Aug 2017 12:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385257#M65733</guid>
      <dc:creator>librasantosh</dc:creator>
      <dc:date>2017-08-03T12:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385263#M65735</link>
      <description>&lt;P&gt;There's two possible scenarios:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are reading your data from an external source. If that is the case, such data must have a reliable structure that allows SAS to detect missing values (two delimiters in succession, for instance)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you are preparing a dataset you already have for posting as example here. In that case, you should post just enough observations to illustrate your issue, and you can use the macro provided in&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; to automatically create a data step from your dataset that has ALL attributes and contents.&lt;/P&gt;
&lt;P&gt;Download the .zip, extract the code, open the code with EG (or an editor and copy/paste it to SAS Studio), and run it once to compile the macro. Then use as documented.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you prepare example data manually, taking care of missing values is no problem. Just look at the time it took me to correct your code.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 12:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385263#M65735</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-03T12:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385273#M65736</link>
      <description>Yes my data is in txt file and its not arranged in order. Is there any solution to create dataset without putting '.' for missing values in raw data. Data values are not arranged in neatly defined columns, but are separated by at least one space and contain some nonstandard characters, such as the dollar sign ($)</description>
      <pubDate>Thu, 03 Aug 2017 12:48:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385273#M65736</guid>
      <dc:creator>librasantosh</dc:creator>
      <dc:date>2017-08-03T12:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385286#M65738</link>
      <description>&lt;P&gt;If an external text file is not structured in a way that lets you detect missing values, return to sender. As soon as you have two numerics in succession, there is no way for you to detect which one shall be set to missing. I know of no software that would export data in such a stupid way, even MS Excel manages to get that right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you sure you made no mistake when copy/pasting to the data step?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 13:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385286#M65738</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-03T13:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385339#M65745</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/156990"&gt;@librasantosh&lt;/a&gt; wrote:&lt;BR /&gt;Yes my data is in txt file and its not arranged in order. Is there any solution to create dataset without putting '.' for missing values in raw data. Data values are not arranged in neatly defined columns, but are separated by at least one space and contain some nonstandard characters, such as the dollar sign ($)&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You need to be aware that this forum when pasting into the main message windows will often reformat text with removing blanks one of the most common elements. So post code and data into a code box using the {i} menu icon at the top of the message box to prevent that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 14:58:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385339#M65745</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-03T14:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385536#M65755</link>
      <description>&lt;P&gt;Hi, thanks for reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying this way&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile="C:\file path.txt"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dbms=dlm&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; out=new data&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;delimiter='|';&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;getnames=yes;&lt;/P&gt;&lt;P&gt;&amp;nbsp;guessinrows=100;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its working.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 00:54:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385536#M65755</guid>
      <dc:creator>librasantosh</dc:creator>
      <dc:date>2017-08-04T00:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385571#M65756</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/156990"&gt;@librasantosh&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi, thanks for reply,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying this way&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc import datafile="C:\file path.txt"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dbms=dlm&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; out=new data&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; replace;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;delimiter='|';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;getnames=yes;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;guessinrows=100;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its working.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Nice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you have now (probably without knowing it) is a working data step. proc import creates it, runs it, and writes it to the log. You can copy it from there and adapt it to your needs for fine-tuning.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 06:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dataset/m-p/385571#M65756</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-04T06:07:06Z</dc:date>
    </item>
  </channel>
</rss>

