Hi, I have a simple code as an example. The program has 1 prompt that opens before running. It is compare which is assigned 0 or 1 so the code executes or not. LIBNAME valid BASE "path" ; %Let compare_test = &compare; data valid.test; if &compare_test = 1 then do x = 1 to 10; y = x*x; output; end; run; Is there such a way I could insert something in the VBS file to assign the value for &compare ? Right now my vbs is running, but only with default parameters. Ultimately, I want to transpose this kind of treatement on a much bigger scale for another program with about a dozen prompts to define before running. Any help would be very appreciated ! Cheers, Edit : Ty for advice. I've progressed quite a bit, but not there still. I can now assign value to my prompts manually via the object parameters. I'm now trying via an excel sheet, and everytime i try it does fail. Here's a part of my VBS. Compare and Date are my two prompts that opens when running the SAS program. If i enter the values manually, it does work. Otherwise if I try to read the excel value it fails. Any insight on that ? SAS program is already opened at this point. Set objExcel = CreateObject("Excel.Application") Set objWorkbook = objExcel.Workbooks.Open("path") Set ws = objWorkbook.Sheets("Invites") rowcount = ws.usedrange.rows.count Set oparameters = prjobject.Parameters ' Définition des paramètres pour l'exécution du programme SAS For Each oparameter In oparameters ' Assigner une valeur aux paramètres pertinents vb_date = ws.cells(y,4) vb_compare= ws.cells(y,5) If oparameter.Name = "Compare" Then oparameter.Value = vb_compare ' 1 If oparameter.Name = "Date" Then oparameter.Value = vb_date ' "01/01/2020" Next
... View more