Page 2 of 2

Re: Multi Field Validation in ISPF Panel

PostPosted: Thu Mar 01, 2018 7:32 pm
by enrico-sorichetti
... but it doesn't work. ...


telling it doesn't work will not help You in getting an answer
we need something more to start giving advice

again , why You do not want to use the MODEL command while editing the panel source

Re: Multi Field Validation in ISPF Panel

PostPosted: Tue Mar 06, 2018 8:10 pm
by Blackthorn
Your VER statement does not include the NB operand. Hence it will allow a blank value.

Re: Multi Field Validation in ISPF Panel

PostPosted: Tue Mar 06, 2018 8:55 pm
by willy jensen
I believe that this should do it:

IF (&AUDFACA = &Z' & &AUDFACB = &Z & &AUDFACC = &Z)
VER(&AUDFACC,LIST,'A',MSG=AUDT109)

This assumes that msg AUDT109 says something like 'one of the fields must be filled in'. The VER( .. LIST,'A' will trigger as all 3 messages are null.
Personally I prefer &Z to '' in ISPF panel verification.

Re: Multi Field Validation in ISPF Panel

PostPosted: Tue Mar 06, 2018 9:03 pm
by willy jensen
I agree with Blackthorn, the VER should inckude a NB, i.e.
VER(&AUDFACC,NB,LIST,'A',MSG=AUDT109)