You are not logged in.
Announcement
Unanswered posts
|
Pages: 1
I have a map with a component called t_Java_1. I am getting the follow errors when I run it.
TalendString cannot be resolved
TalendDate cannot be resolved
tJava_1 Component Code
***********************
// Get file name.
String fileName = (String)globalMap.get("tFileList_2_CURRENT_FILES");
// Parser logic to get the date from the file name.
int dotIndex = fileName.indexOf('.');
String loadDateStr = fileName.substring(dotIndex - 8, dotIndex);
Date loadDate = TalendDate.parseDate("yyyyMMdd", loadDateStr);
The file name is called JPM_BANK_CORR_20101128.txt
Thanks in advance for your help.
Offline
Pages: 1