I have a RPGLE program to display and or update a random file chosen by the user. Similar to parts of DBU.
I can get all the fields for a file and their definitions when a file is selected. At run time, how do I display an input capable field on the screen, defined for the correct length of a particular field?
For example. I could generate the DDS source and compile the display file at run time. But that's pretty crude and slow.
I know there's a way to send the whole display format as a string with the layout defined somehow, but I can't find any details. It would be even better if I could define an input field on the screen, then set it's length at run time as length 1, or 6, or 20, etc.
Maybe there's a hex code that marks the end of an input capable field? I could define the field as length 40, then embed the hex code at the proper position to mark the end of input.
Maybe someone can point me in the direction of some info. Thanks.
here is a good post on using the USRDFN DDS keyword:
https://archive.midrange.com/rpg400-l/199907/msg00462.html
but yeah, you would get much more mileage from using PHP or even CGI to write a dynamic file editor that runs in the browser.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With