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



--
[ Picked text/plain from multipart/alternative ]
  I wanted to take advantage of the variable length field attribute for a
number of fields in my database file definition.  These same field(s) would
be placed on a display file for both input and output.  A corresponding RPGLE
program was written to handle the screen and database I/O.  My problem is
this.  Lets say the field is defined (in the physical file) with a max length
of 60 characters.  The DSPF also refers to this field (again both input and
output).  I get a compile error on the field length when using the
CVTOPT(*VARCHAR).  The field on the DSPF has the length defined as 60, and
the external definition of the physical file indicates a length of 62.  When
I don't use the CVTOPT(*VARCHAR), I get a compiler error indicating that the
attributes don't match.  In this case the fields from both the DSPF and PF
are defined as 60 characters.  Is there anyway around this short of using a
different field nam on the display file and then moving it in and out for
display purposes?

Thanks for any insight you may offer.

Bill


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.