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
 
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: 10326
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 Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm
No new posts Calling CLIST through job and REXX Sahasra K CLIST & REXX 19 Tue Aug 01, 2017 10:25 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm

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