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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.