I have to fetch last record from a file but i do not want to execute the stage in sequential mode.i want to execute stage in parallel mode only.
Current logic i am following.
sequentialfile-->tail stage
or
sequentail file-->transformer stage(lastrow function as constraint).
both tail stage and transfomer stage i am running in sequential mode but i am thinking whether we can do samething by using by executing the stage in parallel mode
First and last record
Moderators: chulett, rschirm, roy
-
- 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:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You do not know, in a parallel execution environment, which node is processing the last row of the file, unless there is some particular characteristic of the data from that line that allows it to be thus identified.
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.
Been wondering the same thing, all of this conversating about "last record alone" - if that's all you need just use tail -1 as noted and never mind about all this parallel mode stuff.
Oh, and... whatever happened to the "first record" you mentioned in your subject?
Oh, and... whatever happened to the "first record" you mentioned in your subject?
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers