PPT Slide
"\@SQL_DATA=\`${SQL_RUNNER_PATH} {SQL_RUNNER_NAME}",
"${SQL_FILENAME2} ", # .SQL statement
"\"${SQL_FILENAME3}\" ", # .UNL filename (May not be used)
"\"${SQL_FILENAME4}\" ", # .OUT filename (STDOUT/STDERR)
"\` "); # End with a trailing back-tick
eval $RUNTXT; # Execute the SQL statement
# Populate the @SQL_DATA array with the results
Note: This section uses the Perl "eval" function, which executes a mini-perl program, that is contained in a variable (in this case $RUNTXT). The statement being executed contains another statement, surrounded by back-ticks, which works just like a unix shell-script (which executes the statement surrounded by back-ticks - in this case "sql_runner.bat)". The array @SQL_DATA is populated with the result of the query.