<?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: Anticipate Field in future in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Anticipate-Field-in-future/m-p/21942#M3545</link>
    <description>Having been involved in this situation I would first say it is not a SAS programming problem but a contract problem. Your contract with the vendor should have specified the data layout and they should use that specification.&lt;BR /&gt;
&lt;BR /&gt;
If you don't start early in a project you'll be fighting re-ordered columns, differently named columns and likely different formats for years.&lt;BR /&gt;
&lt;BR /&gt;
(I was the 'vendor' in this case with the client sending us data files that changed as often as twice weekly, but the principal was the same.)</description>
    <pubDate>Wed, 29 Apr 2009 23:06:39 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2009-04-29T23:06:39Z</dc:date>
    <item>
      <title>Anticipate Field in future</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Anticipate-Field-in-future/m-p/21938#M3541</link>
      <description>Hi all,&lt;BR /&gt;
   There is a situation like this.The vendor giving us the data may or may not give all the fields every month (we get data in excel).i.e in the months jan and feb they gave us a field "Dea_code" so I populate that fileld into SAS. March data did not contain that field. So I'm forcing a " "(blank) for that filed. In april and coming months they may provide us with that field.&lt;BR /&gt;
my question is, Can we do anything programatically where I can populate the "Dea_code" if present in the excel file or if not present then populate " "(blank).&lt;BR /&gt;
&lt;BR /&gt;
This is only to avoid manual fixing for each month.&lt;BR /&gt;
Thanks for your time and help.&lt;BR /&gt;
SASPhile</description>
      <pubDate>Wed, 22 Apr 2009 12:06:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Anticipate-Field-in-future/m-p/21938#M3541</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2009-04-22T12:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Anticipate Field in future</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Anticipate-Field-in-future/m-p/21939#M3542</link>
      <description>Yes, you can define a SAS LENGTH or better an ATTRIB statement declaring the variable at some point in your SAS data-input processing flow (likely a DATA step that performs the input handling or one just after a PROC IMPORT).  That should be enough - I would not recommend coding a RETAIN statement either.&lt;BR /&gt;
&lt;BR /&gt;
This approach presumes you have standard definitions maintained for your incoming data-field structures, to mean that the length or type attribute (CHARACTER or NUMERIC) does not change between processing cycles.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 22 Apr 2009 12:38:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Anticipate-Field-in-future/m-p/21939#M3542</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-04-22T12:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Anticipate Field in future</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Anticipate-Field-in-future/m-p/21940#M3543</link>
      <description>Hi Scott,&lt;BR /&gt;
 Thanks for the tip. instead of blank " ", if I need to populate "AOB" in the field(Dea_code) if that filed is missing in the excel file and if that field exists in the future data i need to replace "AOB" with those values that are present in excel.&lt;BR /&gt;
&lt;BR /&gt;
I can hard code "AOB", but if in future I get values for "dea_code" how to replace "AOB" with those values.</description>
      <pubDate>Wed, 22 Apr 2009 14:26:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Anticipate-Field-in-future/m-p/21940#M3543</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2009-04-22T14:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Anticipate Field in future</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Anticipate-Field-in-future/m-p/21941#M3544</link>
      <description>Explore using the MISSING function in a DATA step assignment statement conditionally.&lt;BR /&gt;
&lt;BR /&gt;
From the SAS-hosted documentation, recommended reading in case you might have to support your SAS program in the future:&lt;BR /&gt;
&lt;BR /&gt;
MISSING Function&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000509996.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000509996.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
DATA STEP CONCEPTS: Reading Raw Data&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a001112330.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a001112330.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 22 Apr 2009 15:22:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Anticipate-Field-in-future/m-p/21941#M3544</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-04-22T15:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Anticipate Field in future</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Anticipate-Field-in-future/m-p/21942#M3545</link>
      <description>Having been involved in this situation I would first say it is not a SAS programming problem but a contract problem. Your contract with the vendor should have specified the data layout and they should use that specification.&lt;BR /&gt;
&lt;BR /&gt;
If you don't start early in a project you'll be fighting re-ordered columns, differently named columns and likely different formats for years.&lt;BR /&gt;
&lt;BR /&gt;
(I was the 'vendor' in this case with the client sending us data files that changed as often as twice weekly, but the principal was the same.)</description>
      <pubDate>Wed, 29 Apr 2009 23:06:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Anticipate-Field-in-future/m-p/21942#M3545</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2009-04-29T23:06:39Z</dc:date>
    </item>
  </channel>
</rss>

