Page 1 of 1

How to parameterize records in a File

Posted: Thu Aug 06, 2009 12:35 pm
by aladap12
DS Friends,

I have an Issue at my work.Please help me if you have the solutuion and suggestions to solve my problem

My issue is .. I have a job that process on .txt file. This file contains more tham Million records. I need to set a parameter to job to stop after processing certain number of records.. say after 70000 records.

This number of records always varis, I need to set a parameter that lets the job know to stop after processing these many number of records.

How can I achive this in Datastage.

Thanks
VKR

Re: How to prametartise records in a File

Posted: Thu Aug 06, 2009 1:23 pm
by ddevdutt
In the Sequential file stage, you have a property under Options "Read First Rows".

Set the value of this property to a job parameter and you should be good to go.

Re: How to prametartise records in a File

Posted: Mon Aug 10, 2009 1:34 pm
by aladap12
ddevdutt wrote:In the Sequential file stage, you have a property under Options "Read First Rows".

Set the value of this property to a job parameter and you should be good to go.
Hi,

Thanks for your response.Could you pelase tell me how can we set ReadFirstRows value as a job parameter.Please explain me.
Is it like setting value to the option in the stage itself or can we set that as a parameter.
Thanks In Advance.

VKR

Posted: Mon Aug 10, 2009 1:52 pm
by chulett
Click on the small right-facing arrow-head next to the Property, Insert Job Parameter and then select New... if you need to create a new one for this.

Posted: Mon Aug 10, 2009 4:15 pm
by rupeshg
Yes you can pass parameter to "Read First Rows" option in a sequential file property.

Insert the parameter in the value tab of "Read First Rows", example: #minrows#
where "minrows" is a parameter declared in job properties either with a default value or could be passed when prompted.

-RG