Page 1 of 1

i want to pass schema file-name during runtime.

Posted: Fri Dec 18, 2009 2:57 pm
by saikat26
Hi,

I have a job which uses schema File. My requirement is like that in each and everytime i run my job my schema file name changes.
So can you please tell me how to pass job parameters during time.

Please Help me.
Thanks in Advance...

Posted: Fri Dec 18, 2009 3:18 pm
by ray.wurlod
The usual way. Schema File is a property of the Sequential File stage (for example) and will accept a job parameter reference delimited with sharp signs.

Posted: Fri Dec 18, 2009 3:32 pm
by saikat26
I didnt understand clearly ..can you please explain in detail...

Thanks in Advance..

Posted: Sat Dec 19, 2009 12:55 am
by ray.wurlod
There is no more detail. The Schema File property will accept a job parameter reference as its value. The parameter reference will be resolved when the stage starts.

Posted: Sun Dec 20, 2009 8:01 am
by Sreenivasulu
Take the schema file name dynamically during run time (i.e the file name would be a job parameter reading some logic)

Regards
Sreeni

Posted: Tue Dec 22, 2009 7:28 am
by ajay.vaidyanathan
Hi,

Add a parameter to your job properties and you will be able to pass your schema file name to it at run time.