<?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: reading from control files the  dynamic variables name in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/285748#M19557</link>
    <description>&lt;P&gt;Proc import will read the file from Excel or your source text file.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2016 05:44:51 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-07-20T05:44:51Z</dc:date>
    <item>
      <title>reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/285745#M19555</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i need help on finding a way to read column names from a control table but this control table can be updated by end users by proc import. &amp;nbsp;any idea is useful for me to experiment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the dynamic label i need to display to my dataset2. this can be change by users at any time.&lt;/P&gt;
&lt;P&gt;examples.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;col1 can be "apples" but then i can change it to "animals"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset1.&lt;/P&gt;
&lt;TABLE width="184"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;colname&lt;/TD&gt;
&lt;TD width="120"&gt;&lt;U&gt;dynamic label to display&lt;/U&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;col1&lt;/TD&gt;
&lt;TD&gt;apples&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;col2&lt;/TD&gt;
&lt;TD&gt;grapes&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;col3&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;banana&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;datset2.&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="267"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD colspan="4" rowspan="2" width="267"&gt;this dataset ( eg. col1 etc is the one that need to display by the name in the control table above )&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;date&lt;/TD&gt;
&lt;TD&gt;col1&lt;/TD&gt;
&lt;TD&gt;col2&lt;/TD&gt;
&lt;TD&gt;col3&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1/07/2016&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;8/07/2016&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;15/07/2016&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 05:26:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/285745#M19555</guid>
      <dc:creator>SASuserxx</dc:creator>
      <dc:date>2016-07-20T05:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/285747#M19556</link>
      <description>&lt;P&gt;Whats your question? Which part of the process do you need help with?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 05:43:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/285747#M19556</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-20T05:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/285748#M19557</link>
      <description>&lt;P&gt;Proc import will read the file from Excel or your source text file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 05:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/285748#M19557</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-20T05:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling for variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/285753#M19560</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for replying.&lt;/P&gt;
&lt;P&gt;im not looking to analysis the variables. i just want to rename like a label, except that label is changeable when a user updates the dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sorry wasnt clear in my post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 06:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/285753#M19560</guid>
      <dc:creator>SASuserxx</dc:creator>
      <dc:date>2016-07-20T06:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/285754#M19559</link>
      <description>&lt;P&gt;It is easy, as long as you have dataset1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data dataset1;
infile cards expandtabs;
input colname $ label $;
cards;
col1	apples
col2	grapes
col3 	banana
;
run;
 
data datset2; 	 
infile cards expandtabs;	 	 
input date : $20. col1 col2 col3 ;
cards;
1/07/2016	1	0	1
8/07/2016	0	1	1
15/07/2016	0	0	1
;
run;

proc sql noprint;
select cats(colname,'="',label,'"') into : label separated by ' '
 from dataset1;
quit;
proc datasets library=work nolist nodetails;
modify datset2;
label &amp;amp;label ;
quit;

proc print data=datset2 noobs label;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4138iD1D6DAC3AFBBD43B/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="x.png" title="x.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 06:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/285754#M19559</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-07-20T06:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling for variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/285758#M19561</link>
      <description>&lt;P&gt;As long as run the process from beginning to end each time it's updated its fine.&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp﻿&lt;/a&gt;&amp;nbsp;solution is exactly what I would suggest &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want a trigger to update the dataset when the file is updated that's an order of magnitude difference.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI - this seemed to be posted in the wrong thread. I've moved it here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 06:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/285758#M19561</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-20T06:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/290610#M19836</link>
      <description>&lt;P&gt;Hi ksharp&lt;/P&gt;
&lt;P&gt;sorry, ive been away.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the code works however im not sure why i get this error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;180&lt;/P&gt;
&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 03:34:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/290610#M19836</guid>
      <dc:creator>SASuserxx</dc:creator>
      <dc:date>2016-08-10T03:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/290622#M19837</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;please disregard the last posting, i found the answer.&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 05:52:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/290622#M19837</guid>
      <dc:creator>SASuserxx</dc:creator>
      <dc:date>2016-08-10T05:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/290627#M19839</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35408"&gt;@SASuserxx﻿&lt;/a&gt;&amp;nbsp;Please mark the correct solution please.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 06:14:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/290627#M19839</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-10T06:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/290633#M19843</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt; provided the correct solution&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; dataset1;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;infile&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;cards&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;expandtabs&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; colname $ label $;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;cards&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;var1 apple&lt;/P&gt;
&lt;P&gt;Var2 banana&lt;/P&gt;
&lt;P&gt;Var3 grape&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; datset2; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;infile&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;cards&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;expandtabs&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; date : &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$20.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Var1 Var2 Var3 ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;cards&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;1/07/2016 1 0 1&lt;/P&gt;
&lt;P&gt;8/07/2016 0 1 1&lt;/P&gt;
&lt;P&gt;15/07/2016 0 0 1&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;noprint&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; cats(colname,&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'="'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;,label,&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'"'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;into&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; : label separated by &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;' '&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; dataset1;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;datasets&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;library&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=work &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nolist&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nodetails&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;modify&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; datset2;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;label&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;label ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;print&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=datset2 &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;noobs&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;label&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;run&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 06:32:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/290633#M19843</guid>
      <dc:creator>SASuserxx</dc:creator>
      <dc:date>2016-08-10T06:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/290635#M19845</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35408"&gt;@SASuserxx﻿&lt;/a&gt;&amp;nbsp;If you navigate to his post you mark that solution as the answer and the question as solved.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 06:47:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/290635#M19845</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-10T06:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291643#M19890</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;last question, how to do i change to a dataset of the modified data rather than a proc print the result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 04:26:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291643#M19890</guid>
      <dc:creator>SASuserxx</dc:creator>
      <dc:date>2016-08-15T04:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291648#M19891</link>
      <description>&lt;PRE&gt;
The dataset has already been modified.
You can remove PROC PRINT, and use PROC CONTENTS to see what happened.

&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Aug 2016 05:09:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291648#M19891</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-15T05:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291649#M19892</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;thanks for replying&lt;/P&gt;
&lt;P&gt;i have already tried proc content, however, the modified table will then be used to join to another table to create a new dataset&lt;/P&gt;
&lt;P&gt;i just want instead of printing the data ; for it to be a dataset that can be used to create other dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 05:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291649#M19892</guid>
      <dc:creator>SASuserxx</dc:creator>
      <dc:date>2016-08-15T05:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291651#M19894</link>
      <description>&lt;P&gt;Proc print requires a dataset to print. Isn't that the same dataset you want, ie dataset2 from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp﻿&lt;/a&gt;&amp;nbsp;solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The print is only for demonstration purposes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 05:58:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291651#M19894</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-15T05:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291808#M19902</link>
      <description>&lt;P&gt;Hi Both,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for replying&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Yes, I understand that proc print&amp;nbsp;demonstrate. ive also tried the suggestion already. &lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;I tried the dataset2, however it just gives me the orginal dataset2 with the VAR1,2,3&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;1/07/2016&amp;nbsp;1&amp;nbsp;0&amp;nbsp;1&lt;BR /&gt;8/07/2016&amp;nbsp;0&amp;nbsp;1&amp;nbsp;1&lt;BR /&gt;15/07/2016&amp;nbsp;0&amp;nbsp;0&amp;nbsp;1&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Just wanting to know what option can you suggest&amp;nbsp;to&amp;nbsp;output the modified datset2 with the new labels&amp;nbsp;as a dataset rather than a sas report&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 03:05:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291808#M19902</guid>
      <dc:creator>SASuserxx</dc:creator>
      <dc:date>2016-08-16T03:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291810#M19904</link>
      <description>&lt;PRE&gt;
If you need this table be used to join to another table ,
Then apply my code on your final dataset .not the temporary table.

&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Aug 2016 03:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291810#M19904</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-16T03:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291812#M19905</link>
      <description>&lt;P&gt;Datset2 doesn't have the labels after the proc datasets?&lt;/P&gt;
&lt;P&gt;That doesn't seem correct, otherwise how can Proc print display it correctly?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 03:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291812#M19905</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-16T03:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291815#M19906</link>
      <description>&lt;P&gt;Hi Ksharp,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes&amp;nbsp;i have applied it and it works perfect.&lt;/P&gt;
&lt;P&gt;just that when i open the dataset2, its not the modified version&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i attached the file&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 04:52:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291815#M19906</guid>
      <dc:creator>SASuserxx</dc:creator>
      <dc:date>2016-08-16T04:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: reading from control files the  dynamic variables name</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291818#M19907</link>
      <description>&lt;P&gt;View your proc contents.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the LABEL is correct, but I'm suspecting you actually want to change the variable name, not the label.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does that sound correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 06:00:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/reading-from-control-files-the-dynamic-variables-name/m-p/291818#M19907</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-16T06:00:44Z</dc:date>
    </item>
  </channel>
</rss>

