Dear Experts, options msglevel=i nodate noquotelenmax mprint; proc sql stimer; connect to oledb (provider = 'XXXXXXXX' datasource = "XXXXXXXX" user = XXXXXXXXXXX password = XXXXXXXXXXX properties = ('initial catalog'=XXXXXXXXX) dbmax_text = 30000); create table TempData as select * from connection to oledb ( execute Storeprocedurefromdatabse %if &A ne %then &A,; %if &B ne %then &B,; %if &C ne %then &C;, &D) by oledb; disconnect from oledb; quit; %mend test; I have a store procedure in a database and i want to create a tempdata using sas. i have four parameters to pass: @A,@B,@c,@D, The fourth parameter(@D) is always provided by the users but the other three parameters are selected by users. for instance for one user: If they select @A then @B and @c is null. If they select @B then @A and @C is null. when i run the sas web application i got the follwoing error. ERROR 79-322: Expecting a ). could you please help me how to create a dataset from the store procedure. Thanks, kesete
... View more