Hi,
I am new to EBCDIC file format. I am reading EBCDIC file through Seq. file stage ( not CFF).
Below properties are set : I referred exisitng simple jobs from our repository.
character set : EBCDIC
byte order : big-endian
data format : binary
Recod Type : implicit , delimiter : none.
I have below expression in Transformer.
StringToDate((Lnk_read_from_source.STM_YR):'-':Lnk_read_from_source.STM_MO:'-':Lnk_read_from_source.STM_DAY),"%yyyy-%mm-%dd")
Now , this seems to be leading to below warning.
"Invalid date value in getInputFieldAsDate() for field '1' of input dataset '0'." and further failure in Teradata Mload.Records are going to first Error table.
Can any one help me to know issue?
I can guess , i may need to convert EBCDIC year/day/month fields to ASCII format. IF true , how? Unfortunately we don't have any existing routines in repository..
Thanks in advance. Early reply welcome.
EBCDIC date issue
Moderators: chulett, rschirm, roy
EBCDIC date issue
Regards,
Akshay
Akshay
-
- Premium Member
- Posts: 457
- Joined: Tue Sep 25, 2007 4:05 pm
Re: EBCDIC date issue
I wonder if there is a space/spaces arriving within any one of the fields which is causing the tool to throw this error message . Please check and see if there is a need to add function to handle this.
Vivek Gadwal
Experience is what you get when you didn't get what you wanted
Experience is what you get when you didn't get what you wanted
Re: EBCDIC date issue
You need to convert EBCDIC year/day/month fields to ASCII format.
Try below option -
Dtx( seq( DateColomn[1,1]),2) : "-": Dtx( seq( DateColomn[2,1]),2) : "-":Dtx( seq( DateColomn[3,1]),2)
Thanks
Vinod
Try below option -
Dtx( seq( DateColomn[1,1]),2) : "-": Dtx( seq( DateColomn[2,1]),2) : "-":Dtx( seq( DateColomn[3,1]),2)
Thanks
Vinod
Akhobare wrote:Hi,
I am new to EBCDIC file format. I am reading EBCDIC file through Seq. file stage ( not CFF).
Below properties are set : I referred exisitng simple jobs from our repository.
character set : EBCDIC
byte order : big-endian
data format : binary
Recod Type : implicit , delimiter : none.
I have below expression in Transformer.
StringToDate((Lnk_read_from_source.STM_YR):'-':Lnk_read_from_source.STM_MO:'-':Lnk_read_from_source.STM_DAY),"%yyyy-%mm-%dd")
Now , this seems to be leading to below warning.
"Invalid date value in getInputFieldAsDate() for field '1' of input dataset '0'." and further failure in Teradata Mload.Records are going to first Error table.
Can any one help me to know issue?
I can guess , i may need to convert EBCDIC year/day/month fields to ASCII format. IF true , how? Unfortunately we don't have any existing routines in repository..
Thanks in advance. Early reply welcome.
vinodkumar.b.p
-
- Participant
- Posts: 246
- Joined: Mon Jun 30, 2008 3:22 am
- Location: New York
- Contact: