MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Date conversion from yyyy/ddd to mm/dd/yy in rexx

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
RajSanj
Beginner


Joined: 17 Mar 2006
Posts: 15
Topics: 7

PostPosted: Wed Jun 07, 2006 3:15 pm    Post subject: Date conversion from yyyy/ddd to mm/dd/yy in rexx Reply with quote

Hi,

Do we have any function to convert SYSCREATE(in year/day format) to standard format in mm/dd/yy using REXX. I have tried using date function it is not working. Can someone help.

Thanks,
RajSanj
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Jun 07, 2006 3:37 pm    Post subject: Reply with quote

Code:

/* REXX */                                                 
X = LISTDSI(SYSPROC 'FILE') 
PARSE VAR SYSCREATE 1 CC 3 YY '/' DDD .     
JDATE = YY||DDD                             
SAY JDATE                                   
GDATE = DATE('U',JDATE,'J')                 
SAY GDATE                                   
Back to top
View user's profile Send private message
RajSanj
Beginner


Joined: 17 Mar 2006
Posts: 15
Topics: 7

PostPosted: Wed Jun 07, 2006 4:08 pm    Post subject: Reply with quote

Thanks alot Superk it works.

Regards,
RajSanj
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group