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.