× 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 guys and girls again :-)

I have a problem with chain operation - it doesn't found record but it exist in file.

I have some Logic File where key fields are:
ISBCT K01 Batch Count. . . . . S 6 0 (numeric)
ISMCU K02 Cost Center. . . . . A 12 (char)
ISTRDJ K03 Transaction Date . . S 6 0 (numeric)
and rest of fields..

in RPG program I have

definition:
FF57217C2 if e disk

work field definition
D PSDOCO S 6 0

at first I run SQL statement where I retrieve field PSDOCO.

then if PSDOCO is not zero I run this code:

/free
CHAIN PSDOCO I57217C;
IF %FOUND;
E3$FM# = IS$FM#;
ENDIF;
/end-free

Field IS$FM# is in F57217C2 file, I57217C is record in F57217C2, when I check with runqry I find record with key field PSDOCO - it is one record. I ahven't any omit in logic file.

But If I call RPG statement it doesn't found it? Why?

Regards

Tomek


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.