<?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 Format works in SAS EG but not in SAS VA 7.1 in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Format-works-in-SAS-EG-but-not-in-SAS-VA-7-1/m-p/232907#M2732</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to convert a numeric year to a character year field.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;put(VW_client_Social.BroadCastYear,yyyy4.) &amp;nbsp;aS BroadCastYear_chr&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;works just fine in SAS EG but when I try the same expression in VA 7.1&amp;nbsp;, I get this error -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: The format YYYY was not found or could not be loaded.&lt;BR /&gt;ERROR: Character expression requires a character format.&lt;BR /&gt;3 Th&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;saspert.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2015 16:02:59 GMT</pubDate>
    <dc:creator>saspert</dc:creator>
    <dc:date>2015-11-03T16:02:59Z</dc:date>
    <item>
      <title>Format works in SAS EG but not in SAS VA 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Format-works-in-SAS-EG-but-not-in-SAS-VA-7-1/m-p/232907#M2732</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to convert a numeric year to a character year field.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;put(VW_client_Social.BroadCastYear,yyyy4.) &amp;nbsp;aS BroadCastYear_chr&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;works just fine in SAS EG but when I try the same expression in VA 7.1&amp;nbsp;, I get this error -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: The format YYYY was not found or could not be loaded.&lt;BR /&gt;ERROR: Character expression requires a character format.&lt;BR /&gt;3 Th&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;saspert.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 16:02:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Format-works-in-SAS-EG-but-not-in-SAS-VA-7-1/m-p/232907#M2732</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2015-11-03T16:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Format works in SAS EG but not in SAS VA 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Format-works-in-SAS-EG-but-not-in-SAS-VA-7-1/m-p/232911#M2733</link>
      <description>Shouldn't it be year4.?</description>
      <pubDate>Tue, 03 Nov 2015 16:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Format-works-in-SAS-EG-but-not-in-SAS-VA-7-1/m-p/232911#M2733</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-11-03T16:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Format works in SAS EG but not in SAS VA 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Format-works-in-SAS-EG-but-not-in-SAS-VA-7-1/m-p/232927#M2734</link>
      <description>&lt;P&gt;if I change yyyy4. to year4, Sas eg runs fine but returns 1965 as the output&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;while SAS VA gives the below error &amp;nbsp;-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Character expression requires a character format.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 17:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Format-works-in-SAS-EG-but-not-in-SAS-VA-7-1/m-p/232927#M2734</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2015-11-03T17:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Format works in SAS EG but not in SAS VA 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Format-works-in-SAS-EG-but-not-in-SAS-VA-7-1/m-p/232936#M2735</link>
      <description>It sounds like your variable in VA isn't numeric. Verify the variable type.</description>
      <pubDate>Tue, 03 Nov 2015 18:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Format-works-in-SAS-EG-but-not-in-SAS-VA-7-1/m-p/232936#M2735</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-11-03T18:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Format works in SAS EG but not in SAS VA 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Format-works-in-SAS-EG-but-not-in-SAS-VA-7-1/m-p/232939#M2736</link>
      <description>&lt;P&gt;Date manipulation in SAS Visual Analytics needs to be done differently than Base SAS. There is no put function available. You need to use the TreatAs function. See this recent post for ideas&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-age-from-birthdate-using-SAS-VA/m-p/232592#U232592" target="_blank"&gt;https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-age-from-birthdate-using-SAS-VA/m-p/232592#U232592&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 18:37:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Format-works-in-SAS-EG-but-not-in-SAS-VA-7-1/m-p/232939#M2736</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2015-11-03T18:37:21Z</dc:date>
    </item>
  </channel>
</rss>

