Row Count using Stage Variable
Moderators: chulett, rschirm, roy
Row Count using Stage Variable
Hi,
I am using one seq file linked to a transformer and then one output sequential file.I want to calculate number of records that are coming from my input seq file.I don't want to process the column that are coming from input seq file.
Only record count should be remain in the output file.
can we do this using stage variables in transfomer without using any additional stage like aggregator or without any command in unix.
Sachin Gupta
I am using one seq file linked to a transformer and then one output sequential file.I want to calculate number of records that are coming from my input seq file.I don't want to process the column that are coming from input seq file.
Only record count should be remain in the output file.
can we do this using stage variables in transfomer without using any additional stage like aggregator or without any command in unix.
Sachin Gupta
Re: Row Count using Stage Variable
You can get the link count in after job routine using DSGetLinkInfo function
DSGetLinkInfo(jobname, stagename, inlinkname , DSJ.LINKROWCOUNT)
DSGetLinkInfo(jobname, stagename, inlinkname , DSJ.LINKROWCOUNT)
Shruthi
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
I guessed that was only because the server platform is Windows, but MKS Toolkit (which installs with Information Server on the engine tier) gives access to such commands.
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.