call the date specified in tsetglobalmap component

Five Stars

call the date specified in tsetglobalmap component

hi,

 i have a job  where i have set the  date in tsetglobalmap component to the current date.

"date"=TalendDate.formatDate("yyyy-MM-dd hh.mm.ss",TalendDate.getCurrentDate())

 

i  want to create a file in the subjob with the filename " file1+date from tsetglobal "

tfileoutputdelimited: "C:/Users/Desktop/folder/"+((String)globalMap.get("date"))+"_file.json"

 

it is creating a file  with name "null_file.json".

 

do i need to  prefix with   todate .((String)globalMap.get("date"))??

 

  can anybody help me with above scenario?

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog