hello, I wonder if it is possible to write an rpgile program without defining any of the files it is suposed to use. The idea is to obtain that sort of information by other means, say a servlet. Can anyone give me some pointers on were to get some info about this?
thanks
Raven
Software/Hardware used:
iseries
ASKED:
December 26, 2009 10:30 PM
UPDATED:
May 19, 2010 11:34 AM
I would agree with Tom that more information is needed in order to give you a good answer.
If you do not define any files you have not defined any fields to use in the Calc specs.
If you have prefined files, byt the name of the file is changing, you can use OVRDBF.
If you are actually reading the file in anotehr program, you can pass the fields in as varaibles and return whatever informaiton you need.
Use straight forward embeded SQL to do any file handling needed.Check the following
URL: here
Ernst
Editor’s Note: Ernst, I’ve fixed your URL format. Thanks! -Jenny
You could create procedures that perform all the I/O, then call the procedure from your RPG program. Some developers feel it is better ot have a single routine perform all I/O for a given file. The theory is that this removes program-to-program inconsistancies.
I think there was an article on this in System i News within the last couple of years.
I m not sure but you can try /COPY in your program and can do what you are trying to do.