Multiple display file in CL program

35 pts.
Tags:
CL
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

Is it the same field name on each screen?

Do you have two different display files or just one with multiple formats?

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • mike1780
    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.
    35 pointsBadges:
    report
  • philpl1jb
    As Charlie Brown suggested, use two formats in a single display file. Record formats can be used in the SNDRCVF or SNDF commands..
    49,850 pointsBadges:
    report
  • philpl1jb
    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. 
    49,850 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following