Midrange News for the IBM i Community

Posted by: Chris Proctor
Programmer Analyst
Columbia Sports Company
Portland, OR
CHAIN Operation question...
has no ratings.
Published: 18 Nov 2011
Revised: 23 Jan 2013 - 1979 days ago
Last viewed on: 24 Jun 2018 (4178 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

CHAIN Operation question... Published by: Chris Proctor on 18 Nov 2011 view comments(6)

Good morning. This may be a stupid question, especially after being a IBM midrange programmer for about 30 years, but I'm going to ask anyway.

When coding a chain operation I have always had the chain and the %found()  with the file name. For example:


chain (fla:fldb) filea;

if %found(filea);

blah, blah



Some other developers here tend to use the record format name in the chain and the file name in the %found(). I guess I was always under the impression that they had to be the same. Am I wrong???


Thanks for any input and have a great weekend.


Return to midrangenews.com home page.
Sort Ascend | Descend