Passing Dynamic values as Parameters

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
kkmreddy
Participant
Posts: 11
Joined: Thu Jun 28, 2012 3:20 pm

Passing Dynamic values as Parameters

Post 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..
Kryt0n
Participant
Posts: 584
Joined: Wed Jun 22, 2005 7:28 pm

Post 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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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)
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