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
 

 

Question in Panel regarding input constraints

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

New User


Joined: 07 Nov 2008
Posts: 13
Location: US

PostPosted: Mon Nov 10, 2008 12:08 pm    Post subject: Question in Panel regarding input constraints
Reply with quote

I have a panel that gets a input of a variable with 7 characters. The constraint is:
The input should be exactly 7 Digits only.

I have given the command as below:
)PROC
VER(&VAR1,RANGE,0000000,9999999)
VER(&VAR1,NB)
This makes sure that only numeric can be entered and it must not be blank.
Apart from Length command, do we have any other option to check in the panel program itself to check for count of 7 digits like the Range option given in the above example.

Thanks.
Back to top
View user's profile Send private message

vikash singh

New User


Joined: 12 May 2007
Posts: 15
Location: noida

PostPosted: Mon Nov 10, 2008 12:28 pm    Post subject:
Reply with quote

Use following code:
VER(&VAR1,PICT,'NNNNNNN')
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Mon Nov 10, 2008 12:47 pm    Post subject: Reply to: Question in REXX Panel program regarding input con
Reply with quote

when You look at a manual to find out about PANELS, what manual do You use icon_eek.gif
not certainly the tso REXX reference

why not post to the correct forum?and use the correct terms?

There are no such things like Rexx panels,

panels are an ISPF object,
dialogs, which disply panels can be written in Rexx...

moved where it belongs
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Mon Nov 10, 2008 9:55 pm    Post subject: Reply to: Question in Panel regarding input constraints
Reply with quote

Quote:
Apart from Length command

What is wrong with the length command? That is, you can invoke rexx from the panel. I think you can use the length function of rexx.
Back to top
View user's profile Send private message
vramya

New User


Joined: 07 Nov 2008
Posts: 13
Location: US

PostPosted: Mon Nov 10, 2008 10:07 pm    Post subject: Reply to: Question in Panel regarding input constraints
Reply with quote

Thanks Vikash. It worked.

There is no disadvantage I came across using length command.
But I have more than 10 varaibles in my program.
I have to use length function for all the variables and display appropriate message.
If I have a command like PICT as mentioned in the previous post, I can directly use them in the declaration itself.

Enrico,
Thanks for moving the post appropriately. I have started working on REXX for the past 1 week and I will take care of these things from my next post.
Back to top
View user's profile Send private message
vikash singh

New User


Joined: 12 May 2007
Posts: 15
Location: noida

PostPosted: Tue Nov 11, 2008 11:59 am    Post subject:
Reply with quote

icon_biggrin.gif
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 How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Trace in CLIST PANEL cvnlynn CLIST & REXX 1 Thu Jun 22, 2017 11:06 pm
No new posts SCLM -- not installed -- panel ISRNOSLM dmitchell1105 IBM Tools 3 Fri Jun 09, 2017 10:41 pm
No new posts Need input in Scheduling Benchwarmer CA Products 5 Tue Jun 06, 2017 1:44 am
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm


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