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



Forgot about the qualified to avoid name collision.

And the based avoids the storage allocation.

Still seems like an ugly kludge when one more factor can be stated in
the code while doing a LIKE.

Roger

On 7/10/2006 1:51 PM, Barbara Morris wrote:
"Roger Vicker, CCP" wrote:
  
...All I want is to have the most key
attribute (length and char/number) defined in the database and be able
to reference it everywhere else (including RPGLE) with exceptions such
as longer/shorter x digits and zoned/packed the same as we can in DDS.

    

Roger, if you want to be able to do LIKE definitions of database fields,
but you don't necessarily want the fields for your files to be in a data
structure, the easiest way to do that is to define a separate
externally-described DS that is just used for LIKE definitions.

     Fmyfile  if   e           disk

     D myfile_types  e ds            extname(myfile)
     D                               qualified
     D                               based(template)

      * Define a field like FLD1 in MYFILE
     D somefield       s             like(myfile_types.fld1)

  


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.