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



Hi Frances,

[SNIP]
>The found indicator is set on, but the data is not passed
> back as I expected. I am in debug and can see where the CHAIN worked but
> the prefixed field names do not have any values; however the
> non-prefixed field names do have expected values.
[SNIP]
> FTxPrcl02  UF A E           K DISK    UsrOpn Rename(TxPrclR:TxPrcl2))
> D  PrclImpExp2  E DS                  ExtName(TxPrcl02) Prefix(C2:2) Export
[SNIP]

Yes, you've put a prefix on your data structure.  However, you've done
nothing in your code to tell it to load the data from the file into that
data structure.

The easiest solution is to add the PREFIX keyword to your F-spec as well.
That way the field names from your DS and the field names from your file's
external definition will be the same, and the data will be magically
loaded into the DS.

Another alternative to that would be to use LIKEREC and code the DS on the
chain operation.  This has the additional advantage that you can have many
data structures with different prefixes, and therefore have the data from
several records loaded into memory at the same time.

Personally, though, I wouldn't use IMPORT/EXPORT, but rather I'd just pass
the record buffer as a parameter.

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.