|
Hmm. Good question. I have always used 37, but I'm not sure what others
would recommend for UK.
Not sure if you need to change anything in source members unless you plan
to pass any special characters through the parameters.
You could always open the source members in RDI and do a save as to a 285
based source file. Not sure if you can convert when doing a CPYSRCF
perhaps ?
The PYRUNC CL is really essentially just composing the python command line
to run, executing it and returning data via STDOUT. Along with some extra
validation.
I would probably do something like the PYPATH command does to pre-set any
of your search paths before running the PYRUN command. Then those paths are
passed thru from the IBMi job calling the Python app and your special env
should get handled.
Or create your own variation of PYPATH that set's the path with ADDENVVAR
or export on the QSH command line.
Hope that makes sense.
Regards,
Richard Schoen
Web: http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
Phn: (612) 315-1745
----------------------------------------------------------------------
message: 1
date: Wed, 24 Apr 2019 17:27:52 +0100
from: Craig Richards <craig@xxxxxxxxxxxxxxxx>
subject: Re: Python CL Command Wrappers
Hi Richard,
Thanks so much for posting and making your Python CL Wrapper available.
I have a couple of small questions if you have a moment some time.
What would be your CCSID recommendation for someone living in the UK?
Would it make sense to scan your PYONI/SOURCE file and change and CCSID
37s to 285?
( I wouldn't just do a blanket scan and replace... I can see there are few
references to "37" which are just text or nothing to do with CCSIDs)
Also, I'm running Python 3.6.8 in a virtual environment at the moment. I
used --system-site-packages to point to the yum install to gain access to
things like iToolkit which aren't easily installed into a venv (for me at
least...)
Is there a recommended way to use your wrapper with virtual environments?
thanks kindly,
Craig
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.