| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.txt | 2013-11-06 | 1.4 kB | |
| python27_revE.zip | 2013-11-06 | 17.6 MB | |
| Totals: 2 Items | 17.6 MB | 0 | |
Installation of iSeriesPython 2.7 Requires V5R3 or higher
---------------------------------------------------------
* Download python27_revE.zip.
* Create two save files PYTHON27 and LIB in QGPL.
* Extract the contents of python27_revE.zip.
* FTP the files python27.savf and lib.savf to your iSeries
(see 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:
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('/myscripts/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.