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

I am having a strange error on a SQL join in DI-studio:

 

NOTE: Table WORK.W194IC3S created, with 120947637 rows and 10 columns.

802 quit;
PROCEDURE| _DISARM| STOP| _DISARM| 2021-02-18T09:46:26,191+01:00| _DISARM| WorkspaceServer| _DISARM| SAS| _DISARM| |
_DISARM| 197402624| _DISARM| 24104960| _DISARM| 11| _DISARM| 31| _DISARM| 300992697344| _DISARM| 301037863083| _DISARM| 567.296875|
_DISARM| 761.192000| _DISARM| 1929256425.000000| _DISARM| 1929257186.192000| _DISARM| 257.187500| _DISARM| | _ENDDISARM
NOTE: PROCEDURE SQL used (Total process time):
real time 12:41.19
cpu time 9:27.29

803
804 %global etls_sql_pushDown;
23 The SAS System 09:33 Thursday, February 18, 2021

805 %let etls_sql_pushDown = &sys_sql_ip_all;
806
807 %rcSet(&sqlrc);
808
809 %perfstop(metrVal6=%sysfunc(max(&etls_recnt,-1)));
MPRINT(PERFSTOP): options notes nosource nosource2 nosymbolgen nomprint nomlogic
ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was:
&_armrc
ERROR: The macro PERFSTOP will stop executing.

 

The error occurs after the SQL operation has run, and the output data seems to be fine, so the subsequents nodes run. I have tried deleting the entire node, inserting a new, using other datasets, and sometime the error doesn't show up after a ton of tinkering. But then it suddenly pops up again when running the entire flow.

1 ACCEPTED SOLUTION

Accepted Solutions
LinusH
Tourmaline | Level 20

I guess you have only DI Studio generated code?

It could be worth sending this to SAS tech support.

If you don't use the extesive performance monitoring (it's activated by default in DI Studio, that's why I ask), a simple solution would be to turn it off, since it seems that something goes wrong in those macros?

It is a bit hard to debug since the macro itself turns off MPRINT etc....

Data never sleeps

View solution in original post

3 REPLIES 3
LinusH
Tourmaline | Level 20

I guess you have only DI Studio generated code?

It could be worth sending this to SAS tech support.

If you don't use the extesive performance monitoring (it's activated by default in DI Studio, that's why I ask), a simple solution would be to turn it off, since it seems that something goes wrong in those macros?

It is a bit hard to debug since the macro itself turns off MPRINT etc....

Data never sleeps
Ullsokk
Pyrite | Level 9

Yes, only DI-generated code. 

 

Will look into turning off performance monitors

Ullsokk
Pyrite | Level 9

Tried turning off the performance monitors, and the Error vanished. 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1187 views
  • 0 likes
  • 2 in conversation