BookmarkSubscribeRSS Feed
omerzeybek
Obsidian | Level 7

I was building an detailed project with lots of queries, however suddenly my project started to give the error message, i submitted bellow. I am not sure whats the problem because i was able to join tables previously

Error Message:

   NOTE: Writing TAGSETS.SASREPORT12(EGSR) Body file: EGSR

12        

13         GOPTIONS ACCESSIBLE;

14         %_eg_conditional_dropds(WORK.BASE);

15        

16         PROC SQL;

17            CREATE TABLE WORK.BASE AS

18            SELECT DISTINCT t1.MUSTERI_NO,

19                   t1.BANKA_MUSTERI_NO,

20                   t1.MUSTERI_NO1,

21                   t1.KKLISTE,

22                   t1.URUN_ADI,

23                   t2.TNA

24               FROM WORK.KKJOIN t1 LEFT JOIN WORK.TNA t2 ON (t1.MUSTERI_NO = t2.MUSTERI_NO);

ERROR: Sort execution failure.

NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.

25         QUIT;

NOTE: The SAS System stopped processing this step because of errors.

NOTE: PROCEDURE SQL used (Total process time):

      real time           2.01 seconds

      cpu time            1.90 seconds

4 REPLIES 4
DR_Majeti
Quartz | Level 8

Hi,

Hi please can you give the exact dataset names and variables. Because the syntax you used in from is little bit not in proper order(generally dataset names

doesnot contain any blanks).

omerzeybek
Obsidian | Level 7

Hi Dr.Majeti

My dataset names in this query are Work.KKJOIN and Work.TNA

KKJOIN includes my account listings and TNA includes attributes whicch all my accounts have

DR_Majeti
Quartz | Level 8

Proc Sql;

Create table work.base as

  Select *

  From work.kkjoin left join work.tna

           on work.kkjoin.musteri_no = work.tna.musteri_no;

Quit;

Please try this...

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1649 views
  • 0 likes
  • 3 in conversation