title: How to fix the DB21005E An error occurred while accessing the file "DML.db2"
body: <p>I'm using IBM DB2-c as my database and batch file for the command, but when I try to insert data from my database It shows the error "DB21005E  An error occurred while accessing the file "DML.db2"." </p>
  
  <p>I tried to fix this using some codes but still wont work</p>
  
  <pre><code>:Insert
      cls
      echo.
      SET /p id="Enter ID: "
      SET /p name="Enter Tool Name: "
      SET /p course="Enter qty: "
      SET /p price="Enter price: "
      echo.
      echo.
      echo Processing...
  
      echo CONNECT TO TOOLSDB; &gt;DML.db2
      echo INSERT INTO TOOL(tool_id,tool_name,tool_qty,tool_price) 
          VALUES(%tool_id%,'%tool_name%', %tool_qty%, %tool_price%); &gt;&gt;DML.db2
  
      db2cmd -c -w -i db2 -c -tf DML.db2
      pause &gt;nul
      goto :Menu
  </code></pre>
  
  <p>I expect to insert the data after I fill up the fields. Hope someone can help me</p>