Page 1 of 2
Multi Field Validation in ISPF Panel
Posted:
Wed Feb 28, 2018 11:59 pm
by kkajay
Hi,
I have three fields in an ISPF panel. I need to add validation to ensure atleast one of the three fields have a value. I put the following statement in the panel, but it doesn't work. How can this be done?
IF (&AUDFACA='')
IF (&AUDFACB='')
VER(&AUDFACC,LIST,'A','B','C',MSG=AUDT109)
Re: Multi Field Validation in ISPF Panel
Posted:
Thu Mar 01, 2018 4:46 am
by prino
We cannot tell, as you do not use the
tags around your code.
Re: Multi Field Validation in ISPF Panel
Posted:
Thu Mar 01, 2018 6:27 am
by enrico-sorichetti
what about looking at the manual or use the model statement to find out the proper syntax ???
Re: Multi Field Validation in ISPF Panel
Posted:
Thu Mar 01, 2018 8:05 am
by kkajay
Awesome...Everything is in the manual.
Re: Multi Field Validation in ISPF Panel
Posted:
Thu Mar 01, 2018 3:39 pm
by willy jensen
Statements 2 and 3 should be indented. See the 'IF' statement in the ISPF Dialog Developer's Guide and Reference manual for details.
Re: Multi Field Validation in ISPF Panel
Posted:
Thu Mar 01, 2018 5:00 pm
by prino
willy jensen wrote:Statements 2 and 3 should be indented. See the 'IF' statement in the ISPF Dialog Developer's Guide and Reference manual for details.
That's why I told the TS to use code tags.
Re: Multi Field Validation in ISPF Panel
Posted:
Thu Mar 01, 2018 6:06 pm
by kkajay
Indentation is there in the actual script. The forum page removes the indentation.
Re: Multi Field Validation in ISPF Panel
Posted:
Thu Mar 01, 2018 6:35 pm
by enrico-sorichetti
The forum page removes the indentation.
bullshit
the forum removes the extra spaces for plain text
it would have kept the spacing and used a fixed pitch font if You had used the code tags
a cut and paste from the coded lines
1234567890! ! !
! ! !
the extra spaces are removed and a variable pitch font is used
Re: Multi Field Validation in ISPF Panel
Posted:
Thu Mar 01, 2018 6:45 pm
by kkajay
Ok Great. Now, Can you provide something that is useful. I have an alternative way to accomplish this, but I would prefer the Panel Validation to work.
Re: Multi Field Validation in ISPF Panel
Posted:
Thu Mar 01, 2018 7:23 pm
by enrico-sorichetti
sarcasm will get You nowhere