I have a script file named abcd.pl code like this...
BEGIN ATOMIC
DECLARE abcd VARCHAR(50);
SELECT xxxx
INTO abcd
FROM <table>;
END;
This is throwing out an error saying that abcd is not a valid after INTO.
Can some one suggest an alternative ?
I have another quick question.....
How can we pass Input variables into a script like above while calling it from a Unix prompt. Like...
$db2 -td@ -f abcd.pl <PARM1> <PARM2> ...etc.
Start Free Trial