<?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 Data formatting in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-formatting/m-p/65664#M14263</link>
    <description>Hi !&lt;BR /&gt;
&lt;BR /&gt;
I do not know how to access it ?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!

Message was edited by: sasnewbee</description>
    <pubDate>Thu, 19 Aug 2010 19:40:07 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-08-19T19:40:07Z</dc:date>
    <item>
      <title>Data formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-formatting/m-p/65664#M14263</link>
      <description>Hi !&lt;BR /&gt;
&lt;BR /&gt;
I do not know how to access it ?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!

Message was edited by: sasnewbee</description>
      <pubDate>Thu, 19 Aug 2010 19:40:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-formatting/m-p/65664#M14263</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-19T19:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Data formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-formatting/m-p/65665#M14264</link>
      <description>You have to be more specific.  From what you have provided one can only guess.  My guess is that you want to export your data to a text file.  If that is correct, you can either use proc export or, if you need more control, take a look at:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://kb.iu.edu/data/acxh.html" target="_blank"&gt;http://kb.iu.edu/data/acxh.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
HTH,&lt;BR /&gt;
Art</description>
      <pubDate>Thu, 19 Aug 2010 21:59:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-formatting/m-p/65665#M14264</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2010-08-19T21:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Data formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-formatting/m-p/65666#M14265</link>
      <description>Hi:&lt;BR /&gt;
  Poor JOHN SMITH is really getting a workout! Is this data and task at all related to your previous posts? Like these??&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/message.jspa?messageID=40884#40884" target="_blank"&gt;http://support.sas.com/forums/message.jspa?messageID=40884#40884&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=39405駭" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=39405駭&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=39561骉" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=39561骉&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=39972鰤" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=39972鰤&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=40211鴓" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=40211鴓&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
You ask this question in your post:&lt;BR /&gt;
&lt;B&gt;&lt;BR /&gt;
Basically, T_LST table is a work table that is created, So I do not know how to access it ?&lt;BR /&gt;
&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
You would access T_LST by either a ONE-level or TWO-level name in a DATA step program. Either WORK.T_LST or just T_LST. If you mean that your SAS session ends and you need to get to T_LST in a new session, then you would either have to run your SQL step again or create T_LST in a permanent library. Something like:&lt;BR /&gt;
[pre]&lt;BR /&gt;
libname KEEPABIT 'c:\temp\mydata';&lt;BR /&gt;
                       &lt;BR /&gt;
proc sql;&lt;BR /&gt;
create table KEEPABIT.T_LST as select&lt;BR /&gt;
a.Cust_ID, a.S_ID, a.fld_txt&lt;BR /&gt;
from Pty_nm&lt;BR /&gt;
group by 1, 2;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
             &lt;BR /&gt;
*** OR; &lt;BR /&gt;
           &lt;BR /&gt;
proc sort data=work.t_lst out=keepabit.t_lst;&lt;BR /&gt;
  by ...;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                       &lt;BR /&gt;
About your code:&lt;BR /&gt;
[pre]&lt;BR /&gt;
If first.s_id then lngname = ' ';&lt;B&gt;&lt;BR /&gt;
Some kind of loop - Trim(fld_txt) ||  &lt;/B&gt;&lt;BR /&gt;
If last.s_id then Output;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                        &lt;BR /&gt;
I believe that "Some kind of loop - Trim(fld_txt) || " has been explained or discussed in some of the answers to your previous posts.&lt;BR /&gt;
     &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 19 Aug 2010 22:09:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-formatting/m-p/65666#M14265</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-08-19T22:09:29Z</dc:date>
    </item>
  </channel>
</rss>

