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 

Reading a date as dd.mm.yyyy

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Gerd Hofmans
Beginner


Joined: 15 Jan 2016
Posts: 20
Topics: 7

PostPosted: Tue Jun 21, 2016 5:12 am    Post subject: Reading a date as dd.mm.yyyy Reply with quote

Hi,
In DFSORT there are a number of possibilities to read a date with formats Y2x or Y4x, but i can't find a format to read a date as dd.mm.yyyy or ddmmyyyy.
Is that possible?
Kind Regards, Gerd.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Tue Jun 21, 2016 9:58 am    Post subject: Reply with quote

Gerd Hofmans,

There is no direct format to read dd.mm.yyyy format , however there are ways to reformat and get the results. What exactly do you need to do on that date format?
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Gerd Hofmans
Beginner


Joined: 15 Jan 2016
Posts: 20
Topics: 7

PostPosted: Wed Jun 22, 2016 12:56 am    Post subject: Reply with quote

The dates in the input file have the format dd.mm.yyyy, so i read them as :
Code:

#START-DATE-DD,00024,00002 
#START-DATE-MM,00027,00002 
#START-DATE-YYYY,00030,00004


and write them as :
Code:

@START-DATE:#START-DATE-YYYY,C'-',
            #START-DATE-MM,C'-',   
            #START-DATE-DD,       


Since there are a lot of dates and many files, it would have been easier if i could have just read the input as it occurs and then apply a format like dt=(4md-) to write them.
But if it's not possible, then i will do it the way i am doing it today. I was just looking to simplify my work.

Kind Regards, Gerd.
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 -> Utilities 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