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

How to get the current date with the format November 11,2006


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
harkar
Warnings : 2

New User


Joined: 11 Nov 2006
Posts: 7
Location: Chennai

PostPosted: Sat Nov 11, 2006 2:49 pm
Reply with quote

Hi,

Could some one help me in tellling me How to get the current date with the format November 11,2006 in Eazytrieve.

Thanks in advance,
Harkar.
Back to top
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Mon Nov 13, 2006 8:57 pm
Reply with quote

You could do it this way
1. get SYSDATE (the format of this is determined in your shop so check whether it is dd/mm/yy or mm/dd/yy or dd/mm/yyyy etc
2. define an array and extract the month using the MM value from SYSDATE
eg

DEFINE ARRAY-ELEMENT W 2 N
DEFINE MONTHS W 120 A VALUE +
?JANUARY +
FEBRUARY +
MARCH +
APRIL +
MAY +
JUNE +
JULY +
AUGUST +
SEPTEMBER +
OCTOBER +
NOVEMBER +
DECEMBER ?
DEFINE MONTH MONTHS 10 A +
OCCURS (12) INDEX (MONTH-INDEX)

JOB INPUT NULL
ARRAY-ELEMENT = ''the value of MM from SYSDATE''
MONTH-INDEX = (ARRAY-ELEMENT - 1) * 10
DISPLAY MONTH
STOP

go play
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts Sort card to know that creation date ... DFSORT/ICETOOL 10
No new posts Rexx to read current Panvalet editor/... CLIST & REXX 0
No new posts Help with SORT - I need to validate d... DFSORT/ICETOOL 11
No new posts Date format correction using dfsort DFSORT/ICETOOL 3
Search our Forums:


Back to Top