LayneFarrell
MIS
I am calling a script using db2 -tvf <script name> from the command line (UNIX); in the script I am mixing DB2 commands with OS commands e.g. pipes such as
list node directory > node.txt;
The line is interpreted as a DB2 command, resulting in "An unexpected token ">" was found following "directory". expected tokens may include: "END-OF-STATEMENT". SQLSTATE=42601"
Setting the whole up as an executable is not an option. Does anyone know what the syntax is to avoid the SQL0104N?
list node directory > node.txt;
The line is interpreted as a DB2 command, resulting in "An unexpected token ">" was found following "directory". expected tokens may include: "END-OF-STATEMENT". SQLSTATE=42601"
Setting the whole up as an executable is not an option. Does anyone know what the syntax is to avoid the SQL0104N?