<BLOCKQUOTE><font size="1" face="Verdana, Arial">Zitat:</font><HR>
SQL erlaubt leider keine Parametrierung eines Lib-/Filenamen
[/quote]

bei mir schon :

Code:
     d SqlStm          s            512a
     d Lib             s             10a   inz('QTEMP')
     d File            s             10a   inz('TEST')

     c/Exec SQL
     c+ declare PrepSqlStm Statement
     c/End-Exec

     c                   eval      SqlStm = 'UPDATE '
     c                                    + %trim(Lib)
     c                                    + '/'
     c                                    + %trim(File)
     c                                    + ' SET X1 = X2'

     c/Exec SQL
     c+   prepare PrepSqlStm from :SqlStm
     c/End-Exec

     c/Exec SQL
     c+   execute PrepSqlStm
     c/End-Exec
Gruß
Rolf