docs: public static void main3(String args[]) {
          String dbDriver = "COM.ibm.db2.jdbc.app.DB2Driver";
          String url = "jdbc:db2:sample";
          String user = "batra";
          String pass = "varunbatra";
          String querystring = "Select * from batra.employee";
          String fn;
          String ln;
          String bd;
          String sal;
  
          try {
              ConnectionProperties cp = new ConnectionProperties(dbDriver, url, user, pass);
              Query query = new Query(cp, querystring);
              QueryResults qs = query.execute();
              System.out.println("Number of rows = " + qs.size());
  
              Enumeration e = qs.getRows();
              while (e.hasMoreElements()) {
                  QueryRow qr = (QueryRow) e.nextElement();
                  fn = qr.getValue("FIRSTNME");
                  ln = qr.getValue("LASTNAME");
                  bd = qr.getValue("BIRTHDATE");
                  sal = qr.getValue("SALARY");
                  System.out.println(fn + " " + ln + " birthdate " + bd + " salary " + sal);
              } // while
  
              /*
                while (qs.next())
                  {
                  fn = qs.getValue("FIRSTNME");
                  ln = qs.getValue("LASTNAME");
                  bd = qs.getValue("BIRTHDATE");
                  sal = qs.getValue("SALARY");
                  System.out.println(fn + " " + ln +
                                     " birthdate " + bd +
                                     " salary " + sal);
                  }
                  
                qs.setCurrRow(5);
                fn = qs.getValue("FIRSTNME");
                ln = qs.getValue("LASTNAME");
                bd = qs.getValue("BIRTHDATE");
                sal = qs.getValue("SALARY");
                System.out.println(fn + " " + ln +
                                     " birthdate " + bd +
                                     " salary " + sal);
              */
  
          } // try
          catch (Exception e) {
              //com.ibm.ws.ffdc.FFDCFilter.processException(e, "com.ibm.ws.webcontainer.jsp.tsx.db.Query.main3", "414");
              System.out.println("Exception:: " + e.getMessage());
          }
          System.out.println("All is Fine!!!!!");
      }