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 -

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

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
  • 1 reply
  • 401 views
  • 2 likes
  • 2 in conversation