Six Stars

Concatenate File's name of tFileOutputDelimited

Hello,

 

I want to concatenate the file's name of my tFileOutputDelimited component, with the command :

"D:/SPC/ResultFile/((String)globalMap.get("tFileList_1_CURRENT_FILE")).csv"

It's an evidence that it's wrong because I have 2 errors :

 

- Synthax error on token "tFileList_1_CURRENT_FILE", Invalid AssignmentOperator
- The left-hand sign of an assignment must be a variable

 

Can you help me, please ?

 

Best regards

BastienM

1 ACCEPTED SOLUTION

Accepted Solutions
Twelve Stars

Re: Concatenate File's name of tFileOutputDelimited

Try this......

 

"D:/SPC/ResultFile/"+((String)globalMap.get("tFileList_1_CURRENT_FILE"))+".csv"

If you are using the tFileList component, you can get the full path with the filename so will not need to concatenate....unless this is actually a file in another folder (a mirrored folder or something similar).

Rilhia Solutions
2 REPLIES
Twelve Stars

Re: Concatenate File's name of tFileOutputDelimited

Try this......

 

"D:/SPC/ResultFile/"+((String)globalMap.get("tFileList_1_CURRENT_FILE"))+".csv"

If you are using the tFileList component, you can get the full path with the filename so will not need to concatenate....unless this is actually a file in another folder (a mirrored folder or something similar).

Rilhia Solutions
Six Stars

Re: Concatenate File's name of tFileOutputDelimited

Thank you.

 

Best regards

BastienM