Call display file cl program




















I have inserted it to make sure everything has been closed and overrides cleared properly. After the program is compiled I can then call it, This is what happened when I used various Employee Ids. Don't worry if I helped the person who asked the question to cheat by giving him the answer, I did not. I pointed him to various posts on this blog. You can find the same posts by using the search functions. And this will not influence his work as the deadline was October 1. To prevent "comment spam" all comments are moderated.

Learn about this website's comments policy here. Some people have reported that they cannot post a comment using certain computers and browsers. If this is you feel free to use the Contact Form to send me the comment and I will post it for you, please include the title of the post so I know which one to post the comment to.

Wednesday, November 28, Using CL to get records from a file for display. The steps the program would need to do are: Present display file and allow entry of Employee Id. Fetch the record from the file. If the record is fetched pass the data to the display file. If there is no matching record present an error message needs to be displayed on the display file. Now I can get to the CL program.

Line The next record is retrieved read from the Employee file. Line End of the Do-loop, and I return to line 6. Employee id. This article was written for IBM i 7. I was reading your post, that's so good, however, I detected a mistake after this part "When I press Enter the second screen is displayed:" In the screen or picture you have this information deploy: "To date.

A part of that, I do not have any other comment. Thanks for sharing this form to display a screen in a CL program. It may look like a typo, but it is really what happens. I have to admit I was shocked when it happened. CL is great for the simple display files. That allows all of the errors to show on the screen at once instead of one at a time and the reset key does not have to be pressed to clear the error s.

You are right. It would be better in a real program, rather than an example, to do it the way you suggest. Well, you can have your slashes or you can have your century but not both. You needed 2 more statements to convert the dates back to the proper format as defined by the DDS.

Myself, I would not have modified the screen fields for comparison. To prevent "comment spam" all comments are moderated. Learn about this website's comments policy here. Some people have reported that they cannot post a comment using certain computers and browsers.

If this is you feel free to use the Contact Form to send me the comment and I will post it for you, please include the title of the post so I know which one to post the comment to. Tuesday, June 6, Display files in CL. Line If the company code is not blank then indicator 50 is set off. Ask Question. Asked 9 years, 3 months ago. Active 9 years, 3 months ago. Viewed 3k times.

Add a comment. Active Oldest Votes. Is it possible without message subfile? I think can. Sorry,I don't have a running,tested example.

Is there anything else I have got wrong? Buck Calabro Buck Calabro 7, 20 20 silver badges 25 25 bronze badges. Well, I need to retrieve the message to be sent from a message file so this one is not very suitable. The description of the problem does not include a message file requirement.

The answer by lamLam is the one that experienced midrange programmers use. Sign up or log in Sign up using Google.



0コメント

  • 1000 / 1000