<?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: Using EG to transform Semi Structured Log Data in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-EG-to-transform-Semi-Structured-Log-Data/m-p/288795#M19692</link>
    <description>&lt;PRE&gt;
If you know the exactly number of variables, that would be easy.

data want;
 set have(rename=(F1-F29=T1-T29));
run;



&lt;/PRE&gt;</description>
    <pubDate>Tue, 02 Aug 2016 02:43:45 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-08-02T02:43:45Z</dc:date>
    <item>
      <title>Using EG to transform Semi Structured Log Data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-EG-to-transform-Semi-Structured-Log-Data/m-p/288789#M19691</link>
      <description>&lt;P&gt;Hi, I have a data set in CSV that looks like the following. T1 - T29 are actually the column names for the data columns that follows at the bottom.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4391i88BD8887883453A5/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="semistructured.JPG" title="semistructured.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I use SAS EG to assign the column names (T1, T2, T3, etc) to the columns that i extracted using the import wizard as seen below, instead of the default column names F1, F2, etc?&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4390i4DF0297D109D669E/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="importeddata.JPG" title="importeddata.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any input! thanks very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nat&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 01:59:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-EG-to-transform-Semi-Structured-Log-Data/m-p/288789#M19691</guid>
      <dc:creator>nat1</dc:creator>
      <dc:date>2016-08-02T01:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using EG to transform Semi Structured Log Data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-EG-to-transform-Semi-Structured-Log-Data/m-p/288795#M19692</link>
      <description>&lt;PRE&gt;
If you know the exactly number of variables, that would be easy.

data want;
 set have(rename=(F1-F29=T1-T29));
run;



&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Aug 2016 02:43:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-EG-to-transform-Semi-Structured-Log-Data/m-p/288795#M19692</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-02T02:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using EG to transform Semi Structured Log Data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-EG-to-transform-Semi-Structured-Log-Data/m-p/288802#M19694</link>
      <description>&lt;P&gt;Thanks but the column names are actually the ones hidden in black (for confidentiality purposes), so its not as easy as "T1" and "T2" etc. It looks something like P1TU45S and Q_24FTG, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to import that column separately and transpose so I would have a table with a single row where the column name is the same as the data in the first row. I thought it would work if I appended these two tables but it didnt.. furthermore the formats don't match (i.e. column name table has all characters and data table is numeric, hence no match).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nat&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 03:24:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-EG-to-transform-Semi-Structured-Log-Data/m-p/288802#M19694</guid>
      <dc:creator>nat1</dc:creator>
      <dc:date>2016-08-02T03:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using EG to transform Semi Structured Log Data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-EG-to-transform-Semi-Structured-Log-Data/m-p/288810#M19696</link>
      <description>&lt;PRE&gt;
If you can make a MAP file to display how to rename them, That would be easy.


data map;
input old $ new $;
cards;
F1 T1
F2 T2
;
run;

data _null_;
 set map end=last;
 if _n_=1 then call execute('proc datasets lib=work nolist nodetails;modify have;rename ');
 call execute(catx('=',old,new));
 if last then call execute(';quit;');
run;


&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Aug 2016 04:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-EG-to-transform-Semi-Structured-Log-Data/m-p/288810#M19696</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-02T04:11:53Z</dc:date>
    </item>
  </channel>
</rss>

