Problem with DSExecute command

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
hhh
Participant
Posts: 86
Joined: Tue Aug 02, 2005 7:39 am

Problem with DSExecute command

Post by hhh »

While using this command in routine : Call DSExecute("UNIX",grep 'File' PathName,Output,SystemReturnCode)
I am getting following warning msg : 'WARNING: Variable 'grep' never assigned a value'
could you please provide your inputs on this warning
regards,
Hiten
OttMAdpttch
Charter Member
Charter Member
Posts: 6
Joined: Thu Mar 27, 2003 1:55 pm
Contact:

Post by OttMAdpttch »

Hiten,

You need to set a variable to the Unix command you wish to execute and then use this variable in the DSExecute funtion.

Cmd = 'grep ':Filename:' ':Pathname
Call DSExecute('UNIX',Cmd,Output,SystemReturnCode)
Mark Ott
DataStage Architect
Adept Technologies, Inc.
hhh
Participant
Posts: 86
Joined: Tue Aug 02, 2005 7:39 am

Post by hhh »

Thanks Mark!!!

[quote="OttMAdpttch"]Hiten,

You need to set a variable to the Unix command you wish to execute and then use this variable in the DSExecute funtion.

Cmd = 'grep ':Filename:' ':Pathname
Call DSExecute('UNIX',Cmd,Output,SystemReturnCode)[/quote]
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Mark

Welcome to the dark side. I see you are posting now. Great. Have fun.
Mamu Kim
Post Reply