|
Thanks Barbara you're a gem, you are right (of course), I was using CVTOPT. I will fix my program. Frank Kolmann >From: Barbara Morris <bmorris@ca.ibm.com> >Frank, I think the problem is that you specified CVTOPT(*VARCHAR) on >your compile or in your H spec. Check your cross-reference - I think >you'll see that with the external-DS version, those fields aren't >actually VARYING. > > >You probably don't want to specify any CVTOPT. CVTOPT is really there >for converted RPG/400 programs that had to use CVTOPT to get those >fields into the program. CVTOPT makes the fields come into the program >as ordinary character (as opposed to varying or date, or whatever the >original type was). >> >> I noticed recently that someone asked how to get data fields from >> the trigger programs buffer and saw a reference to external defined >> DS, so I gave it a try. >> >> I had problems because all the Varying Char fields were 2 bytes >> bigger than they should have been. When I program described >> the fields in the DS and made the Varying Char fields the >> proper size all worked OK. >> >> There is probably a PTF for this and I have ordered the latest Cume >> others may have a similar issue. >>
As an Amazon Associate we earn from qualifying purchases.
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.