BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
hellohere
Pyrite | Level 9

Running data macros with huge loops.  Need merge data tables and does not like to create table a table(so there is

SQL WARNING, ... recursively reference...). The loop contains lots of merges like this. Surely I can create new tables, 

BUT for speed and storage issue, prefer not to.  But the LOG is choke of warning MSG like this. 

 

Any one knows how to turn off. Thanks, 

 

There is a post, similar to my problem. but no solution. 

https://communities.sas.com/t5/SAS-Programming/How-do-I-turn-off-log-warnings-in-bacth-mode/m-p/4456...

1 ACCEPTED SOLUTION

Accepted Solutions
Oligolas
Barite | Level 11

if you mean your log shows the warning:

"WARNING: This CREATE TABLE statement recursively references the target table. A consequence of this is a possible data integrity problem."

then the best way would be not to overwrite your datasets but to create new ones.

 

You can nevertheless add this option to your PROC SQL:

PROC SQL undo_policy=none;
<statements>
QUIT;

or specify the system option:

options SQLUNDOPOLICY=NONE;

 

 

________________________

- Cheers -

View solution in original post

1 REPLY 1
Oligolas
Barite | Level 11

if you mean your log shows the warning:

"WARNING: This CREATE TABLE statement recursively references the target table. A consequence of this is a possible data integrity problem."

then the best way would be not to overwrite your datasets but to create new ones.

 

You can nevertheless add this option to your PROC SQL:

PROC SQL undo_policy=none;
<statements>
QUIT;

or specify the system option:

options SQLUNDOPOLICY=NONE;

 

 

________________________

- Cheers -

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 898 views
  • 2 likes
  • 2 in conversation