<?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: Ask the experts / comment on column ...is in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480815#M31194</link>
    <description>&lt;P&gt;Thank you for the information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jul 2018 14:51:29 GMT</pubDate>
    <dc:creator>alepage</dc:creator>
    <dc:date>2018-07-24T14:51:29Z</dc:date>
    <item>
      <title>Ask the experts / comment on column ...is</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480610#M31175</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code below was provided by an Oracle user and I would like to used that code hopefully directly.&lt;/P&gt;&lt;P&gt;The creation of the table is relatively straight forward (NUM, VARCHAR() instead of NUMBER and VARCHAR2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I did not find information on comment on column ..is&lt;/P&gt;&lt;P&gt;Is it possible to translate that code into SAS code and if so, how do we do that?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CREATE TABLE D9_CADAS_CITYN_SRC (&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ID_CITYN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUMBER(15)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOT NULL,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; PREN_CITYN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VARCHAR2(70)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOT NULL,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; NOM_CITYN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VARCHAR2(70)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOT NULL,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; COD_SEX_CITYN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VARCHAR2(1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOT NULL&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHECK (COD_SEX_CITYN IN ('H','F','I'))&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;COMMENT ON TABLE D9_CADAS_CITYN_SRC IS&lt;BR /&gt;'&lt;SPAN&gt;Citizen Cadastre Table&lt;/SPAN&gt;';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;COMMENT ON COLUMN D9_CADAS_CITYN_SRC.COD_SEX_CITYN IS&lt;BR /&gt;'Code CITIZEN SEX&lt;BR /&gt;Here's the possible Value:&lt;BR /&gt;M - Man&lt;BR /&gt;W - Woman&lt;BR /&gt;U - Unknow'; ....&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 19:40:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480610#M31175</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2018-07-23T19:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ask the experts / comment on column ...is</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480611#M31176</link>
      <description>Are you adding the 'Ask the experts' portion to every question? I thought that was part of the SAS posts. Either way, a better subject line helps everyone and the 'ask the experts' portion is unnecessary.</description>
      <pubDate>Mon, 23 Jul 2018 19:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480611#M31176</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-23T19:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ask the experts / comment on column ...is</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480619#M31177</link>
      <description>&lt;P&gt;If you create the table in Oracle using Explicit Pass-Through SQL you should be able to use the exact same syntax as you would in Oracle.&amp;nbsp; I'm not sure if it's possible to do it using Implicit Pass-Through, but if you already have SQL DDL code it seems like a lot of extra work to try and translate it, if it's possible at all.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 19:58:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480619#M31177</guid>
      <dc:creator>Sven111</dc:creator>
      <dc:date>2018-07-23T19:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Ask the experts / comment on column ...is</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480656#M31178</link>
      <description>&lt;P&gt;Thanks you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 22:32:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480656#M31178</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2018-07-23T22:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ask the experts / comment on column ...is</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480660#M31179</link>
      <description>&lt;P&gt;I though it was better to add Ask the experts because I saw it on many post.&lt;/P&gt;&lt;P&gt;If you think it is unnecessary, I won't put it anymore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 22:35:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480660#M31179</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2018-07-23T22:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ask the experts / comment on column ...is</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480662#M31180</link>
      <description>&lt;P&gt;Think I've only seen it on your posts and the 'ask the experts' posts from SAS which are very different and more like a blog focused on a specific topic. It doesn't add any value to your subject line and if someone thinks it's a blog post which most are then they'll just skim over your question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How you chose to label them is ultimately your choice however, I'm a user, just like you are.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I though it was better to add Ask the experts because I saw it on many post.&lt;/P&gt;
&lt;P&gt;If you think it is unnecessary, I won't put it anymore.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 22:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480662#M31180</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-23T22:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ask the experts / comment on column ...is</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480667#M31181</link>
      <description>&lt;P&gt;And to add to what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/56496"&gt;@Sven111&lt;/a&gt; wrote:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe it's documented that the SAS/Access engines don't push comments to the database when creating the database create statement based on SAS flavor SQL or data step code. Also for this reason and to have full control always use explicit SQL pass-through for table creation with comments included.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And about "Ask the Expert..."&amp;nbsp; That's very much how Oracle forums are called but has nothing to do with the SAS forum here.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 23:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480667#M31181</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-07-23T23:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ask the experts / comment on column ...is</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480668#M31182</link>
      <description>&lt;P&gt;If you want to define a dataset then use a DATA step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data  D9_CADAS_CITYN_SRC (label='Citizen Cadastre Table');
  length ID_CITYN 8 PREN_CITYN  $70 NOM_CITYN $70 COD_SEX_CITYN $1 ;
  label COD_SEX_CITYN="Code CITIZEN SEX : M - Man, W - Woman, U - Unknown";
  stop;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might want to also define a format&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format ;
  value $SEX 'M' = 'Man' 'W'='Woman' 'U'='Unknown';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and attach it to your coded variable by adding a FORMAT statement to your data step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format COD_SEX_CITYN $sex.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jul 2018 23:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480668#M31182</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-07-23T23:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ask the experts / comment on column ...is</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480815#M31194</link>
      <description>&lt;P&gt;Thank you for the information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 14:51:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480815#M31194</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2018-07-24T14:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ask the experts / comment on column ...is</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480889#M31205</link>
      <description>&lt;P&gt;Hello Patrick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made some progress...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you have mentioned with the implicit approach the SAS / ACCESS engine does not push the comments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code is working but without the comment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;connect&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; oracle ( user=*** orapw=*** path=u.data);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;CREATE&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;TABLE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; D9_CADAS_CITYN_SRC (&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;ID_CITYN NUM(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;15&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;NOT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;NULL&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;PREN_CITYN VARCHAR(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;70&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;NOT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;NULL&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;NOM_CITYN VARCHAR(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;70&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;NOT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;NULL&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;COD_SEX_CITYN VARCHAR(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;NOT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;NULL&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;CHECK&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (COD_SEX_CITYN &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;IN&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'H'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'F'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'I'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)),&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;COD_ETAT_CIVIL VARCHAR(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;NOT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;NULL&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;CHECK&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (COD_ETAT_CIVIL &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;IN&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'C'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'M'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'D'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'S'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'V'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'J'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*COMMENT ON TABLE D9_CADAS_CITYN_SRC IS&lt;/P&gt;&lt;P&gt;'Citizen cadastre Table&amp;nbsp;*/&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The PROC SQL Pass-Through Facility is working&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;connect&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; oracle ( user=*** orapw=*** path=&lt;FONT face="Courier New"&gt;u.data&lt;/FONT&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Test &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; * &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; connection to oracle &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; * &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; D9_CADAS_CITYN_SRC) ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;disconnect&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; oracle;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;The PROC SQL Pass-Through Facility is working&amp;nbsp; but when&amp;nbsp;I want to&amp;nbsp;put more information about the variable, it does not take it&amp;nbsp;*/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Is there a way to improve the code below to make it working?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;connect&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; oracle ( user=*** orapw=*** path=&lt;FONT face="Courier New"&gt;u.data&lt;/FONT&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Test &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; * &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; connection to oracle &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (ID_CITYN NUMBER(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;15&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;NOT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;NULL&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; D9_CADAS_CITYN_SRC) &lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;disconnect&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; oracle;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 18:47:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480889#M31205</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2018-07-24T18:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Ask the experts / comment on column ...is</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480953#M31208</link>
      <description>&lt;P&gt;I think something like this should work using Explicit Pass-Through SQL:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
    CONNECT TO ORACLE ( USER=*** orapw=*** PATH=u.data)  AS OracDB;
    EXECUTE(CREATE TABLE D9_CADAS_CITYN_SRC (
               ID_CITYN             NUMBER(15)            NOT NULL
              ,PREN_CITYN           VARCHAR2(70)          NOT NULL
              ,NOM_CITYN            VARCHAR2(70)          NOT NULL
              ,COD_SEX_CITYN        VARCHAR2(1)           NOT NULL CHECK (COD_SEX_CITYN IN ('H','F','I')))
            ) BY OracDB;

    EXECUTE(COMMENT ON TABLE D9_CADAS_CITYN_SRC IS 'Citizen Cadastre Table') BY OracDB;
    EXECUTE(COMMENT ON COLUMN D9_CADAS_CITYN_SRC.COD_SEX_CITYN IS 'Code CITIZEN SEX Heres the possible Value: M - Man W - Woman U - Unknown') BY OracDB;

    DISCONNECT FROM OracDB;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Jul 2018 21:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480953#M31208</guid>
      <dc:creator>Sven111</dc:creator>
      <dc:date>2018-07-24T21:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ask the experts / comment on column ...is</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480964#M31209</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/56496"&gt;@Sven111&lt;/a&gt; demonstrated, all explicit pass-through code which doesn't return rows to SAS need to be in an EXECUTE block following syntax: EXECUTE ( &amp;lt;Oracle SQL&amp;gt; ) by Oracle;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 23:12:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/480964#M31209</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-07-24T23:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ask the experts / comment on column ...is</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/481153#M31215</link>
      <description>&lt;P&gt;Thanks seven111 for you help. it is very appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only correction I have made is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;CONNECT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;TO&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ORACLE &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;AS&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; OracDB &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; USER&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;**&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt; orapw&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;**&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt; PATH&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;u&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;/FONT&gt; instead of&lt;/P&gt;&lt;P&gt;CONNECT TO ORACLE &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; USER&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;**&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt; orapw&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;**&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt; PATH&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;u&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&amp;nbsp; AS OracDB&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 15:17:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/481153#M31215</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2018-07-25T15:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ask the experts / comment on column ...is</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/481198#M31216</link>
      <description>&lt;P&gt;Yep, you're right I was conflating the two different methods of connecting.&amp;nbsp; I usually setup all of my DB connections as LIBNAMES and then use the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME OracSAS ORACLE USER=&amp;amp;UserNm PASS=&amp;amp;PassWd DEFER=YES PATH=&amp;amp;OracServiceName CONNECTION=GLOBAL SCHEMA=&amp;amp;schemaNm DBMAX_TEXT=32000;&lt;BR /&gt;PROC SQL;
    CONNECT USING OracSAS AS OracDB;
    /* Various SQL Statements */
    DISCONNECT FROM OracDB;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But if you're specifying the connection in the CONNECT you may need to do it your way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 17:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-experts-comment-on-column-is/m-p/481198#M31216</guid>
      <dc:creator>Sven111</dc:creator>
      <dc:date>2018-07-25T17:20:59Z</dc:date>
    </item>
  </channel>
</rss>

