|
no, P1 has a unique name. but there is something else i have discovered. I removed the file declaration from module M2 and all the fields references too. I read the file in M1 and still the fields do not show vlaues. I remove the module M2 during CRTPGM and include the proceudres in M1 and it starts working!! Vineet Guliani Tata Consultancy Services -----Original Message----- From: Buck Calabro [mailto:Buck.Calabro@commsoft.net] Sent: Monday, October 28, 2002 11:01 AM To: rpg400-l@midrange.com Subject: RE: Multiple Procedure during file read >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 _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
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.