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



Sorry Jim, but I couldn't agree less.

SQL has been around on the IBM i for decades and for probably 10 years, at least, has been the way IBM would prefer us to define the database and access it. As far as I know, SQL is the only area where any new development or performance enhancement is done, with DDS basically deprecated. IMO it's absolutely nuts to prioritise learning Python over SQL when you're an IBM i programmer (not least because you have to use SQL to access the database in Python anyway).

SQL isn't that hard to learn and is a hugely valuable investment of one's time given that it's pretty much the universal way to define and access databases. It also integrates beautifully into RPG so we have the best of both worlds. I really can't help thinking it's nothing short of negligent to have not learnt SQL by this time and I really don't understand the push back against it.

Tim.



________________________________
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of Jim Oberholtzer <midrangel@xxxxxxxxxxxxxxxxx>
Sent: 16 September 2021 12:18
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Help with SYSTOOLS.HTTPPOSTCLOB

SQL is anything but simple. For those of you that have spent the effort needed to learn it, sure, but it’s every bit as complicated to do what you refer to as simple as python, or HTTPAPI etc.. the difference is with HTTPAPI, I don’t need to learn an entirely new language (SQL) and simply consume those things I need.

I won’t argue the need to know SQL and I truly appreciate seeing the potential solutions in SQL, but when I try to decipher some of the examples, we’ll, that gets tougher.

I use very simple SQL all the time, but it’s a programming language I’m not prepared to spend the time to learn beyond my basic needs, whereas Python was so much like other languages I know already, that it was easy. I’m guessing there is a large percentage of the folks on the platform (with respect to SQL not Python) who would respond in a similar way.

Jim Oberholtzer
Agile Technology Architects



On Sep 16, 2021, at 5:12 AM, Birgitta Hauser <Hauser@xxxxxxxxxxxxxxx> wrote:



Sometimes it seems people would rather spend ages fiddling with qhell, Python, curl, some third-party library etc. than learn to use SQL 🙂
May be because SQL is just too simple! No native I/O, no pointers ... 😉

Mit freundlichen Grüßen / Best regards

Birgitta Hauser


"Shoot for the moon, even if you miss, you'll land among the stars." (Les Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them and keeping them!"
„Train people well enough so they can leave, treat them well enough so they don't want to.“ (Richard Branson)


-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Tim Fathers
Sent: Donnerstag, 16. September 2021 11:35
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Help with SYSTOOLS.HTTPPOSTCLOB

...why on earth would you use some third-party library when it can be done easily with the tools that come with the machine though? Sometimes it seems people would rather spend ages fiddling with qhell, Python, curl, some third-party library etc. than learn to use SQL 🙂

________________________________
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of Jon Paris <jon.paris@xxxxxxxxxxxxxx>
Sent: 14 September 2021 22:48
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Help with SYSTOOLS.HTTPPOSTCLOB

"Personally, I'd use the HTTPAPI and just send the file that way. Not everything needs to be done with SQL."

Glad to see you say that Chris - there are days when I feel like I'm the only one who feels that way.


Jon Paris


On Sep 14, 2021, at 4:57 PM, Hiebert, Chris <chris.hiebert@xxxxxxxxxxxxxx> wrote:

VALUES SYSTOOLS.HTTPPOSTBLOB(
URL=>'https://www.google.com/'
, HTTPHEADER=>''
, REQUESTMSG=> GET_BLOB_FROM_FILE( '/tmp/filename.zip')
) ;

CLOB is a bad idea for zip files.
BLOB is better.

Also, you will want to look at what postman is doing for the http header.
You probably need to include some sort of authentication.

Personally, I'd use the HTTPAPI and just send the file that way. Not everything needs to be done with SQL.

Chris Hiebert
Senior Programmer/Analyst
Disclaimer: Any views or opinions presented are solely those of the author and do not necessarily represent those of the company.

-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
gio.cot via RPG400-L
Sent: Tuesday, September 14, 2021 8:43 AM
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Cc: gio.cot <gio.cot@xxxxxxxxxxx>
Subject: Help with SYSTOOLS.HTTPPOSTCLOB

Hi all

I would need to invoke a webservice to post a zip file in azure; i
would use SYSTOOLS.HTTPPOSTCLOB , but i can't figure how can i fill
the parameters Thanks in advance

Gio



--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com

--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx 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 ...

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.