Python Samples
This repository will be used for miscellaneous Python samples for all platforms including" *Windows, Linux, Mac and IBM i/AS400
-
General
hello.py
- Tiny hello world examplehellotemplate.py
- Python script template with standard error handling built in. Fails nicely and also returns non-zero error code on failure.
-
IBM i
ibmi_d_to_dt.py
- Convert IBM i date CYYMMDDHHMMSS to Python datetimepyhellotodb.py
Sample Python template to do some Python work and write to a sample outfile.DB2 tablepyitool01.py
Call CL program via iToolkit and XMLSERVICE.pypgmcall001.py
- Call CL program via iToolkit and XMLSERVICE.pydbtoexcel.py
- Run SQL to extract IBM i DB2 data to an Excel filepyodbcconnectiontest.py
- IBM i ODBC connection tester. Use to test native ODBC connection.pysftpdownload.py
- Sample SFTP file download using pysftp.pysftpupload.py
- Sample SFTP file upload using pysftp.