|
>1. SHARE(*YES) in a CL before opening the file. > >2. I am executing the READ operation on the file > in module 'M1' and calling a procedure 'P1' > from a different module 'M2' which reads the > file -snip- > >3. The scenarios taking place are as follows: > When I 'READ' the file, it does not indicate > EOF but the field values picked are blanks or 000.00 > >4. If I move the procedures in the separate module(M2) > to the caller module(M1) and do not bind the module M2 > while CRTPGM the program runs fine. The shared ODP is the way I normally handle this. Is there any chance that P1 has local names that are the same as the field named in the file that you are reading? --buck
As an Amazon Associate we earn from qualifying purchases.
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.