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
 

 

Rexx Panel Validation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
ajithajt

New User


Joined: 21 Mar 2016
Posts: 6
Location: Kerala

PostPosted: Sun Jul 17, 2016 10:50 pm    Post subject: Rexx Panel Validation
Reply with quote

Hello,

I am trying to perform a rexx panel validation. My panel will receive two inputs. Input 1 and Input 2. Input 1 is of length six. If the second letter of input 1 is number then input 2 should have value as setupA. I mean to say like if user enters input2 as setupB, then panel should show it as wrong setup type and if the second letter is alphabet then input2 should be setupB( user should enter it as setupB, if not panel should display error message.) Could someone please advice if there is a way in rexx to achieve this.

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

Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Mon Jul 18, 2016 11:11 am    Post subject:
Reply with quote

Did you do search before ?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1717
Location: UK

PostPosted: Mon Jul 18, 2016 11:51 am    Post subject:
Reply with quote

There is no such thing as a Rexx panel - it is an ISPF panel.

Have you read the dialogue manager reference? In particular read about VERification and Rexx edit routines. Of course, you may be able to get by simply by refencing the built-in models.

Why ask the user to enter a second item that could be wrong - simply have that item generated by your code depending on the value entered by the user?
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Mon Jul 18, 2016 1:31 pm    Post subject:
Reply with quote

Check here on VER
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Mon Jul 18, 2016 3:44 pm    Post subject:
Reply with quote

SUBSTR OR LEFT to know the value at second position and then check the value entered for second field and then decide the error .
Back to top
View user's profile Send private message
Willy Jensen

New User


Joined: 01 Sep 2015
Posts: 96
Location: Switzerland

PostPosted: Mon Jul 18, 2016 5:57 pm    Post subject:
Reply with quote

The ISPF .TRUNC and .TRAIL functions should allow you to isolate the 2nd char of the field to use in a VER statement. But if you are on a newer z/OS level, I'd defenitely use a builtin REXX - see the )REXX statement.
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Mon Jul 18, 2016 11:30 pm    Post subject: Reply to: Rexx Panel Validation
Reply with quote

Quote:
Why ask the user to enter a second item that could be wrong - simply have that item generated by your code depending on the value entered by the user?


I agree with Nic's suggestion.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
This topic is locked: you cannot edit posts or make replies. Need to code a Rexx PGM sundaram.naveen CLIST & REXX 18 Thu Oct 06, 2016 6:45 pm


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