× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Python won't write back to your params, but you can pass them in via the
command string to Python.

I handle the OUT by writing to an IFS or DB file from Python and then
consuming that in the calling CL.

On Mon, Jan 14, 2019 at 3:06 PM Justin Taylor <JUSTIN@xxxxxxxxxxxxx> wrote:

" If you can call a CL passing parameters, you can call Python with those
params, because you can call Python from a CL.”

IN/OUT parameters? Do tell.


-----Original Message-----
From: Jack Woehr [mailto:jwoehr@xxxxxxxxxxxxxxxxxxxxxxxx]
Sent: Monday, January 14, 2019 3:46 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Need help to convert a name in upper case, to mixed case

On Mon, Jan 14, 2019 at 2:36 PM Tyler, Matt <matt.tyler@xxxxxxxxxxxxxx>
wrote:

How does Python convert to proper case MCDONALD or MACDONALD, etal.?
The code I gave out we use and we know that it has this limitation.


Well, any code in any language to deal with English capitalization of
proper names is going to need a dictionary structure of some sort. Python
presents such structures, which you'll need to populate and create/borrow
some code that looks 'em up.

There's no algorithm other than dictionary lookup that's going to
distinguish between the separate cases of

MacDonald
versus
Mackenzie


Plus, the tool I sent gives me the ability to wrap it in an external
SQL procedure. How would Python accomplish this?


If you can call a CL passing parameters, you can call Python with those
params, because you can call Python from a CL.

--
Jack Woehr
Absolute Performance, Inc.
12303 Airport Way, Suite 100
Broomfield, CO 80021

NON-DISCLOSURE NOTICE: This communication including any and all
attachments is for the intended recipient(s) only and may contain
confidential and privileged information. If you are not the intended
recipient of this communication, any disclosure, copying further
distribution or use of this communication is prohibited. If you received
this communication in error, please contact the sender and delete/destroy
all copies of this communication immediately.

--
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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.