• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Need to read file depend on one parameter in flow.

#1 2009-09-26 11:31:08

hariprasad
Member
Registered: 2009-06-10
Posts: 30

Need to read file depend on one parameter in flow.

Hi,
        I have to read a file depend on one parameter in flow.   my approch is like.     


tFileDelimitor1-------->tMap1--------->tMap2-------------->tRunjob
                                   |                    |
                                   |                    |   
                                   |                    |
                        tSetGlobalVar         tFileDelimitor2

from tMap one i will get one value to set Global Var and i will use this global var in tFileDelimitor2 . but i am unable to access the varibale which is comming from tMap1.


How to do this ??

Offline

#2 2009-09-27 08:30:52

shong
Talend team
Registered: 2007-08-29
Posts: 10305
Website

Re: Need to read file depend on one parameter in flow.

Hello
You can use tFlowToIterate component, abou its usage, please see this [Forum, topic 5827] [resolved] How to use Flowtoiterate.
So, you job looks like:


tFileDelimitor1-------->tMap1-----tFlowToIterate---->tMap2-------------->tRunjob
                                                                            |
                                                                            |   
                                                                            |
                                                                 tFileDelimitor2

Best regards

          shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2009-09-29 13:41:36

hariprasad
Member
Registered: 2009-06-10
Posts: 30

Re: Need to read file depend on one parameter in flow.

Hi Shong,

     Thanks for your reply.

i am getting null as file name in first iteration and the job is exiting... if i create null file it is running but not giving desired output. i attached screenshots of my job.

shall we dynamically read a file???


Uploaded Images

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Need to read file depend on one parameter in flow.

Board footer

Powered by FluxBB