IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How best to do Date entry using CLIST or Panel


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Apr 17, 2008 12:22 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Need to convert date format DFSORT/ICETOOL 20
Search our Forums:

Back to Top