on 01-28-2016 7:51 PM
Hi Experts,
I have the next problem on PI 7.3.
I need create file on different folder, depend of company...
the first row must create on folder \COMPANY1\
the second row must create on folder \COMPANY2\
and the trhee....four...six...etc.
the target structure can be modify,no problem, but no have a idea for this request.
The FTP SERVER is the same... the folder is different only.
The Source file is:
BRIAN,COMPANY1
JULY,COMPANY2
RICHARD,COMPANY3
JESUS,COMPANY1
MAX,COMPANY2
and the Target structure is:
<row>
<head>company1</head>
<person>brian<person>
<person>jesus</person>
</row>
<row>
<head>company2</head>
<person>july<person>
<person>max</person>
</row>
<row>
<head>company3</head>
<person>richard<person>
</row>
Regards Experts.
Hi Brians,
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think you would want to look into using a map to do message splitting along with variable substitution for the dynamic directory names.
Regards,
Ryan Crosby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brian,
This is basically 1:n mapping. You should create multiple mappings one for each COMPANY and should call them in the interface determinations based on the condition.
For the below source file that you provided, you should create 3 message mappings & operation mapping. If atleast one row has the value 'COMPANY1' row, then 1st mapping should be triggered and that should map only the rows with 'COMPANY1' to the target structure. Similarly you should do for the remaining rows.
BRIAN,COMPANY1
JULY,COMPANY2
RICHARD,COMPANY3
JESUS,COMPANY1
MAX,COMPANY2
Hope I made it clear.
~Srini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.