|
Joe I 100% agree with you. This is also one of the reason why I am using the file like that. But why I'm getting 20 error. Thats my wonder. But I am thinking about your answer to my first question. Is it really possible ? Thanks Naren Reddy -----Original Message----- From: Joe Teff <jteff19@idt.net> To: RPG400-L@midrange.com <RPG400-L@midrange.com> Date: Wednesday, January 06, 1999 10:35 PM Subject: Re: Multiple Fields in SFL & Installing PTFs... >>> 3. When I am doing some file oprations(Additions...) with the file >>> declaration as below, I am getting 20 error stating there is no >>> calculation operation for file RPGPGM. But I will compile the >>> program with error seviarity more than 20. Then it compiles and >>> also runs with out any kind of problem with the desired results. >>> Why I am getting error like that. I have Z-add, Move, Write etc. >>> operations for the file also. >>> F RPGPGM IF E DISK A > > >> I can't figure out why you have declared file as Input and want to do >> an "add" by placing 'A' in file declarstion. It's wrong! Instead of 'I' >> for input it should be 'U' for update. > >There is not enough information here to decide the file should be >declared as Input, Output or Update. Either scenario could be >correct depending on how the program is written. If the only file >operations is WRITE, then the file should be designated as Output. >If there are input operations like READ or CHAIN plus output >operations like WRITE, then it should be set as Input with Add. If >there are input operations followed by an UPDAT, then it should be >Update. If there are UPDAT and WRITE, then it is Update with Add. > >Joe Teff > >* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >* This is the RPG/400 Discussion Mailing List! To submit a new * >* message, send your mail to "RPG400-L@midrange.com". To unsubscribe * >* from this list send email to MAJORDOMO@midrange.com and specify * >* 'unsubscribe RPG400-L' in the body of your message. Questions should * >* be directed to the list owner / operator: david@midrange.com * >* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the RPG/400 Discussion Mailing List! To submit a new * * message, send your mail to "RPG400-L@midrange.com". To unsubscribe * * from this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe RPG400-L' in the body of your message. Questions should * * be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.