This example assumes that you have just created a panel, and that you have defined Panel-Name-Buffer in the Working-Storage Section of your program as specified above.
move 11 to panel-name-length.
move "Dummy Panel" to panel-name-text.
move pf-set-panel-name to ppb-function.
call "PANELS" using panels-parameteer-block
panel-name-buffer.
if ppb-status not = zero
* (code to abort)
Comments:
Once you have used this function, you can see the name associated with each panel by using the PF-Get-First-Panel and PF-Get-Next-Panel functions.