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



How did you try to define the LOB Variables or LOB Files in your RPG
program/prototype?

Why would you pass a LOB instead of accessing it directly.
I'm not quite sure what you really want.

If you want to access an LOB or XML file you may use one of the functions
GET_CLOB_FROM_FILE, GET_DBCLOB_FROM_FILE, GET_BLOB_FROM_FILE or
GET_XML_FILE. To get a locator (kind of pointer) on the data. Locators can
be accessed and handled with SQL functions like any character (single or
double byte) or XML field, i.e. you can use SUBSTR, POSSTR etc. functions.
As an aside the GET_xCLOB functions must be performed under commitment
control.

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!"

-----Ursprüngliche Nachricht-----
Von: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] Im Auftrag von Justin
Taylor
Gesendet: Monday, 15.6 2015 23:39
An: rpg400-l@xxxxxxxxxxxx
Betreff: RE: Pass file into RPGLE via stored procedure?

John Yeung,
Yes, if they were so inclined an alternative file transfer method could
certainly be set up. This is mainly a philosophical change on their part.
They insist that every call be completely self-contained.

Alan Campin,
I was hoping I could pass some kind of LOB but RPGLE doesn't seem to like
that.

I'm already handling ZIP files, so that's not a problem. I extract it,
process the contents and then delete it.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.



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.