I've also tried using SYSTEM(), but for some reason that returns status 1 (what does that even mean?), even though the command should succeed as far as I can tell. For the record, I used this incantation:
This message has been edited. Last edited by: Kerry,
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
February 15, 2011, 09:16 AM
Wep5622
Never mind, it seems I forgot to prepend the 'DEL ' substring to the &CMD variable in the SYSTEM()-case. That part works now.
Still, it would be good to know how to check the exit status of the first command.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
February 15, 2011, 03:56 PM
Waz
Be careful with &RETCODE, as it is a system variable.