zOs/SQL/DB2UTF

select * from
    final table (insert into s100447.tInuse
        (creator, name, timestamp)
    values (
          'S100447', (select min(name)
                          from sysibm.systables t
                          where dbName = 'DB2MAPUT'
                          and   name <> 'TINUSE'
                          and not exists (select 1
                              from s100447.tInuse  i
                              where t.name = i.name)
                     ), current timestamp )
    )