Using Windows ADO for AS/400 Query/Execution

Okay, so it's not Python running on the iSeries, but it is Python, and it's connecting to an AS/400, so the example is lightly relevant!

 

One limitation of Python is the ODBC v1.0 spec that's built in. That specification doesn't allow for (1) running a remote stored procedure (or CL program in this example) and (2) retreiving any returned values. This example shows how to do it using the Microsoft ADO API's built into Windows: