Rpg display files




















It would be easy to use the record format and field names to condition the calls to the prompt programs or procedures. Another advantage of using this method rather than the location row and column is I can move the fields to other parts of the screen, there is no need to change the program as the same field names will be return passed to the program.

This is such a cool function, old but still powerful. I once wrote a help text app using this by pulling in the display file name, rcdfmt name and field name as keys a to a file for entering app help text using SEU and entering special characters to highlight and underline fields.

That's really cool. 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, September 7, Finding which display file field and record format the cursor is in.

I was asked is there an easier way? Line The record format and field names will be displayed in this field. The RPG program is equally simple. Exit ; 11 leave ; 12 elseif Dspf. Lines 10 and If the F3 key was pressed I leave the Do-loop, which ends the program. When I call the program the following screen displayed: First. When I press the F4 key with the cursor in the first field I see: First.

So what does this look like when I run this program. I enter the following into the fields on the first screen. Look at those dates, there are not valid! There is no month "20", and in the To date there cannot be "71" days in any month. It would appear that the date fields in the display file have been overridden with bad dates as the program considers them as character fields.

So be careful in your own programs to prevent this from happening in a non-test program. In the above example the display contains two record format. If the display file contained only one then I can just use the SNDRCVF with no record format name and the program assumes the first, and only, record format name from the display file:.

Hello Mr. 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.



0コメント

  • 1000 / 1000