Date Extraction
Moderators: chulett, rschirm, roy
Date Extraction
Hi,
I am facing problem in the date extraction from source file.
Source File Format : File Name-21082008.xls
From this source file I need to extract 'Last day of the month' and populated into the Target column.
How to implement this.
Regards,
Arshi
I am facing problem in the date extraction from source file.
Source File Format : File Name-21082008.xls
From this source file I need to extract 'Last day of the month' and populated into the Target column.
How to implement this.
Regards,
Arshi
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Code: Select all
MONTH.LAST(Iconv(DIGITS(#FileName#),"DDMY"))
Last edited by ray.wurlod on Fri May 23, 2008 6:02 am, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The file name is a job parameter. Build an expression that applies the DIGITS transform to this job parameter. Use the expression editor to construct the expression, so that correct syntax is guaranteed.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.