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



Hi Charles,

As you've already pointed out, you can't put a BLOB field in a MODS/array to be returned from RPG. You could return a cursor, of course, but that leads you right back to needing a temporary file...

However, I find myself wondering if maybe a UDTF would work? With a UDTF, you declare the data types of the fields in SQL, it doesn't infer them from the RPG side of things -- so maybe that'd work? I haven't tried it, but it's a thought...

I would definitely, without any doubt, stay away from a UNC path or FTP path unless this is for internal company use only. An http path might be a good alternative, though.


Charles Wilt wrote:
All,

I've got a .PDF file in the IFS I want to return as a BLOB column in a
result set from a stored procedure.

Stored procedure can be written in SQL or RPG, it doesn't matter.
(Thus the cross post, sorry David :)

The stored procedure will return just a single row.

Can I do this directly without loading the BLOB column into a temporary table?

Links and/or examples appreciated.


Thanks!
Charles


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.