<?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: Write float name in tab_table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Write-float-name-in-tab-table/m-p/617379#M180907</link>
    <description>so, I can't pass a variable to the column name?</description>
    <pubDate>Wed, 15 Jan 2020 07:54:51 GMT</pubDate>
    <dc:creator>Liliya95</dc:creator>
    <dc:date>2020-01-15T07:54:51Z</dc:date>
    <item>
      <title>Write float name in tab_table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-float-name-in-tab-table/m-p/617376#M180905</link>
      <description>&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;Hello!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;Please,help, &amp;nbsp;how can I write a number in the column name when creating the tap_table repository?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;I&amp;nbsp;need to create a table where the first column is called payment, and the rest have a name - numbers from 1 to 30.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All fields are of type float.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code below indicates how the recording occurs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but there is an error in the line payments.add_column (i_column_char, 'float');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It does not allow you to write a number as a name.&lt;/SPAN&gt; &lt;SPAN&gt;How to write it down correctly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Convert a number to varchar type.&lt;/SPAN&gt;&amp;nbsp;Did&lt;SPAN&gt; not help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The translation was written as dcl varchar i_column_char; i_column_char= put(i_column ,4.0);　&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 
method execute(varchar(50) AppId,double RtdmId, varchar(50) NaturalPersonID, double CreID, in_out double incomeBKI_out, in_out package tap_table payments); 　

 

dcl int i_column interval_out;　

dcl varchar i_column_char;　

i_column=1;　　

 

payments.add_column('payment','float');　

do while (i_column &amp;lt;= 30); 　

payments.add_column(i_column_char,'float');　

i_column=i_colimn+1;　

end; 　

　

end;

 &lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Jan 2020 07:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-float-name-in-tab-table/m-p/617376#M180905</guid>
      <dc:creator>Liliya95</dc:creator>
      <dc:date>2020-01-15T07:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Write float name in tab_table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-float-name-in-tab-table/m-p/617378#M180906</link>
      <description>&lt;P&gt;Have the names start with a character or an underline.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 07:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-float-name-in-tab-table/m-p/617378#M180906</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-15T07:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Write float name in tab_table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-float-name-in-tab-table/m-p/617379#M180907</link>
      <description>so, I can't pass a variable to the column name?</description>
      <pubDate>Wed, 15 Jan 2020 07:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-float-name-in-tab-table/m-p/617379#M180907</guid>
      <dc:creator>Liliya95</dc:creator>
      <dc:date>2020-01-15T07:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Write float name in tab_table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-float-name-in-tab-table/m-p/617380#M180908</link>
      <description>&lt;P&gt;If the variable contains a valid SAS name, you can.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 07:55:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-float-name-in-tab-table/m-p/617380#M180908</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-15T07:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Write float name in tab_table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-float-name-in-tab-table/m-p/617381#M180909</link>
      <description>when I write &lt;BR /&gt;&lt;BR /&gt;dcl varchar name;&lt;BR /&gt;name='one';&lt;BR /&gt;tap_table.add_column(name,'float');&lt;BR /&gt;&lt;BR /&gt;I have error. Why?&lt;BR /&gt;name contains character</description>
      <pubDate>Wed, 15 Jan 2020 08:05:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-float-name-in-tab-table/m-p/617381#M180909</guid>
      <dc:creator>Liliya95</dc:creator>
      <dc:date>2020-01-15T08:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Write float name in tab_table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-float-name-in-tab-table/m-p/617384#M180910</link>
      <description>Work!&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;i_column=1;&lt;BR /&gt; _column_char='_payment';&lt;BR /&gt;&lt;BR /&gt;payments.add_column('payment','float');&lt;BR /&gt; payments.add_column(_column_char,'float');&lt;BR /&gt; payments.add_column('payment'||i_column,'float');&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;my logs:&lt;BR /&gt;payment payment&lt;BR /&gt;payment _payment&lt;BR /&gt;payment payment1&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Jan 2020 08:16:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-float-name-in-tab-table/m-p/617384#M180910</guid>
      <dc:creator>Liliya95</dc:creator>
      <dc:date>2020-01-15T08:16:25Z</dc:date>
    </item>
  </channel>
</rss>

