In my RPG, I want to read the file as retreive from the database. And use the fields from the file for testing.

For example: F Specs FILEAAA

My database contains:

Filename : FILEAAAA

Field Name : FIELD1

Value = 30

In RPG, I want to

Read FILEAAA

If FIELD1 = 20

select record

endif

However, I don’t want to hardcode FILEAAA and FIELD1 in RPG. I want this as retreived from database. Is this possible?

]]>http://itknowledgeexchange.techtarget.com/itanswers/file-and-fields-in-rpg400/feed/6Can i able to see the source code if i have only OPM object.http://itknowledgeexchange.techtarget.com/itanswers/can-i-able-to-see-the-source-code-if-i-have-only-opm-object/
http://itknowledgeexchange.techtarget.com/itanswers/can-i-able-to-see-the-source-code-if-i-have-only-opm-object/#commentsTue, 28 Jul 2009 11:27:02 +0000Hi All,

Is there any way i can able to see the source code if i have only OPM object.

I dont have source for my object.

i want to see what are all the files that program is using and what are the parameters program is accepting.

Regards,
Mohan K

]]>http://itknowledgeexchange.techtarget.com/itanswers/can-i-able-to-see-the-source-code-if-i-have-only-opm-object/feed/0How to send the data from a Physical file to a Flat filehttp://itknowledgeexchange.techtarget.com/itanswers/flat-files-2/
http://itknowledgeexchange.techtarget.com/itanswers/flat-files-2/#commentsTue, 23 Dec 2008 12:45:04 +0000Please check the below prgram and advice me how to send the data from APH(physical file) to Flate file SAAPH (flat file).

FTRF is a datstructure created for send the data only this two fields in flat file. i am not sure how to club this data structre and flat file in programe.