In ISPF, "the cursor is automatically placed at the beginning of the field that
was last referred to in any panel definition statement when a message is
displayed because of a verification failure that sets .MSG".
I have a panel that contains fields DD, MMM, and YYYY. It contains this date
verification code:
IF (&MMM = FEB)
VER (&DD,RANGE,01,29)
IF (&DD = 29)
&stddate = '&yyyy/02/&dd'
ver (&stddate,stddate,msg=asm000)
This works as expected. If the user enters 29 FEB 2025, it sets the cursor to
the day field (29) and sets an error message.
But I have another panel that contains similar fields CD, CMM, CYYY. It
contains this code:
IF (&CMM = FEB)
VER (&CD,RANGE,01,29)
IF (&CD = 29)
&stddate = '&cyyy/02/&cd'
ver (&stddate,stddate,msg=asm000)
This code is setting the cursor to the CYYY field, not CD as expected.
I don't get it. In both cases the last panel field referenced is in the
assignment statement. I see know reason why the panels would behave differently.
Sure, I can force it by adding a dummy assignment, but I'm wondering why the
different behavior.
___________________________________________________
Michael Schmitt | DXC Apps Development | MassMutual
(737) 910-8248 | [email protected]
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN