Hello - I am trying to pass a query (as a string) to a macro. When I PUT the query variable this is what it looks like in the log. QUERY_TXT=select a.cust_id, a.order_dt, prod_type, prod_subtype from VPS_PRM.order_data a where a.order_dt = '2020-05-09' This is the code that I am using... string = cats('%nrstr(%RunReport(ISD=',strip(Start_Dt),',IED=',strip(End_Dt),',Days=',strip(Lookback_Days),',
AT=',strip(Attachment_Type),',
Query=',%quote(Query_Txt),'));'); This is the error that I am getting... ERROR: All positional parameters must precede keyword parameters. Subsequent errors point to the query_txt variable ERROR 180-322: Statement is not valid or it is used out of proper order. Any help to resolve my issue is much appreciated. Thank you. CALL EXECUTE(string);
... View more