Using PROGNAME with the SQL interface as well