<?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: PROC ACCESS - View Issue in Developers</title>
    <link>https://communities.sas.com/t5/Developers/PROC-ACCESS-View-Issue/m-p/647265#M802</link>
    <description>&lt;P&gt;I can't directly help you since I haven't used ACCESS/DB2 in 9 months or so. However, this is what I found:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/Accessing-db2-column-that-has-name-more-than-18-characters/td-p/515308" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/Administration-and-Deployment/Accessing-db2-column-that-has-name-more-than-18-characters/td-p/515308&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Search terms I used:&amp;nbsp;SAS ACCESS DB2 17 COLUMN NAME&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know you wanted a quick direction . Hope that helps.&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2020 23:16:51 GMT</pubDate>
    <dc:creator>AlanC</dc:creator>
    <dc:date>2020-05-12T23:16:51Z</dc:date>
    <item>
      <title>PROC ACCESS - View Issue</title>
      <link>https://communities.sas.com/t5/Developers/PROC-ACCESS-View-Issue/m-p/646995#M798</link>
      <description>&lt;P&gt;I am trying to create a view using proc access in our legacy system which uses DB2 on Z/OS. When I create view and try to run it I get the below error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: View selection criteria or where clause is not valid.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I do not have any where clause in the view I am creating.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is select all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am guessing there issue with one of the column name being more than 17 char in length in DB2. When I drop that column in data step I do not get the above error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Do we have any restriction on column names length in access. I am running ver 8.2 on mainframe, but not sure if access was supported post v6/v7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) What is a work around I can use if that is the restriction causing the view to fail? In access, else will have to go to SQL pass through.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The descriptor and the view statements are below&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC ACCESS DBMS=DB2;                            
   CREATE &amp;amp;OUTNAME..&amp;amp;ACCESS..ACCESS;             
   TABLE=&amp;amp;DBNAME..&amp;amp;POTPOV&amp;amp;ACCESS;                
   SSID=&amp;amp;ESESID;                                 
   ASSIGN=N;                                     
   LIST ALL;                                     
RUN;                                             
                                                 
PROC ACCESS DBMS=DB2 ACCDESC=&amp;amp;OUTNAME..&amp;amp;ACCESS ; 
   CREATE &amp;amp;OUTNAME..&amp;amp;VIEWNAME..VIEW;             
   SELECT ALL;                                   
   UN=Y;                                         
   LIST VIEW;                                    &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I see the log I can see one thing, the MQ_STATUS_TIMESTAM is actually MQ_STATUS_TIMESTAMP (With P in name). I tested theory of column length &amp;gt; 17 by creating another view which gave me same error for column name &amp;gt; 17 char and if I drop the column it works fine:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Function: CREATE  Descriptors- access: RNSENT view: RNSENTX    
  Item  Column Name        SAS Name Format                     
  1     TOLY_Cxxx         TOLY_Cxx $1.            * SELECTED *
  2     TOLY_BRCH          TOLY_BRC $2.            * SELECTED *
  3     TOLY_Pol         TOLY_POL $7.            * SELECTED *
  33    MQ_STATUS_TIMESTAM MQ_STATU DATETIME30.6   * SELECTED *&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 May 2020 08:17:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/PROC-ACCESS-View-Issue/m-p/646995#M798</guid>
      <dc:creator>Amitkmr1979</dc:creator>
      <dc:date>2020-05-12T08:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ACCESS - View Issue</title>
      <link>https://communities.sas.com/t5/Developers/PROC-ACCESS-View-Issue/m-p/647263#M801</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any one who has faced similar issue while creating access descriptors and views? Or if anyone can pass me the SAS mail ID where I can send out the clarification/question.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 22:35:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/PROC-ACCESS-View-Issue/m-p/647263#M801</guid>
      <dc:creator>Amitkmr1979</dc:creator>
      <dc:date>2020-05-12T22:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ACCESS - View Issue</title>
      <link>https://communities.sas.com/t5/Developers/PROC-ACCESS-View-Issue/m-p/647265#M802</link>
      <description>&lt;P&gt;I can't directly help you since I haven't used ACCESS/DB2 in 9 months or so. However, this is what I found:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/Accessing-db2-column-that-has-name-more-than-18-characters/td-p/515308" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/Administration-and-Deployment/Accessing-db2-column-that-has-name-more-than-18-characters/td-p/515308&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Search terms I used:&amp;nbsp;SAS ACCESS DB2 17 COLUMN NAME&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know you wanted a quick direction . Hope that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 23:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/PROC-ACCESS-View-Issue/m-p/647265#M802</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2020-05-12T23:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ACCESS - View Issue</title>
      <link>https://communities.sas.com/t5/Developers/PROC-ACCESS-View-Issue/m-p/647267#M803</link>
      <description>&lt;P&gt;Thanks AlanC, this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 23:52:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/PROC-ACCESS-View-Issue/m-p/647267#M803</guid>
      <dc:creator>Amitkmr1979</dc:creator>
      <dc:date>2020-05-12T23:52:46Z</dc:date>
    </item>
  </channel>
</rss>

