Multi Field Validation in ISPF Panel



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Re: Multi Field Validation in ISPF Panel

Postby enrico-sorichetti » Thu Mar 01, 2018 7:32 pm

... 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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: Multi Field Validation in ISPF Panel

Postby Blackthorn » Tue Mar 06, 2018 8:10 pm

Your VER statement does not include the NB operand. Hence it will allow a blank value.
Blackthorn
 
Posts: 130
Joined: Tue Feb 01, 2011 7:12 pm
Has thanked: 1 time
Been thanked: 9 times

Re: Multi Field Validation in ISPF Panel

Postby willy jensen » Tue Mar 06, 2018 8:55 pm

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.
willy jensen
 
Posts: 467
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 70 times

Re: Multi Field Validation in ISPF Panel

Postby willy jensen » Tue Mar 06, 2018 9:03 pm

I agree with Blackthorn, the VER should inckude a NB, i.e.
VER(&AUDFACC,NB,LIST,'A',MSG=AUDT109)
willy jensen
 
Posts: 467
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 70 times

Previous

Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post