<?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: Applying a dataset of multiple format labels to another dataset in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Applying-a-dataset-of-multiple-format-labels-to-another-dataset/m-p/783467#M32011</link>
    <description>You can create a format from a data set. &lt;BR /&gt;An example and some basic details are here:&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1e19y6lrektafn1kj6nbvhus59w.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1e19y6lrektafn1kj6nbvhus59w.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And if you're not sure how to structure your data set, make a small example using proc format and then have it saved to a data set using the CNTLOUT option.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 01 Dec 2021 21:17:55 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-12-01T21:17:55Z</dc:date>
    <item>
      <title>Applying a dataset of multiple format labels to another dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Applying-a-dataset-of-multiple-format-labels-to-another-dataset/m-p/783466#M32010</link>
      <description>&lt;P&gt;I am working with a dataset that contains more than 100 different categorical variables, some with up to 10 possible categories. The data manager provides separate .DAT files with labels for each category, using the following structure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data format;
input label $ formatname $ type $ code;
datalines;
Not reported RESULT N 999
Positive RESULT N 1
Negative RESULT N 2
Missing RESULT N .
Small SIZE N 1
Medium SIZE N 2
Large SIZE N 3
Missing SIZE N .
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm able to import these .DAT files to create a format datasets as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;PROC IMPORT OUT= formats (RENAME=(VAR1=LABEL VAR2=FMTNAME VAR3=TYPE VAR4=CODE))
			DATAFILE="C:\\..."
            DBMS=TAB REPLACE;
     GETNAMES=no;  
     DATAROW=1; 
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is there a way to apply all labels in this formats dataset to the dataset I'm using for the project, without manually writing each entry using proc format?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 21:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Applying-a-dataset-of-multiple-format-labels-to-another-dataset/m-p/783466#M32010</guid>
      <dc:creator>EmilyAV</dc:creator>
      <dc:date>2021-12-01T21:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a dataset of multiple format labels to another dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Applying-a-dataset-of-multiple-format-labels-to-another-dataset/m-p/783467#M32011</link>
      <description>You can create a format from a data set. &lt;BR /&gt;An example and some basic details are here:&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1e19y6lrektafn1kj6nbvhus59w.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1e19y6lrektafn1kj6nbvhus59w.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And if you're not sure how to structure your data set, make a small example using proc format and then have it saved to a data set using the CNTLOUT option.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Dec 2021 21:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Applying-a-dataset-of-multiple-format-labels-to-another-dataset/m-p/783467#M32011</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-01T21:17:55Z</dc:date>
    </item>
  </channel>
</rss>

