Record count on sequential file

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
chitravallivenkat
Participant
Posts: 106
Joined: Thu Jun 08, 2006 8:51 am

Record count on sequential file

Post by chitravallivenkat »

Hi i have to find the record count for the sequential file_1 which is generated by 3 different databases in a single job. by using 2 source as hash and other by source as sybase. And after getting record count from seqentail file1 i should populate in other sequential file field.


And i tried using

1) taking one field of sequential file and using aggregator stage and transformer and populating in other sequentail file2 field

2) used DSGetLinkInfo(hJob, StageName, LinkName, DSJ.LINKROWCOUNT)
but did not what will be stage name in my case.


So please help me on this..
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

For (2) use the input link name and stage name of the sequential file stage.
chitravallivenkat
Participant
Posts: 106
Joined: Thu Jun 08, 2006 8:51 am

Post by chitravallivenkat »

will the first method will give me accurate value...

for second method i should declare DSGetLinkInfo(hJob, StageName, LinkName, DSJ.LINKROWCOUNT)
this one in the derivation of the field..

Please correct me if i am wrong..
chitravallivenkat
Participant
Posts: 106
Joined: Thu Jun 08, 2006 8:51 am

Post by chitravallivenkat »

will the first method will give me accurate value...

for second method i should declare DSGetLinkInfo(hJob, StageName, LinkName, DSJ.LINKROWCOUNT)
this one in the derivation of the field..

Please correct me if i am wrong..
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Your Aggregator can count, or sum the value 1, and will give a correct result.

Your syntax for DSGetLinkInfo() is correct for getting the link row count, provided that the stage name is that of an active stage to which the link is connected.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chitravallivenkat
Participant
Posts: 106
Joined: Thu Jun 08, 2006 8:51 am

Post by chitravallivenkat »

Thanks for solution,
It help me out
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Please mark this thread as Resolved.
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