Count of input records without using the macros and function

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ds

Count of input records without using the macros and function

Post by ds »

How to count the number of input records that is the number of records in to a link without using macros or API. And additional stage like aggregator stage should not be used
I need the solution with the help of stage variables and partition count.
saikir
Participant
Posts: 92
Joined: Wed Nov 08, 2006 12:25 am
Location: Minneapolis
Contact:

Post by saikir »

Hi,

You can get the link count using the DSGetLinkInfo function as below.

DSGetLinkInfo(JobName,StageName,LinkName,DSJ.LINKROWCOUNT)

Sai
ds

Post by ds »

Functions should not be used as is said...
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

System variable @INROWNUM will give you the input row count per node in a Transformer stage; since this is the only stage type that supports stage variables I assume that is what you have in mind. You can also get the input row counts in the Director, most easily in Monitor view.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Maveric
Participant
Posts: 388
Joined: Tue Mar 13, 2007 1:28 am

Post by Maveric »

Do a search on "@PARTITIONNUM". You will have to use @PARTITIONNUM and @INROWNUM to get count.
Post Reply