<?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: Replacing PROC FORMAT INVALUE with sequential dataset in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Replacing-PROC-FORMAT-INVALUE-with-sequential-dataset/m-p/29233#M6841</link>
    <description>Scott,&lt;BR /&gt;
&lt;BR /&gt;
You are correct in your assumptions - the sequential dataset &lt;B&gt;IS&lt;/B&gt; intended to replace the hard-coded values.  I have not worked with PROC FORMAT before, but I will give your suggestion a try and let you know how it works.  Your help is greatly appreciated - I know only a little SAS, so did not know where to even start looking for the answer..&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
GES60</description>
    <pubDate>Tue, 15 Mar 2011 13:44:09 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2011-03-15T13:44:09Z</dc:date>
    <item>
      <title>Replacing PROC FORMAT INVALUE with sequential dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Replacing-PROC-FORMAT-INVALUE-with-sequential-dataset/m-p/29231#M6839</link>
      <description>I need to replace an existing INVALUE with a sequential dataset, and do not have clue 1 on how to do this.  I am working with SAS 9.1.3 on a z/OS.  The existing code looks like this:&lt;BR /&gt;
&lt;BR /&gt;
 PROC FORMAT;                              &lt;BR /&gt;
     INVALUE $FEIN '530075853' = '01'      &lt;BR /&gt;
                   '521264413' = '02'      &lt;BR /&gt;
                   '751588101' = '03'      &lt;BR /&gt;
                   '520794134' = '06';     &lt;BR /&gt;
&lt;BR /&gt;
and is then used in an INPUT statement:&lt;BR /&gt;
DATA LIAB;                             &lt;BR /&gt;
   INFILE INPUT01;                     &lt;BR /&gt;
   INPUT @1       COMP       $FEIN.    &lt;BR /&gt;
         @13      LOB        $CHAR1.   ;&lt;BR /&gt;
&lt;BR /&gt;
after the INPUT is the following:&lt;BR /&gt;
KEEP COMP LOB;&lt;BR /&gt;
&lt;BR /&gt;
The input file will only have 5 or 6 records.&lt;BR /&gt;
&lt;BR /&gt;
Any thoughts or suggestions will be greatly appreciated&lt;BR /&gt;
&lt;BR /&gt;
Thx</description>
      <pubDate>Mon, 14 Mar 2011 20:56:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Replacing-PROC-FORMAT-INVALUE-with-sequential-dataset/m-p/29231#M6839</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-03-14T20:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing PROC FORMAT INVALUE with sequential dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Replacing-PROC-FORMAT-INVALUE-with-sequential-dataset/m-p/29232#M6840</link>
      <description>"Replace with sequential dataset" - what does this mean?  Do you want to eliminate the use of the INPUT/INFORMAT $FEIN and change the SAS code to somehow take the possible input/output data-values and maintain then in a sequential file?  &lt;BR /&gt;
&lt;BR /&gt;
And, if so, would you expect your SAS program to read the sequential file with each execution, take the current data-values and generate your SAS statements to perform the data translation?&lt;BR /&gt;
&lt;BR /&gt;
Have you looked at PROC FORMAT and CNTLIN=&lt;SAS_FILE&gt;  where you would have a DATA step to read your external (sequential) file and generate the SAS-required variables needed to use PROC FORMAT and input your equivalent INVALUE parameters from a SAS file?&lt;BR /&gt;
&lt;BR /&gt;
Suggest reviewing the SAS DOC for PROC FORMAT (not having to do with z/OS specifically, other than reading / inputting your external file).&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
proc format cntlin invalue site:sas.com&lt;/SAS_FILE&gt;</description>
      <pubDate>Mon, 14 Mar 2011 21:46:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Replacing-PROC-FORMAT-INVALUE-with-sequential-dataset/m-p/29232#M6840</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-03-14T21:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing PROC FORMAT INVALUE with sequential dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Replacing-PROC-FORMAT-INVALUE-with-sequential-dataset/m-p/29233#M6841</link>
      <description>Scott,&lt;BR /&gt;
&lt;BR /&gt;
You are correct in your assumptions - the sequential dataset &lt;B&gt;IS&lt;/B&gt; intended to replace the hard-coded values.  I have not worked with PROC FORMAT before, but I will give your suggestion a try and let you know how it works.  Your help is greatly appreciated - I know only a little SAS, so did not know where to even start looking for the answer..&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
GES60</description>
      <pubDate>Tue, 15 Mar 2011 13:44:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Replacing-PROC-FORMAT-INVALUE-with-sequential-dataset/m-p/29233#M6841</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-03-15T13:44:09Z</dc:date>
    </item>
  </channel>
</rss>

