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

Setting a date in JCL using TWS variables


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Richard Galley

New User


Joined: 21 Nov 2008
Posts: 31
Location: United Kingdom

PostPosted: Tue Feb 24, 2009 8:53 pm
Reply with quote

Hi Guys

We have a job that uses the date parm YYYYMMDD(20091201).
This stays constant until last Friday of the each quarter month.
Last Friday of Feb changes to 20090301
Last Friday of May changes to 20090601
Last Friday of Aug changes to 20090901
Last Friday of Nov changes to 20091201

Using variable tables I can change these dates on the last day of the month but not on the last Friday.
Anyone any idea how to achieve this?
Thanks
Back to top
View user's profile Send private message
Bill Dennis

Active Member


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

PostPosted: Wed Feb 25, 2009 10:16 am
Reply with quote

There is an exit for creating user variables where the logic could be performed to replace something like QTRFRI with the proper value. I used it at a former shop and don't recall the exit name. Check the TWS Customization or Installation manuals.
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 -> IBM Tools

 


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 Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
No new posts Fetch data from programs execute (dat... DB2 3
Search our Forums:

Back to Top