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
 

 

How best to do Date entry using CLIST or Panel

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

New User


Joined: 24 Jan 2007
Posts: 13
Location: SLC

PostPosted: Thu Apr 17, 2008 12:34 am    Post subject: How best to do Date entry using CLIST or Panel
Reply with quote

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
View user's profile Send private message

Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Apr 17, 2008 2:26 am    Post subject:
Reply with quote

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
View user's profile Send private message
higherbriars

New User


Joined: 24 Jan 2007
Posts: 13
Location: SLC

PostPosted: Thu Apr 17, 2008 9:01 am    Post subject: Reply to: How best to do Date entry using CLIST or Panel
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Thu Apr 17, 2008 12:22 pm    Post subject: Reply to: How best to do Date entry using CLIST or Panel
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Apr 17, 2008 6:13 pm    Post subject:
Reply with quote

Once you verify as YYYY/MM/DD in the panel, you can rearrange the variable using substrings.
Back to top
View user's profile Send private message
higherbriars

New User


Joined: 24 Jan 2007
Posts: 13
Location: SLC

PostPosted: Sat Apr 19, 2008 12:11 am    Post subject:
Reply with quote

Checked CLIST manual for VER statements prior to posting. Thanks to Bill Dennis for positive input. Go Hawkeye's!
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 Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Overlay the system date Danielle.Filteau SYNCSORT 4 Fri Mar 03, 2017 1:16 am
No new posts ISPF - How to come out of ISPF Panel parasmalik20 TSO/ISPF 5 Tue Feb 21, 2017 7:44 pm
No new posts the use of 'B3'x character in a panel Pedro TSO/ISPF 1 Thu Feb 16, 2017 3:09 am


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