• Subject: Re: Need help to convert a name in upper case, to mixed case
  • From: Buck Calabro <kc2hiz@xxxxxxxxx>
  • Date: Mon, 14 Jan 2019 17:11:33 -0500
  • Arc-authentication-results: i=1; mx.google.com; spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of midrange-l@xxxxxxxxxxx) smtp.mailfrom=midrange-l@xxxxxxxxxxx; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:in-reply-to:autocrypt:openpgp:user-agent :content-transfer-encoding:mime-version:references:message-id:lines :date:subject:from:to; bh=2TmmF2Yv3cujDpuJdOYoreXlEv4C0Vj/7Zh4btYHvI8=; b=ccRJ5c9MzfDoij9i/oQKjxLeckP0n76D6kh1YMqS7Spird7zBATueI5WPReGlwQRWU O2VAELuFFqs6AJNliF5MG1t+QZ7yrXiL9YYgzixyRb+SIgIDZw0dZyPmO01/fTqluR3P wp5qTuJRHZpHvWN792Ym6eXS12S+HUJqm/hlwKo46syOcG0LgrmUwseTqvoTpYv/5wvt BZ4FKhqDJZMaBgjgeq0OgMjLeXTfkvgfaogtN8do6nkvfILJ8iBCP2uGKEAWcq09DpYH 8qOxnTHTQs3b1H5H4SvqhobbQD3+GH8TIT8vF9F6GEjszG+8kppD9ulQ4838sIBmy8yV nlHA==
  • Arc-seal: i=1; a=rsa-sha256; t=1547503901; cv=none; d=google.com; s=arc-20160816; b=WTJTJejE/fzEkX7bt4GCtHyDBupOpuvP8QONLGqAk2I+jwB/O1EYpAPk6hjhNDz7h9 VrvFkE0U6NClTvPpEGidm6pBqth8JxKMkBqpNVHBs2ufCjrHWA7xUUZH9ixvwHf9OMjD Dc5foSonUXhePiu5mkDcNoGRf7WtFlafg/pSrzZYzjMLjnE2OXW2RWKZFDBHaVftxzTp /NMzwzxT6eY9YD+DHte0u59XMcbsWGKZS8IdtPdwzKw26tTGgkGFmzL0/op+Js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HeTXr4PZbUwVeQdIStdwMmozKBQvgjXWKi1GiuYbwYkCM/zJEUCs J36BIE4li9xohJ5O4iKC20YVckMJfZLbn1a2gVgn6Re8C5ezNewT0qM8ZDCUNENWAxsU/c9J UCFQ2QcMU+25b84D5yPxnEKna5U9Fz2JjRjWy5ZKZx2+WhZj0r2Tw6/kGb28AwADBgf/WBsn JSMHxyVfg+LKLHpdANwa9jdrKOt2WjJbWOiJ9l7SmqD0oi3c22FFxRXKsFfjCikLk9wbLZKH SqqnOePvMMHqNcqQTSv7+ARjxnBH4g6dhqg+zmebKpt8zV2awQzYSSm4YY6IqzkWmPNAN7BU zUtSAfL4UU2PljTnT9m443aVCTXMne5l90HQv/gdJ121owg5KuGE6LodTpoR4hn9nbdKWtfY pDNoykvR+GN5y335yF2Zp/j6QgdxWezjou5Y3/6PUZLEsJagWe9hAcKb1eiO2bmg+1bFYu0T g5Mvb27nqfFeHHFysC7a7sXtxp/pqNLNDcK6j/7Th6vF7/n98YhJBBgRAgAJBQJHG2k+AhsM AAoJEN7KcclHumuR9SgAnRuJWHon4GP58xbqCiFR/jSUfvRgAJ47KZ1UNoXgdftoePnbrZu6 W+poEw==
  • List-archive: <https://archive.midrange.com/midrange-l/>
  • List-help: <mailto:midrange-l-request@lists.midrange.com?subject=help>
  • List-id: Midrange Systems Technical Discussion <midrange-l.lists.midrange.com>
  • List-post: <mailto:midrange-l@lists.midrange.com>
  • List-subscribe: <https://lists.midrange.com/mailman/listinfo/midrange-l>, <mailto:midrange-l-request@lists.midrange.com?subject=subscribe>
  • List-unsubscribe: <https://lists.midrange.com/mailman/options/midrange-l>, <mailto:midrange-l-request@lists.midrange.com?subject=unsubscribe>

On 1/14/2019 4:46 PM, Jack Woehr wrote:
On Mon, Jan 14, 2019 at 2:36 PM Tyler, Matt <matt.tyler@xxxxxxxxxxxxxx>
wrote:

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.

A little while ago, I had to plug in a Python function/process into an
existing RPG program. I'm on 7.3, and to the best of my knowledge,
Python is not a participant in the CALL/PARM family. That is, if my RPG
program were to call a CL which were to invoke a Python program, and the
Python program were to want to return a mixed case name back to the
caller, there's no mechanism to pass it back in the parameter list.

I solved it thanks to Scott Klement's insights into how pipes work
between PASE and ILE. Basically, my RPG program sets up pipes for the 3
'standard' streams, does a spawn() that invokes the Python program with
UPPER_NAME_PARM and then Python does its thing, putting lower_name_parm
on STDOUT, which the RPG program then does an fdopen() and fgets() to
retrieve. Don't forget to translate from ASCII :-)

If there's a simpler way that a CLP can get an answer back from a Python
program, I'm all ears!


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.