Hello
I've following Code:
If the query "Select * ..." find at least one record then should start RUN_PGM3.sql.
But if the query crash or there are no rows in the table should start RUN_PGM4.sql
How do I have to handle this?
Thanks a lot for every help
Joerg Braendli
I've following Code:
Code:
@C:\TEMP\RUN_PGM1.sql
@C:\TEMP\RUN_PGM2.sql
SET LINESIZE 0
SET COLWIDTH 0
SET PAGESIZE 0
SET FEEDBACK OFF
SET TERMOUT OFF
SET ECHO OFF
SPOOL C:\TEMP\OUTPUT.txt
PROMPT TITEL
SELECT *
FROM ADH_ABO_7076_RM_WERTE_T
;
SPOOL OFF
/
@C:\TEMP\RUN_PGM3.sql
@C:\TEMP\RUN_PGM4.sql
But if the query crash or there are no rows in the table should start RUN_PGM4.sql
How do I have to handle this?
Thanks a lot for every help
Joerg Braendli