Hi,
I'm new to rexx and ispf panels. Could you please help me figure out how to position the cursor at a particular field on the panel, when invalid data is entered on the panel field?
Here is a peice of the panel code:
In the rexx, I check if the membername(&pname) exists in the dsn(&ploc) by using the sysdsn function. If the member is not found then I need to position the cursor at the pname field on the panel.
Here is the rexx code that does the checking:
Please help.
Thanks
Allen.
I'm new to rexx and ispf panels. Could you please help me figure out how to position the cursor at a particular field on the panel, when invalid data is entered on the panel field?
Here is a peice of the panel code:
Code:
)init
.help = compghlp
.zvars = '(ptype pname ploc)'
.cursor = &ptype
)proc
ver (&ptype,NB,list,B,O,b,o)
ver (&pname,NB,Name)
ver (&ploc,NB,DSName)
In the rexx, I check if the membername(&pname) exists in the dsn(&ploc) by using the sysdsn function. If the member is not found then I need to position the cursor at the pname field on the panel.
Here is the rexx code that does the checking:
Code:
checkmem = ""ploc"("||pname||")"
x = sysdsn("'"checkmem"'")
if x ¬= 'OK' then
do
Address ISPEXEC
zedsmsg = 'Check name'
zedlmsg = 'Please check member name'
"setmsg msg(ISRZ001)"
end
Please help.
Thanks
Allen.