<?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 Losing Labels and Formats when Connecting to Database (DB2) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Losing-Labels-and-Formats-when-Connecting-to-Database-DB2/m-p/682561#M206606</link>
    <description>&lt;P&gt;I am connecting a database using the LIBNAME statement, everything is working however it seems I am losing the labels and formats.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;libname mylib db2 schema=myschema user=myusername using=mypassword;&lt;/PRE&gt;
&lt;P&gt;Any idea?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Sep 2020 10:26:01 GMT</pubDate>
    <dc:creator>craig159753</dc:creator>
    <dc:date>2020-09-09T10:26:01Z</dc:date>
    <item>
      <title>Losing Labels and Formats when Connecting to Database (DB2)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Losing-Labels-and-Formats-when-Connecting-to-Database-DB2/m-p/682561#M206606</link>
      <description>&lt;P&gt;I am connecting a database using the LIBNAME statement, everything is working however it seems I am losing the labels and formats.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;libname mylib db2 schema=myschema user=myusername using=mypassword;&lt;/PRE&gt;
&lt;P&gt;Any idea?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 10:26:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Losing-Labels-and-Formats-when-Connecting-to-Database-DB2/m-p/682561#M206606</guid>
      <dc:creator>craig159753</dc:creator>
      <dc:date>2020-09-09T10:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Losing Labels and Formats when Connecting to Database (DB2)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Losing-Labels-and-Formats-when-Connecting-to-Database-DB2/m-p/682586#M206619</link>
      <description>&lt;P&gt;Are you reading from the remote DB2 database?&amp;nbsp; Or writing to it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LABELS and FORMATS are SAS concepts so there is no place in the remote database for SAS to store that information.&amp;nbsp; If they are important to you then add them back.&amp;nbsp; Perhaps by creating a view?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mylib db2 .... ;
proc sql;
  create myview as 
     select a.myvar label='My Label' format=myfmt. 
     from mylib.mytable a
  ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 11:52:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Losing-Labels-and-Formats-when-Connecting-to-Database-DB2/m-p/682586#M206619</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-09-09T11:52:47Z</dc:date>
    </item>
  </channel>
</rss>

