Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Date fomat in SAS
Goto page Previous  1, 2
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Other Mainframe Topics
Author Message
vasantha

New User


Joined: 05 Aug 2008
Posts: 16
Location: hyderabad

PostPosted: Thu Aug 07, 2008 3:03 pm    Post subject: Reply to: Date fomat in SAS
Reply with quote

try giving datejul...
Back to top
View user's profile Send private message
References
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3509
Location: Brussels once more ...

PostPosted: Thu Aug 07, 2008 6:41 pm    Post subject: Re: Reply to: Date fomat in SAS
Reply with quote

vasantha wrote:
try giving datejul...


Exactly ..........

I hate SAS date formats and playing around changing them, but after some little testing .........

DATEXX = PUT(DATEJUL(DATEIN),MMDDYY10.);

Using the DATEJUL function, DATEIN is converted to a SAS base date, and that value is then PUT into the required format.
Back to top
View user's profile Send private message
Robert Sample

Senior Member


Joined: 06 Jun 2008
Posts: 891
Location: Atlanta, GA

PostPosted: Fri Aug 08, 2008 4:33 am    Post subject:
Reply with quote

JULDATE, DATEJUL ... one of them things! I didn't get a chance to test my code since I'm in class this week and not anywhere close to a mainframe. At least the problem got resolved.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Other Mainframe Topics All times are GMT + 6 HoursGoto page Previous  1, 2
Page 2 of 2