Jared Still Certifiable Oracle DBA and Part Time Perl Evangelist On Tue, May 26, 2009 at 5:13 PM, Tony van Lingen < tony_vanlingen@xxxxxxxxxxxxxxxxxxxxx> wrote: > Jared, > > I dont mean a syntax problem with the script as you gave it - I do > appreciate that it is the same in both cases. However, it contains > variables, Hence *at runtime* the scripts do differ. > > What I am thinking of is the resulting syntax after the two environment > variables are evaluated. Presumably you either construct them earlier in the > script or pipe them in somehow. If one of the variables has a value that > disrupts the syntax at runtime, you could get the error that you are seeing. > A statement like > > @echo [%FORMAT_PREFIX%] >> %RMAN_LOG_FILE% > @echo [%FORMAT_SUFFIX%] >> %RMAN_LOG_FILE% > > ... > No, that wasn't it. I did check all of these. Jared