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



Greetings,

create table log_table (
fwsad varchar(50),
freqs xml,
facklm varchar(120),
fhtkod varchar(20),
);

I have a scenario, which sends xml request and receives response then invokes the following procedure within service program that writes the log_table above

peReqs is the xml request itself in character, after assigning it to the pre-compiler expanded field (l_data) successfully, i receive the sql0311 (Length in varying-length, LOB, or XML host variable not valid) while inserting

dcl-pi log_table_insert ind;
pedsLog_table likeds(dstLog_table) const;
peReqs varchar(1200) const;
peHataMesaji varchar(100);
end-pi;

dcl-s l sqltype(clob:9999)

// here we go
l_data = peReqs;

exec SQL
insert into fgLog_table
values (
:pedsLog_table.fwsad,
:l,
:pedsLog_table.facklm,
:pedsLog_table.fhtkod)
with nc;

Seen the following link as well, which did not help much as i did not understand
https://archive.midrange.com/rpg400-l/201407/msg00159.html

--
Thank you,
Nihat


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.