Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1827
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: 1932
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: 1544
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: 1827
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

Active User


Joined: 01 Sep 2015
Posts: 185
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: 2088
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 Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us