title: Offline Backup script for DB2
body: <p>I am trying to do a offline backup for my DB2(10.1.0) using script and schedule it.</p>
  
  <p>db2backup.bat</p>
  
  <pre><code>@ECHO OFF 
  FOR xxxx IN (OPNACT BLOGS SNCOMM DOGEAR FILES FORUM HOMEPAGE PEOPLEDB WIKIS) DO ( 
   DB2 CONNECT TO xxxx 
   DB2 QUIESCE DATABASE IMMEDIATE FORCE CONNECTIONS 
   DB2 CONNECT RESET 
   DB2 BACKUP DATABASE xxxx TO "C:\Backup\DB2" WITH 2 BUFFERS BUFFER 1024 PARALLELISM 3 WITHOUT PROMPTING 
   DB2 CONNECT TO xxxx 
   DB2 UNQUIESCE DATABASE 
   DB2 CONNECT RESET 
  )
  </code></pre>
  
  <p>But when i try to run it, </p>
  
  <pre><code>DB2CMD /c /w /i C:\Backup\db2backup.bat
  </code></pre>
  
  <p>I am getting a error ,</p>
  
  <p>"xxxx was unexpected at this time."</p>
  
  <p>so why i am getting this?how can i avoid it ?</p>
  
  <p>Many Thanks for your input !!.</p>