EMP

pts.
Tags:
CL
RPG
RPGLE
How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)

Software/Hardware used:
software and hardware

Answer Wiki

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

This was assigned to you for a purpose, our doing it won’t be a learning event for us or for you. Put together your best ideas, if you have qestions about those we’ll help.
Phil

Discuss This Question: 1  Reply

 
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
  • TomLiotta
    Phil's right. We're restricted in the kinds of answers we can give. An answer we can give in this situation is something like -- you do it the same way in CL as you would in RPG except you use CL statements. One potential complication is that you need a fairly current version of i5/OS if you want to do it in a single procedure. Until V5R3, you could only declare a single file in a CL procedure. Now you can declare up to five files. You have two files -- database and display. And that's about all that can be said. It's not much more than a restatement of your question. Now, if you provided your attempted source code and a specific technical question about an element of it...? 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