Page 1 of 1

Passing Dynamic values as Parameters

Posted: Thu Jun 28, 2012 3:30 pm
by kkmreddy
Hi All,
I need your help on below question ,

How can i pass a changing value as a parameter in the job . For example i have Source filename - FName.26.06.2012 and tomarrow it will change to Fname-27.06.2012. How can i call these daily source files with name change in my DS job ?


I would really appreciate any suggestions .

Many Thanks
kk..

Posted: Thu Jun 28, 2012 4:41 pm
by Kryt0n
You already know it's a parameter, so look up parameters in the help files and it will tell you how to pass them to jobs

Posted: Thu Jun 28, 2012 4:43 pm
by ray.wurlod
Welcome aboard.

That's exactly what parameters do. When you submit a job run request you are prompted for the parameter values (or you use -param option in the dsjob command line).

If you need to detect the file name, you use a sequence with a command to retrieve the file name (for example ls -lrt FName* | head -1)