passing a script name in filter command of sequential stage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sunshine
Participant
Posts: 61
Joined: Wed Jan 04, 2006 10:24 am

passing a script name in filter command of sequential stage

Post by sunshine »

Hi,

I have a Sequential Stage. In the filter command i need to call a scirpt with an argument. its unix script.


in which Unix directory i need to store the script?

not sure whether this will work or not.


let me know if you have any questions?


thanks
sunshine
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Are you clear on what you want to do? THe filter command will execute a command on the file and the sysout will be read by the stage. Is that what your script is doing?
The script can sit anywhere as long as your id has execute permission to it. Provide the fully qualified path to it.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
sunshine
Participant
Posts: 61
Joined: Wed Jan 04, 2006 10:24 am

Post by sunshine »

yes,

ths sysout will be read by datastage.

assume that i saved script in directory /home/myscripts

assume that script name is: "Read5Lines" with filename as argument.

in filter command what i need to write?



thanks
sunshine
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Code: Select all

/home/myscripts/Read5Lines
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply