|
Hi All, I'm trying to find an explanation for this problem that I have. - A main program opens a file (FILE_A) as UPDATE (allow ADDITION). - A sub-procedure within the main program will define a DS based on FILE_A, assign some values and WRITE to FILE_A - The result is A BLANK Record written to FILE_A - If I move the 'E DS' definition of FILE_A out to the main program, it worked. Can somebody help me explain this. Does it have to do with LOCAL variables declared in the sub-procedure? Thank You in advance! Jean Reksodiputro ===== Jean Reksodiputro Sr. Programmer Analyst IBM Certified Specialist - AS/400 RPG IV Developer "One C++ method or class can be made a friend of a class. A friend has complete access to all members of a class -- hence, the phrase 'in C++, friends touch each other's private parts.' " - Martin Fowler __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/
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.