Hi,
Can someone please tell me How to include header row while wiriting into a sequential flat file.
Ex: The seq. file should be look like this
EMPNO|EMPNAME|DEPT
123|JOHN XYZ|150
234|XYX ABC|201
I'm able to create and write data into seq. file, but the header is missing. Is there any option in "seq file stage" to include header row.
Please let me know if there any other alternates.
I appreciate your help.
How to include Header row in sequential file
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 6
- Joined: Tue Jul 13, 2004 7:40 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Re: How to include Header row in sequential file
We try to write a small job which uses a row generator to a file, and then in the second job in the sequence, we just append to the existing file. this works well for all cases where you need some text before the value and will work for header columns as well - you just define the header column as a varchar string and in the derivation, just put this string...
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
In the parallel Sequential File stage the "First line is header rows" property is a General property, not a Format property. On the Properties tab you will find it in the Options folder.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.