<?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: ERROR 85-322: Expecting a format name on dynamic dataset creation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-85-322-Expecting-a-format-name-on-dynamic-dataset-creation/m-p/559675#M156320</link>
    <description>&lt;P&gt;It is not throwing error now but not even displaying any values:&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;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; temp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; tmp(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;keep&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;keep_full_lst.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;array&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; vars {*} a1-a&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;count.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; i = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;count.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;va=symget(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'VARS'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;||left(i));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;vb=symget(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'VARFMT'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;||left(i));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; va vb;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vars{i} = putc(va,vb);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;drop&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; i va vb;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the vars variables are '.'&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2019 14:59:55 GMT</pubDate>
    <dc:creator>swwithsas</dc:creator>
    <dc:date>2019-05-17T14:59:55Z</dc:date>
    <item>
      <title>ERROR 85-322: Expecting a format name on dynamic dataset creation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-85-322-Expecting-a-format-name-on-dynamic-dataset-creation/m-p/559606#M156291</link>
      <description>&lt;P&gt;Below code is resolving the values of va and vb but not able to excute input function in below code:&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;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; temp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; tmp(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;keep&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;keep_full_lst.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;array&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; vars {*} a1-a&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;count.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; i = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;count.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;va=symget(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'VARS'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;||left(i));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;vb=symget(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'VARFMT'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;||left(i));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; vb;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;vars{i} = put(input(va,vb),&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;50.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;drop&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; i va vb;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Failing :&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ERROR 85-322: Expecting a format name.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 09:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-85-322-Expecting-a-format-name-on-dynamic-dataset-creation/m-p/559606#M156291</guid>
      <dc:creator>swwithsas</dc:creator>
      <dc:date>2019-05-17T09:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 85-322: Expecting a format name on dynamic dataset creation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-85-322-Expecting-a-format-name-on-dynamic-dataset-creation/m-p/559619#M156296</link>
      <description>&lt;P&gt;The input() function expects a format name as its second argument, not a character expression that results in a format name. Use the inputn() (or inputc() for character) instead. These functions expect a character expression as second argument.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 10:49:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-85-322-Expecting-a-format-name-on-dynamic-dataset-creation/m-p/559619#M156296</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-05-17T10:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 85-322: Expecting a format name on dynamic dataset creation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-85-322-Expecting-a-format-name-on-dynamic-dataset-creation/m-p/559675#M156320</link>
      <description>&lt;P&gt;It is not throwing error now but not even displaying any values:&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;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; temp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; tmp(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;keep&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;keep_full_lst.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;array&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; vars {*} a1-a&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;count.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; i = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;count.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;va=symget(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'VARS'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;||left(i));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;vb=symget(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'VARFMT'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;||left(i));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; va vb;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vars{i} = putc(va,vb);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;drop&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; i va vb;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the vars variables are '.'&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 14:59:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-85-322-Expecting-a-format-name-on-dynamic-dataset-creation/m-p/559675#M156320</guid>
      <dc:creator>swwithsas</dc:creator>
      <dc:date>2019-05-17T14:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 85-322: Expecting a format name on dynamic dataset creation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-85-322-Expecting-a-format-name-on-dynamic-dataset-creation/m-p/559693#M156333</link>
      <description>&lt;P&gt;You used putc, which creates character values, but did not create the array as character. You will find NOTEs about the conversions and invalid values in the log.&lt;/P&gt;
&lt;P&gt;Expand your array statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;array vars {*} $ 10 a1-a&amp;amp;count.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You may have to adapt the length.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 15:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-85-322-Expecting-a-format-name-on-dynamic-dataset-creation/m-p/559693#M156333</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-05-17T15:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 85-322: Expecting a format name on dynamic dataset creation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-85-322-Expecting-a-format-name-on-dynamic-dataset-creation/m-p/559704#M156340</link>
      <description>&lt;P&gt;Thanks. Sorry for silly questions. I have another one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; temp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; tmp(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;keep&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;keep_full_lst.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;array&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; vars {*} $ &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;50&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; a1-a&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;count.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; i = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;count.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;va=symget(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'VARS'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;||left(i));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;vb=symget(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'VARFMT'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;||left(i));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; va vb;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vars{i} = putc(va,vb);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;drop&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; i va vb;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked by adding $ and length, BUT, it should apply format on the column names resolved by "va". It is just printing the va values for each row of the dataset tmp.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 15:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-85-322-Expecting-a-format-name-on-dynamic-dataset-creation/m-p/559704#M156340</guid>
      <dc:creator>swwithsas</dc:creator>
      <dc:date>2019-05-17T15:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 85-322: Expecting a format name on dynamic dataset creation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-85-322-Expecting-a-format-name-on-dynamic-dataset-creation/m-p/560365#M156676</link>
      <description>&lt;P&gt;If you want to asssign formats to columns, you do that in proc datasets, and you need to dynamically create the code for that from your data source that contains the variable-format name/value pairs.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 06:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-85-322-Expecting-a-format-name-on-dynamic-dataset-creation/m-p/560365#M156676</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-05-21T06:48:12Z</dc:date>
    </item>
  </channel>
</rss>

