| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| python27revc.zip | 2012-09-26 | 17.6 MB | |
| README.txt | 2012-09-26 | 1.4 kB | |
| CHANGELOG.txt | 2012-09-26 | 1.6 kB | |
| HOWTO_FTP.txt | 2012-09-26 | 2.5 kB | |
| Totals: 4 Items | 17.6 MB | 0 | |
Installation of iSeriesPython 2.7 Requires V5R3 or higher
---------------------------------------------------------
* Download python27revc.zip.
* Create two save files PYTHON27 and LIB in QGPL.
* Decompress python27revc.zip
* FTP the files python27.savf and lib.savf to your iSeries
(See the HOWTO_FTP.txt for detailed instructions)
* If library PYTHON27 does not already exist, create it.
* Run RSTOBJ OBJ(*ALL) SAVLIB(PYTHON27) DEV(*SAVF) SAVF(QGPL/PYTHON27)
* Run RST DEV('/qsys.lib/qgpl.lib/lib.file') OBJ(('/python27/lib')) CRTPRNDIR(*YES)
* Add the site-packages folder: mkdir '/python27/site-packages'
* If it is not already in QGPL, duplicate the PYTHON27/PYTHON command into QGPL:
CRTDUPOBJ OBJ(PYTHON) FROMLIB(PYTHON27) OBJTYPE(*CMD) TOLIB(QGPL)
To utilize iSeriesPython in interactive mode, execute the PYTHON command from a command line.
To execute iSeriesPython scripts in batch, submit the PYTHON command as in the following example:
SBMJOB CMD(PYTHON PROGRAM('/python27/scripts/example.py') PARM('Arg 1' 'Arg 2')) JOB(EXAMPLE) ALWMLTTHD(*YES) Note: the ALWMLTTHD parameter is only required for Python scripts that will utilize threading.
If you use an IFS directory other than '/python27' for the lib directory
put the name of that directory into a data area called PYTHONHOME.