Sequential File : Header generation
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 47
- Joined: Wed Apr 18, 2007 4:49 am
Sequential File : Header generation
Hi All,
My reqirement is to generate ASCII txt files from a table.
The file should have 2 headers in it. I have 3 o/p links from a transformer to 3 Seq file stage. one for each header and the last one for actual data. All headers are hardcoded(except one where am using a date from parameter), not connected to any i/p link.
But after run, the 2 header files had as many rows as in table.
eg: now i am testing with 3 records from table. and the hardcoded value for each header has been written to file 3 times.
Please help me out how to restrict header to only one row.
Thanks,
Deepak
My reqirement is to generate ASCII txt files from a table.
The file should have 2 headers in it. I have 3 o/p links from a transformer to 3 Seq file stage. one for each header and the last one for actual data. All headers are hardcoded(except one where am using a date from parameter), not connected to any i/p link.
But after run, the 2 header files had as many rows as in table.
eg: now i am testing with 3 records from table. and the hardcoded value for each header has been written to file 3 times.
Please help me out how to restrict header to only one row.
Thanks,
Deepak
Constraint?
Code: Select all
@OUTROWNUM = 1
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 47
- Joined: Wed Apr 18, 2007 4:49 am
Hi Chulett,chulett wrote:Constraint?
...Code: Select all
@OUTROWNUM = 1
I have tried @OUTROWNUM = 1 option, this time 2 header records are written to sequential file. But i need only 1 record.
thanks,
Deepak
-
- Premium Member
- Posts: 783
- Joined: Mon Jan 16, 2006 10:17 pm
- Location: Sydney, Australia
-
- Participant
- Posts: 47
- Joined: Wed Apr 18, 2007 4:49 am
-
- Premium Member
- Posts: 783
- Joined: Mon Jan 16, 2006 10:17 pm
- Location: Sydney, Australia
-
- Participant
- Posts: 47
- Joined: Wed Apr 18, 2007 4:49 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Foiled by parallel execution!chulett wrote:Constraint?
Code: Select all
@OUTROWNUM = 1
Maybe
Code: Select all
@OUTROWNUM = 1 And @PARTNUM = 0
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.