Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display the value of a field in a record

Status
Not open for further replies.

Mayamin

Technical User
Jul 18, 2003
7
LB
Hi,
I need to display the value of a field (that is in a physical file) in a record.
Thanks in advance.
 
Get a programmer to write a program. :)

Seriously, what do you need to do? Just display it on the screen, modify the value, or just show it in a report?

RedMage1967
IBM Certifed - RPG IV Progammer
 
hi,
I am working on a program to send a mail from an AS/400 & to receive a mail but I want while receiving in a record that I design it
from: &x
Subject &y
&x, &y are two variable that I want to took them from a physical file
or in my cl program I declare the dspf that contain the records so I can't declare another file(the physical file that contain the variale)
Thanks.
 

I would write a RPG program to do the work passing a PARM from the CL program to the RPG program and then return control to the CL program.

however I am usually the last to go along with a "get someone to do this for you" possibility, but in this case the task isn't going to be trivial for a beginner. I only get the cahnce to work with RPG once or twice a month and I would take up a few good hours writing this. But if you ahve the courage I think those steps is what I would pursue.

RedMage may have something better as he's just plain better at this. [wink]

_____________________________________________________________________
onpnt2.gif

[bdaycandle]
 
Sorry about the sense of humor from my previous post.

I agree with onpnt, the best way to do this is to write a RPG program that retrieves the variables and returns them to the CL program. You would have to come up with the decision making logic to determine how you get the data out of the pf. Possibly by passing another parm to the RPG program, then have it return the other two.

RedMage1967
IBM Certifed - RPG IV Progammer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top