Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to verify the data entered in the Panel is Alphanumeric

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
vijay_pampana

New User


Joined: 19 Jan 2008
Posts: 15
Location: Hyderabad

PostPosted: Tue Nov 11, 2008 2:49 pm    Post subject: How to verify the data entered in the Panel is Alphanumeric
Reply with quote

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
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Tue Nov 11, 2008 2:53 pm    Post subject: Reply to: How to verify the data entered in the Panel is Alp
Reply with quote

Quote:
rexx panel


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
View user's profile Send private message
vijay_pampana

New User


Joined: 19 Jan 2008
Posts: 15
Location: Hyderabad

PostPosted: Tue Nov 11, 2008 4:21 pm    Post subject: Reply to: How to verify the data entered in the Panel is Alp
Reply with quote

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
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2033
Location: Silicon Valley

PostPosted: Wed Nov 12, 2008 3:30 am    Post subject: Reply to: How to verify the data entered in the Panel is Alp
Reply with quote

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 http://www-03.ibm.com/systems/z/os/zos/bkserv/r10pdf/ for ISPF Dialog Developers Guide and for TSOE Rexx Reference.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Nov 12, 2008 4:13 am    Post subject:
Reply with quote

Hi,

you can try

Code:
VER (&CNTRL01,NB,INCLUDE,ALPHAB,NUM)   



Gerry
Back to top
View user's profile Send private message
vijay_pampana

New User


Joined: 19 Jan 2008
Posts: 15
Location: Hyderabad

PostPosted: Wed Nov 12, 2008 9:52 am    Post subject:
Reply with quote

Thanks sorichetti, Pedro, Gerry for the replies. I tried the gerry code and it worked for me. icon_biggrin.gif

--Vijay
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us