Running an 4GL program via and ODBC call
Posted in 2012
Topics: Stored Procedures & SPL, Connectivity: ODBC / JDBC / .NET, Connectivity: ESQL/C, 4GL & Embedded SQL
I would like to run a I4gl program from inside excel I know I can use an ODBC connection to insert from an excel spreadsheet to an INFORMIX database And I can use ODBC to select from database back to excel . For years I have been using an add in to excel called ExcelSQL It can run a different query in each cell of a spreadsheet. What I want to do is 1: load info from cells in a excel spreadsheet into an informix table . 2: call a 4gl program (on same machine as database) that reads a value passed in with it's call to know what record to read from the table Then that 4gl program would manipulate the input data and write the result into another table 3: Then I want the Excel spreadsheet to read the answer (now stored in the informix tabe) and place it in cells in the spreadsheet. I know I can do step 1 and 2 but need to understand if I can do step 2 by using a stored procedure or some some other feature of INFORMIX that could do this better Or is there a better way to allow excel to kick off a process on an Linux server running informix Thanks
I think you could use a SYSTEM call, inside your procedure. Since you didn´t mention your Informix version, here is the link for 11.70 engine: http://publib.boulder.ibm.com/infocenter/idshelp/v117/topic/com.ibm.sqls.doc/ids _sqs_1358.htm?resultof=%22%53%59%53%54%45%4d%22%20%22%73%79%73%74%65%6d%22%20 Regards. Alexandre Marini IBM Informix Certified Professional v10 / v11.50 / v11.70 IBM Information Management Informix Technical Professional IBM Infosphere DataStage Technical Professional Database Administrator > To: ids@iiug.org > From: cwm@stober.com > Subject: Running an 4GL program via and ODBC call [26972] > Date: Fri, 4 May 2012 17:20:33 -0400 > > I would like to run a I4gl program from inside excel > > I know I can use an ODBC connection to insert from an excel spreadsheet to an > INFORMIX database > > And I can use ODBC to select from database back to excel > > ... > > For years I have been using an add in to excel called ExcelSQL > > It can run a different query in each cell of a spreadsheet. > > What I want to do is > > 1: load info from cells in a excel spreadsheet into an informix table . > > 2: call a 4gl program (on same machine as database) that reads a value passed > in with it's call to know what record to read from the table Then that 4gl > program would manipulate the input data and write the result into another > table > > 3: Then I want the Excel spreadsheet to read the answer (now stored in the > informix tabe) and place it in cells in the spreadsheet. > > I know I can do step 1 and 2 but need to understand if I can do step 2 by > using a stored procedure or some some other feature of INFORMIX that could do > this better > > Or is there a better way to allow excel to kick off a process on an Linux > server running informix > > Thanks > > > ******************************************************************************* > Forum Note: Use "Reply" to post a response in the discussion forum. >