<?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: Character expression requires character format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Character-expression-requires-character-format/m-p/772041#M245087</link>
    <description>&lt;P&gt;For testing: Change in the node that creates view W3ZR3S9 the output to table and then execute this node. That will tell you directly where things don't match.&lt;/P&gt;
&lt;P&gt;Fix the issue and only then change back to a view.&lt;/P&gt;
&lt;P&gt;Also: At least for "important" tables it's worth to put in the little bit of extra effort and change the generated table name to something more "human readable".&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Oct 2021 00:37:37 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2021-10-05T00:37:37Z</dc:date>
    <item>
      <title>ERROR: Character expression requires character format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Character-expression-requires-character-format/m-p/771746#M244959</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="issue1.PNG" style="width: 287px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64315iC02C294C85CD65BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="issue1.PNG" alt="issue1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I got this Error after Updating the data.. is it data level Error or Programming level Error ???&lt;/P&gt;&lt;P&gt;Because Before data Update, This logic was working Properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suggest me what will I Do ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Variables and Data Type in User Written" style="width: 761px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64316i9DBAA523D7E4A6A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Issue2.PNG" alt="Variables and Data Type in User Written" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Variables and Data Type in User Written&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Variables and Data Type in User Written" style="width: 769px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64317i517E03BE18386F58/image-size/large?v=v2&amp;amp;px=999" role="button" title="issue3.PNG" alt="Variables and Data Type in User Written" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Variables and Data Type in User Written&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank You!!!&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 10:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Character-expression-requires-character-format/m-p/771746#M244959</guid>
      <dc:creator>Shakti_Sourav</dc:creator>
      <dc:date>2021-10-02T10:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Character expression requires character format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Character-expression-requires-character-format/m-p/771759#M244967</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/390064"&gt;@Shakti_Sourav&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is difficult to say from the available information. The source to the user-written transformation is not shown, and the log is not included. Please do the following:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Run the code again.&lt;/LI&gt;
&lt;LI&gt;Perform a metadata update on the input data set to the user-written transformation (right click on the work tables). One thing is the metadata registrations you see in the column list, another is the physical reality behind it, and the userwtitten transformation does not care about metadata.&lt;/LI&gt;
&lt;LI&gt;Post the step log instead of a screenshot of the error box.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Sat, 02 Oct 2021 13:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Character-expression-requires-character-format/m-p/771759#M244967</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2021-10-02T13:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Character expression requires character format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Character-expression-requires-character-format/m-p/771760#M244968</link>
      <description>&lt;P&gt;You would need to share the SAS log with us. Just guessing based on what you show us:&lt;/P&gt;
&lt;P&gt;You've changed somewhere in metadata a column from numerical to character and you've got some expression in the code which expects the variable to be character.&lt;/P&gt;
&lt;P&gt;You are using a view as input. From the looks of it the column in the physical data the view uses is still numerical. Changing the data type in metadata doesn't change the data type in the physical data. This only happens when you run the code that re-creates the physical data using the changed metadata.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure the metadata data type which creates the physical data use by the view has the right data type and run your DI job from the node which then creates the physical data. ....and should this node not always recreate the physical data (i.e. because it's an append) then manually delete the physical SAS table and re-run the whole job.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And on a side note: If you've got a user written code node then change the default text "user written" to something more descriptive like "uw - &amp;lt;very short description what the logic does"&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 13:54:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Character-expression-requires-character-format/m-p/771760#M244968</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-10-02T13:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Character expression requires character format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Character-expression-requires-character-format/m-p/771862#M245005</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="issue3.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64332i6B054AC6DD269C0A/image-size/large?v=v2&amp;amp;px=999" role="button" title="issue3.jpg" alt="issue3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got this error in User written log.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 07:26:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Character-expression-requires-character-format/m-p/771862#M245005</guid>
      <dc:creator>Shakti_Sourav</dc:creator>
      <dc:date>2021-10-04T07:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Character expression requires character format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Character-expression-requires-character-format/m-p/771863#M245006</link>
      <description>&lt;P&gt;This user written code has more than 2500 lines, what you show us is just the symptom, not the cause. What we see is that the dataset is not a dataset, but a SQL view. Look where the view is defined, and then see which of the source variables has the type character when numeric is expected.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 07:47:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Character-expression-requires-character-format/m-p/771863#M245006</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-04T07:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Character expression requires character format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Character-expression-requires-character-format/m-p/772041#M245087</link>
      <description>&lt;P&gt;For testing: Change in the node that creates view W3ZR3S9 the output to table and then execute this node. That will tell you directly where things don't match.&lt;/P&gt;
&lt;P&gt;Fix the issue and only then change back to a view.&lt;/P&gt;
&lt;P&gt;Also: At least for "important" tables it's worth to put in the little bit of extra effort and change the generated table name to something more "human readable".&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 00:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Character-expression-requires-character-format/m-p/772041#M245087</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-10-05T00:37:37Z</dc:date>
    </item>
  </channel>
</rss>

