Multi Field Validation in ISPF Panel



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

Multi Field Validation in ISPF Panel

Postby kkajay » Wed Feb 28, 2018 11:59 pm

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)
kkajay
 
Posts: 4
Joined: Wed Feb 28, 2018 11:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Multi Field Validation in ISPF Panel

Postby prino » Thu Mar 01, 2018 4:46 am

We cannot tell, as you do not use the
[code].....[/code]
tags around your code.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 613
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 27 times

Re: Multi Field Validation in ISPF Panel

Postby enrico-sorichetti » Thu Mar 01, 2018 6:27 am

what about looking at the manual or use the model statement to find out the proper syntax ???
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: 2958
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 159 times

Re: Multi Field Validation in ISPF Panel

Postby kkajay » Thu Mar 01, 2018 8:05 am

Awesome...Everything is in the manual.
kkajay
 
Posts: 4
Joined: Wed Feb 28, 2018 11:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Multi Field Validation in ISPF Panel

Postby willy jensen » Thu Mar 01, 2018 3:39 pm

Statements 2 and 3 should be indented. See the 'IF' statement in the ISPF Dialog Developer's Guide and Reference manual for details.
willy jensen
 
Posts: 336
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 44 times

Re: Multi Field Validation in ISPF Panel

Postby prino » Thu Mar 01, 2018 5:00 pm

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.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 613
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 27 times

Re: Multi Field Validation in ISPF Panel

Postby kkajay » Thu Mar 01, 2018 6:06 pm

Indentation is there in the actual script. The forum page removes the indentation.
kkajay
 
Posts: 4
Joined: Wed Feb 28, 2018 11:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Multi Field Validation in ISPF Panel

Postby enrico-sorichetti » Thu Mar 01, 2018 6:35 pm

The forum page removes the indentation.

bullshit :evil:
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


1234567890!    !    !
          !    !    !
 


a cut and paste from the coded lines
1234567890! ! !
! ! !
the extra spaces are removed and a variable pitch font is used
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: 2958
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 159 times

Re: Multi Field Validation in ISPF Panel

Postby kkajay » Thu Mar 01, 2018 6:45 pm

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.
kkajay
 
Posts: 4
Joined: Wed Feb 28, 2018 11:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Multi Field Validation in ISPF Panel

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

sarcasm will get You nowhere :evil:
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: 2958
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 159 times

Next

Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post