Hello Everyone, Hope you all are doing great and keeping yourself safe amid Covid-19. Please help me, I am trying to implement Incremental loading: Using below code but getting error. INC_TABLE is having approx 10 lakh names. ERROR: The length of the value of the macro variable KEYNAME (65540) exceeds the maximum length (65534). The value has been truncated to 65534 characters. Please suggest the wayout to get macro varaible keyname solved, or way the to identify same in where clause under PROC IMSTAT Proc sql noprint; select distinct compress("'"||NAME||"'") into: KeyName separated by ',' from VALIBLA.INC_TABLE; quit; proc imstat; table VALIBLA.MAIN_TABLE; where NAME in (&KeyName); deleterows/purge; run; proc imstat; table MAIN_TABLE; set INC_TABLE/drop; run; save path="/hps/" replace; quit; Thanks & Regards, Robin
... View more