accessing information about next record

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

accessing information about next record

Post by I_Server_Whale »

Hi Gurus,

In my job, I need to access, the next record while the current record is being processed. How do I do that ? Any ideas?

Thanks!
Naveen.
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

Hi again,

I have a sequential file source, for which I need to access the second record while the first is being processed. I hope I framed the question correctly.

Thanks again,
Naveen.
pnchowdary
Participant
Posts: 232
Joined: Sat May 07, 2005 2:49 pm
Location: USA

Post by pnchowdary »

Hi NaveenD,

I don't think there is any direct way to do that, as Datastage processes only one row at a time.
Thanks,
Naveen
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There is no lookahead capability. You can use stage variables to compare current row to previous row, but never to next row.

The only possiblility is to create your own stage type if you want a lookahead capacity.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

Hello Ray,

How do Igo about creating my own stage type? Please do let me know. Thanks much,

Naveen.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Get the Plug-In Writer's Guide from Ascential. Become a very good C and C++ programmer.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply