I need to have one screen where a user can enter some information, lets say customer number then when they press enter that information will be shown in text on the second screen. So lets say the user enters 321 for customer number and then the second screen needs say "The customer number processed was 321" I can't get the 321 to display on the second screen, I guess, because I have to use the opnid to use it. Any suggestions rather than using an rpg?
thanks, Mike
Software/Hardware used:
ASKED:
August 20, 2012 3:31 PM
Currently I have two different display files, but could easily change it two one object with two formats. The field name is the same on both screens, but again I can change this and then use chgvar to set the value if needed.
As Charlie Brown suggested, use two formats in a single display file.
Record formats can be used in the SNDRCVF or SNDF commands..
But are you going to check that the input is valid? At some point this process becomes rather beyond the scope of a typical Cl program.
I can’t get the 321 to display on the second screen
Why not? What happens? It’s difficult to suggest changes if we don’t know what’s going on.
the second screen needs say “The customer number processed was 321″
What does it say instead? Is the first value entered as a numeric or character variable?
The field name is the same on both screens..
The first value is onlt three digits while the second is a multi-word sentence. While it’s technically possible to have it work that way, why would you want two variables with very different characteristics and uses to have the same name?
Tom