<?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 graphs with work.import problem in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/graphs-with-work-import-problem/m-p/739932#M231030</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running into the same problem. I am using work.import to convert data from excel into SAS. When I am trying to create a line graph, I am getting a very weird graph, as shown below. I am not really sure how to fix this, or why I am getting this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unnamed.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59153iB78EC9FE43B55751/image-size/medium?v=v2&amp;amp;px=400" role="button" title="unnamed.png" alt="unnamed.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Sat, 08 May 2021 01:21:59 GMT</pubDate>
    <dc:creator>ffaseehu915</dc:creator>
    <dc:date>2021-05-08T01:21:59Z</dc:date>
    <item>
      <title>graphs with work.import problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/graphs-with-work-import-problem/m-p/739932#M231030</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running into the same problem. I am using work.import to convert data from excel into SAS. When I am trying to create a line graph, I am getting a very weird graph, as shown below. I am not really sure how to fix this, or why I am getting this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unnamed.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59153iB78EC9FE43B55751/image-size/medium?v=v2&amp;amp;px=400" role="button" title="unnamed.png" alt="unnamed.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 01:21:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/graphs-with-work-import-problem/m-p/739932#M231030</guid>
      <dc:creator>ffaseehu915</dc:creator>
      <dc:date>2021-05-08T01:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: graphs with work.import problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/graphs-with-work-import-problem/m-p/739954#M231043</link>
      <description>&lt;P&gt;A "line graph" of frequencies like that means that what ever you are counting only has one observation for each xaxis value. So I am not sure that particular graph can be "fixed" to display much else. Since the variable on the X axis is character it is getting treated as "discrete" so each value is attempting to display but there are so many the text overlaps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am going to make some guesses here, so you need to confirm or deny.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, both of the variables are character from the image you show. From the sort of values I can see from the horizontal axis it appears the values are 5 characters, consisting of digits starting with 4. That is a strong indicator that the value in Excel may have been a Date for the variable on the xaxis But due to some issue the value was treated as character.&lt;/P&gt;
&lt;P&gt;You can search this forum and find hundreds of examples where "importing" Excel files results in variables of an unexpected type and specifically dates as character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the data set name I am also guessing that either Proc Import or a wizard was used to "import" the data. Both of these have issues depending on the content of the the Excel file.&lt;/P&gt;
&lt;P&gt;Common problems that can do this to supposed date values:&lt;/P&gt;
&lt;P&gt;1) more than one row of "header" information in the Excel file. If this is the case, make sure there is only one row with column headings in the Excel file.&lt;/P&gt;
&lt;P&gt;2) Some cells in the column have non-"date" values. Either manually entered as character or words like "Missing" "NA" "NULL" "To be determined" or something else that makes the import treat the values as character. One fix: remove such from the file. Other fix, Save the file as CSV and write a data step to read the data with a data step and set the properties of the data with informat or attrib statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or search the forum for the Excel date character to numeric SAS date values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With a variable that is numeric and a date with a proper SAS date format such as DATE9. applied to the axis variable you should get tick marks at some intervals and values that look like dates. If you use a format that would group dates to an interval like YYMON5. , which would display a date like 31Mar2021 as 21MAR then the group imposed on the date should count the values in the month that appears.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 09:31:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/graphs-with-work-import-problem/m-p/739954#M231043</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-08T09:31:38Z</dc:date>
    </item>
  </channel>
</rss>

