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.
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.