We have a requirement as follows.
We have created a datastage job that will be doing the select operation from table (select query from a table).
The datastage job is being invoked by a unix shell script(ksh).
We are passing the "table name (STUD_DETAILS)" and a "where clause condition (ADDRESS IS NOT NULL) " as a parameter to the job.
If these parameters are passed to the datastage job, it will form a query as follows.
"select stud_name, join_year, roll_no from STUD_DETAILS where branch = 'CSE' AND ADDRESS IS NOT NULL;"
We have written the unix shell script as follows.
function abc
{
tblname=$1
cdntion=$2
}
..
..
..
in main function we are calling the function abc
x="STUD_DETAILS"
y="AND ADDRESS IS NOT NULL"
.. calling the function abc.
abc (x,y)
If we pass the parameter like this...
tblname is having STUD_DETAILS
and cdntion is having AND
we are expecting the cdntion to have "AND ADDRESS IS NOT NULL". The text "ADDRESS IS NOT NULL" is not being passed to the datastage job.
The script will be passing only 2 parm.
parm1 = table name
parm2 = where clause condition...... need to send the whole string (AND ADDRESS IS NOT NULL).
Can anyone help me to fix this issue.
Thanks
Krishnakanth Manivannan
Software Engineer