Solved

SQL in SAS wil not work

Posted on 2011-03-03
1
378 Views
Last Modified: 2013-11-16
Hi,

What's wrong with the following code.

1729      proc sql noprint ;
1730          select DATEPART(modate) into : LastC from dictionary.tables where memname = 'grafiek_backup' and LIBNAME = 'Sicavnew' ;
NOTE: No rows were selected.
1731      quit ;

Tx
0
Comment
Question by:sonmic
1 Comment
 
LVL 11

Accepted Solution

by:
theartfuldazzler earned 500 total points
ID: 35026381
Hi

the values of "memname" and libname need to be in CAPS:

proc sql;
  .... where memname = 'GRAFIEK_BACKUP' and libname = 'SICAVNEW';

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Change variables in SQL table 6 81
sql to convert to date IF entry is in date format 4 74
How does Google get such fast response times? 5 151
query returning everything 11 87
APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now