View previous topic :: View next topic
|
Author |
Message |
vijay_pampana
New User
Joined: 19 Jan 2008 Posts: 15 Location: Hyderabad
|
|
|
|
I've written a panel which will accepts the control number as input.
The control number is a Alphanumeric (A-Z, a-z, 0-9) field, so I want to validate the Control Number Field in my panel.
Code: |
)BODY
C01+_CNTRL01
.
.
)PROC
VER (&CNTRL01,PICT,'NNNNNNN')
|
The above code will only check numeric values but I need to check for alphanumeric |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10874 Location: italy
|
|
|
|
maybe You are asking because You are looking in the wrong place,
- rexx manuals I suppose
if You had looked at the right manuals
_ ISPF manuals
You would have used the right term and found the answer!
another way of getting hints is to use the model command
but still not rexx related |
|
Back to top |
|
|
vijay_pampana
New User
Joined: 19 Jan 2008 Posts: 15 Location: Hyderabad
|
|
|
|
Thanks for the reply.
I am very new to writing panels using ISPF function. Can you please provide some more information about the usage of MODEl.
Thanks in advance
--Vijay |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Possibly, VER(var1,NAME) will work for you.
If not, I think you will need to use the *REXX statement to have rexx code within your panel. Then use the VERIFY function of rexx to make sure the value only has the characters you want. See www-03.ibm.com/systems/z/os/zos/bkserv/r10pdf/ for ISPF Dialog Developers Guide and for TSOE Rexx Reference. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
you can try
Code: |
VER (&CNTRL01,NB,INCLUDE,ALPHAB,NUM)
|
Gerry |
|
Back to top |
|
|
vijay_pampana
New User
Joined: 19 Jan 2008 Posts: 15 Location: Hyderabad
|
|
|
|
Thanks sorichetti, Pedro, Gerry for the replies. I tried the gerry code and it worked for me.
--Vijay |
|
Back to top |
|
|
|