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



I could swear I've seen something built into the OS for this...

A bit of googling turned up
http://www.ibmsystemsmag.com/ibmi/developer/general/BLOBs,-CLOBs-and-RPG/?page=2

1. Use the SQL CAST function to retrieve the data into an "ordinary" RPG
field
2. Bring the CLOB contents into a data structure using special CLOB
support
3. Access the CLOB contents via a LOB Locator
4. Access the CLOB contents via an IFS file using a file reference

Of course the article only covers 1-3....

So Jon...what's the deal with option #4? :)

Charles



On Wed, Feb 22, 2017 at 2:12 PM, Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:

Seems like it may be something we will see in the future. It appears that
mainframe DB2 handles it via EXPORT.

db2 export to myfile.del of del lobs to mylobs/
lobfile lobs1 modified by lobsinfile
select * from emp_photo

This is from https://www.ibm.com/support/knowledgecenter/en/SSEPGG_10.
5.0/com.ibm.db2.luw.admin.dm.doc/doc/c0004562.html


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Feb 22, 2017, at 4:09 PM, Raul A Jager W <raul@xxxxxxxxxx> wrote:

Not sure, I did a program that read an image (to IFS) and stores in a
blob, Probably is easy to revert, I forgot the details, but it is very
likely you can find them searching for blob_file.

D blob s sqltype ( blob_file)

RPG or sql preprosesor creates a data structure with blob_nl, blob_name,
blob_dl, blob_fo where you load the ifs name, the name length, the data
length, etc.


On 02/22/2017 05:37 PM, Rob Berendt wrote:
Yes, you have to take the blob data and write it out as an IFS file.
Unless someone has any detail on a function to do this?


Rob Berendt


-- Este e-mail fue enviado desde el Mail Server del diario ABC Color --
-- Verificado por Anti-Virus Corporativo Symantec --
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD


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.