<?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 can I convert the attached txt file into the attached sas file? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101978#M21325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Linlin: The following worked for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let path=c:\art\test\;&lt;/P&gt;&lt;P&gt;filename files pipe "dir&amp;nbsp; /b &amp;amp;path.*.txt";&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile files truncover;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat id $20.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat date ddmmyy10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat time time8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format date ddmmyy10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format time time8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat Participant_Group $15.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat Participant_Name $23.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat Block_Name $25.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat Trial_Name $25.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat Event_Name $25.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat Participant_response $18.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat key $1.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat pressed_or_released $8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat correct_response $15.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat error_code $4.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; retain id date time;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input fname $40.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; fname=cats("&amp;amp;path.",fname);&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile dummy filevar=fname dlm='09'x dsd truncover end=done;&lt;/P&gt;&lt;P&gt;&amp;nbsp; n=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do while(not done);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; n+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if n eq 1 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input /id/date time///;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input Participant_Group Participant_Name Block_Name Trial_Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Event_Name Participant_response key pressed_or_released&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; correct_response error_code reaction_time;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2012 22:22:51 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-10-19T22:22:51Z</dc:date>
    <item>
      <title>How can I convert the attached txt file into the attached sas file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101977#M21324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I have hundreds of&amp;nbsp; similar txt files. What is the best way to convert them into one SAS dataset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 20:57:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101977#M21324</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-19T20:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert the attached txt file into the attached sas file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101978#M21325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Linlin: The following worked for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let path=c:\art\test\;&lt;/P&gt;&lt;P&gt;filename files pipe "dir&amp;nbsp; /b &amp;amp;path.*.txt";&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile files truncover;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat id $20.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat date ddmmyy10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat time time8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format date ddmmyy10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format time time8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat Participant_Group $15.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat Participant_Name $23.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat Block_Name $25.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat Trial_Name $25.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat Event_Name $25.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat Participant_response $18.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat key $1.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat pressed_or_released $8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat correct_response $15.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat error_code $4.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; retain id date time;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input fname $40.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; fname=cats("&amp;amp;path.",fname);&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile dummy filevar=fname dlm='09'x dsd truncover end=done;&lt;/P&gt;&lt;P&gt;&amp;nbsp; n=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do while(not done);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; n+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if n eq 1 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input /id/date time///;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input Participant_Group Participant_Name Block_Name Trial_Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Event_Name Participant_response key pressed_or_released&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; correct_response error_code reaction_time;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 22:22:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101978#M21325</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-19T22:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert the attached txt file into the attached sas file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101979#M21326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Art,&lt;/P&gt;&lt;P&gt;I knew you would help me.&amp;nbsp; Thank you very much!&amp;nbsp; The real txt file names cause problem. The real names are something like:&lt;/P&gt;&lt;P&gt;CC0001-V18-190810-PPI.txt.&amp;nbsp; Your code worked great after I renamed the text file. Below is the error message caused by the real names:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, C:\temp\forum\folder2\CC0001-V18-190810-.&lt;/P&gt;&lt;P&gt;RULE:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----+----1----+----2----+----3----+----4----+----5----+----6----+----7---&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CC0001-V18-190810-PPI.txt 25&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 23:15:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101979#M21326</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-19T23:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert the attached txt file into the attached sas file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101980#M21327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just expand the length of fname.&amp;nbsp; I didn't even explicitly assign a length, but used $40. to input it.&amp;nbsp; Assign a length of around $80 and see if that corrects the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 23:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101980#M21327</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-19T23:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert the attached txt file into the attached sas file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101981#M21328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Art!!!&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp; I changed the length to $80 and the problem is gone. - Linlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 23:27:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101981#M21328</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-19T23:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert the attached txt file into the attached sas file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101982#M21329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another question:&lt;/P&gt;&lt;P&gt;I have two labtops. My old one has 9.3, the newer one has 9.2.&amp;nbsp; Art's code works on the one with sas 9.3.&amp;nbsp; not on the one with 9.2. Below is from the log file. Is the problem related to the PCs or SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;177&amp;nbsp; %let path=C:\temp\Mexico123\;&lt;/P&gt;&lt;P&gt;178&amp;nbsp; filename files pipe "dir&amp;nbsp; /b &amp;amp;path.*PPI.txt";&lt;/P&gt;&lt;P&gt;179&amp;nbsp; data want(drop=n);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;180&amp;nbsp;&amp;nbsp;&amp;nbsp; infile files truncover;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;181&amp;nbsp;&amp;nbsp;&amp;nbsp; informat ppi_alto $20.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;182&amp;nbsp;&amp;nbsp;&amp;nbsp; informat date ddmmyy10.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;183&amp;nbsp;&amp;nbsp;&amp;nbsp; informat time time8.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;184&amp;nbsp;&amp;nbsp;&amp;nbsp; format date ddmmyy10.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;185&amp;nbsp;&amp;nbsp;&amp;nbsp; format time time8.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;186&amp;nbsp;&amp;nbsp;&amp;nbsp; informat Participant_Group $10.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;187&amp;nbsp;&amp;nbsp;&amp;nbsp; informat Participant_Name $17.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;188&amp;nbsp;&amp;nbsp;&amp;nbsp; informat Block_Name $12.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;189&amp;nbsp;&amp;nbsp;&amp;nbsp; informat Trial_Name $12.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;190&amp;nbsp;&amp;nbsp;&amp;nbsp; informat Event_Name $27.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;191&amp;nbsp;&amp;nbsp;&amp;nbsp; informat Participant_response $28.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;192&amp;nbsp;&amp;nbsp;&amp;nbsp; informat key $1.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;193&amp;nbsp;&amp;nbsp;&amp;nbsp; informat pressed_or_released $7.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;194&amp;nbsp;&amp;nbsp;&amp;nbsp; informat correct_response $28.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;195&amp;nbsp;&amp;nbsp;&amp;nbsp; informat error_code $2.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;196&amp;nbsp;&amp;nbsp;&amp;nbsp; informat reaction_time best32.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;197&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;198&amp;nbsp;&amp;nbsp;&amp;nbsp; informat v1 $1.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;199&amp;nbsp;&amp;nbsp;&amp;nbsp; informat v2 $1.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;200&amp;nbsp;&amp;nbsp;&amp;nbsp; informat v3 $1.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;201&amp;nbsp;&amp;nbsp;&amp;nbsp; informat v4 $1.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;202&amp;nbsp;&amp;nbsp;&amp;nbsp; informat v5 $1.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;203&amp;nbsp;&amp;nbsp;&amp;nbsp; retain&amp;nbsp; ppi_alto date time;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;204&amp;nbsp;&amp;nbsp;&amp;nbsp; input fname $80.;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;205&amp;nbsp;&amp;nbsp;&amp;nbsp; fname=cats("&amp;amp;path.",fname);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;206&amp;nbsp;&amp;nbsp;&amp;nbsp; infile dummy filevar=fname dlm='09'x dsd truncover end=done;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;207&amp;nbsp;&amp;nbsp;&amp;nbsp; n=0;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;208&amp;nbsp;&amp;nbsp;&amp;nbsp; do while(not done);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;209&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n+1;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;210&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if n eq 1 then do;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;211&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input /ppi_alto/date time///;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;213&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else do;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;214&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input Participant_Group Participant_Name Block_Name Trial_Name&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;215&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Event_Name Participant_response key pressed_or_released&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;216&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; correct_response error_code reaction_time v1-v5;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;217&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;218&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;219&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;220&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: The infile FILES is:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unnamed Pipe Access Device,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROCESS=dir&amp;nbsp; /b C:\temp\Mexico123\*PPI.txt,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECFM=V,LRECL=256&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Stderr output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;There is not enough space on the disk.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: 0 records were read from the infile FILES.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.WANT has 0 observations and 19 variables.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.05 seconds&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.03 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Oct 2012 03:03:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101982#M21329</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-20T03:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert the attached txt file into the attached sas file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101983#M21330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Linlin:&amp;nbsp; Your solution is here: &lt;A href="http://support.sas.com/kb/41/863.html" title="http://support.sas.com/kb/41/863.html"&gt;http://support.sas.com/kb/41/863.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Oct 2012 03:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101983#M21330</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-20T03:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert the attached txt file into the attached sas file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101984#M21331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Art!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Oct 2012 03:28:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101984#M21331</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-20T03:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert the attached txt file into the attached sas file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101985#M21332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way is to use Call execute();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data x;&lt;/P&gt;&lt;P&gt;input x : $100. ;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;C:\temp\forum\folder2\CC0001-V18-190810-1.txt&lt;/P&gt;&lt;P&gt;C:\temp\forum\folder2\CC0001-V18-190810-2.txt&lt;/P&gt;&lt;P&gt;C:\temp\forum\folder2\CC0001-V18-190810-3.txt&lt;/P&gt;&lt;P&gt;C:\temp\forum\folder2\CC0001-V18-190810-4.txt&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt; set x;&lt;/P&gt;&lt;P&gt; call execute(' data _'||strip(_n_)||';&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile " '||strip(x)||' " dsd dlm="|" lrecl=10000; ' ||&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' input a : $10. b : yymmdd10.; run;'&amp;nbsp;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt; set _: ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 04:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-convert-the-attached-txt-file-into-the-attached-sas/m-p/101985#M21332</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-10-22T04:37:05Z</dc:date>
    </item>
  </channel>
</rss>

