Hi,
I'm using a SF configureted to Generate Multiple Files.
I'm getting generate files name as expected, but, the "key" field cannot follow into the files.
How to remove the "key" from output file content?
Generate Multiple Files - How to remove the "key"
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 4
- Joined: Fri Dec 09, 2016 5:36 am
Use a after job subroutine to rename the files, Can you explain your stage configuration?
~Atul Singh
<a href=http://www.datagenx.net>DataGenX</a> | <a href=https://www.linkedin.com/in/atulsinghds>LinkedIn</a>
<a href=http://www.datagenx.net>DataGenX</a> | <a href=https://www.linkedin.com/in/atulsinghds>LinkedIn</a>
-
- Participant
- Posts: 4
- Joined: Fri Dec 09, 2016 5:36 am
The job is very simple:
Oracle Source... ->> Transformer... ->> Sequential File
Into the source, the query retrieve the emp.ID used as "key" to build the FileName. The query can retrieve several emp.ID's and can be generated more than one file in the same execution.
The SF is configurated as:
- Write Method = Generate Multiple Files
- Key = emp.ID
-- Use value in File Name = TRUE
- Root File String = /tmp/
Using this config, the file name is ok, but the field used as "key" was included also into file content.
With this approach I need to remove this column from file.
Also, I've already to use sed, awk and cut, on SF Filter Condition, but the Job appears keep in loop and not finish.
Oracle Source... ->> Transformer... ->> Sequential File
Into the source, the query retrieve the emp.ID used as "key" to build the FileName. The query can retrieve several emp.ID's and can be generated more than one file in the same execution.
The SF is configurated as:
- Write Method = Generate Multiple Files
- Key = emp.ID
-- Use value in File Name = TRUE
- Root File String = /tmp/
Using this config, the file name is ok, but the field used as "key" was included also into file content.
With this approach I need to remove this column from file.
Also, I've already to use sed, awk and cut, on SF Filter Condition, but the Job appears keep in loop and not finish.