View previous topic :: View next topic
|
Author |
Message |
higherbriars
New User
Joined: 24 Jan 2007 Posts: 13 Location: SLC
|
|
|
|
I'm maintaining a system which consists of CLIST, SKEL and several Panels that allow users to enter variables and tailor batch JCL. I have a new (last minute) requirement...I need to allow users to enter a date in the format MM/DD/YYYY and I need to be able to do standard validation/verify. Is there a function I can use to make the entry and subsequent verification easier? How would the experienced CLIST gurus go about doing this? Thank you very much for any feedback. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
Have you looked at VER options within the entry panel?
Code: |
VER (&VARNAME,STDDATE,MSG=MSGID) |
Will verify the date YYYY/MM/DD. |
|
Back to top |
|
|
higherbriars
New User
Joined: 24 Jan 2007 Posts: 13 Location: SLC
|
|
|
|
Yes, I was hoping there was a VER statement I could use for verifying dates in MM/DD/YYYY format. Unfortunately, I'm using an old Murach book, MVS TSO Part 2, as a reference and there's not much to go on. I'll try google.
Do you know if there is a VER for month/day/year? Thanks! Appreciate it. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
What about showing a little bit of ingenuity and search the manuals for...
Quote: |
7.2.7 The *REXX statement
The *REXX statement is used to invoke REXX code in a panel's )INIT, )REINIT, or )PROC section. The REXX can be coded within the panel source immediately after the *REXX statement, or the name of a member containing a REXX program can be supplied.
|
has been there at least from z/os 1.6 |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
Once you verify as YYYY/MM/DD in the panel, you can rearrange the variable using substrings. |
|
Back to top |
|
|
higherbriars
New User
Joined: 24 Jan 2007 Posts: 13 Location: SLC
|
|
|
|
Checked CLIST manual for VER statements prior to posting. Thanks to Bill Dennis for positive input. Go Hawkeye's! |
|
Back to top |
|
|
|