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



not to dissuade you from using python and assuming you are just generating a UUID in python, there are examples of using GENUUID in RPG.
https://archive.midrange.com/midrange-l/200708/msg01368.html
or SQL
https://www.itjungle.com/2014/08/27/fhg082714-story01/

bryan

Buck Calabro wrote on 6/1/2018 4:27 PM:
I need to talk to a web service to which I can send and receive files,
search info, and UUIDs. The UUIDs are then used to build a URL that I
hope I can show on a green screen, have staff click and launch the
browser. It uses both POST and GET, and in one of the POST APIs I send
a MIME request that has a binary file, and textual attribute pairs that
look like JSON.

I wrote some proof of concept code in Python - it was surprisingly quick
to do with the requests library. That Python works on my 7.3 machine in
PASE.

Now, I want to shoehorn that into my existing green screen inquiry
program. I would like to do this:

RPGLE -> search criteria -> Python -> UUID -> RPGLE
RPGLE -> UUID -> Python -> binary file -> RPGLE
RPGLE -> MIME/text/binary file -> Python -> UUID -> RPGLE

Is this a fool's errand?
Should I just learn how to do the equivalent on the green side?

I'm a 40-year RPG programmer, and I felt more comfortable trying this in
Python instead of... I don't even know what options are available on
green screen, and I'm afraid that doing the research to find out will
take longer than proofing it in Python did.

Feels weird, man.


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.