INF: How to Use DBBCMD to Enable BCP IN Through an ODS Gateway ApplicationID: Q180781 
  | 
This article discusses the use of dbbcmd to enable the use of the Bulk Copy Program (BCP) to use BCP IN functionality through an Open Data Services application.
A BCP OUT operation through a gateway is already supported. The BCP OUT is
simply a SELECT operation that the gateway supports. However, the BCP IN
operation is a special operation, and therefore requires the use of dbbcmd.
To do this, perform the following steps:
      extern "C" RETCODE SQLAPI dbbcmd(DBPROCESS *, CHAR *, ...);
  
      char * strCmd = (char *)srv_langptr(psrvProc);
      if(0 == strncmp((char *)strCmd, "insert bulk", 11))
         .
         .
 
      int iLen = srv_langlen(psrvProc);
              if(iLen == -1L)
               iLen = 0L;
      rc = dbbcmd(pdbProc, strCmd, iLen);
      .
      .
 Additional query words: procsrv ods
Keywords          : SSrvProg 
Version           : WINNT:6.5
Platform          : winnt 
Issue type        : kbhowto kbinfo 
Last Reviewed: April 21, 1999