home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv4.zip / VACPP / IBMCPP / HELP / CPPOSQ3U.INF (.txt) < prev    next >
OS/2 Help File  |  1995-06-06  |  5KB  |  152 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Using SQLPREP ΓòÉΓòÉΓòÉ
  3.  
  4. SQLPREP translates an application source file containing embedded SQL 
  5. statements into a modified source file containing Database Manager run-time 
  6. services API calls.  SQLPREP can optionally bind the application to a database 
  7. during the precompile process. Consult the DB/2 OS/2 Programming Guide for more 
  8. details. 
  9.  
  10.  
  11. ΓòÉΓòÉΓòÉ 1.1. SQLPREP Options ΓòÉΓòÉΓòÉ
  12.  
  13. These options may be used with the SQLPREP action. 
  14.  
  15.  Database Name       If blank, and/or the database name cannot be determined 
  16.                      from the input file (when generated by ICSDATA), the user 
  17.                      will be prompted for input. Otherwise, this is the default 
  18.                      name used for this action. ICSDATA generated database 
  19.                      names will override this default. 
  20.  
  21.  Prompt For Name     The user will be prompted to enter the database to be 
  22.                      associated with this SQC file if it was not generated by 
  23.                      ICSDATA. 
  24.  
  25.  Ignore Generated Name This will cause the SQLPREP action to ignore database 
  26.                      information generated by the ICSDATA tool, and determine 
  27.                      the database name using the prompt and/or default name, 
  28.                      depending on the other settings. 
  29.  
  30.  Output Options      Consult the DB/2 OS/2 Programming Guide for more details. 
  31.  
  32.                      Create Package           Selects the PACKAGE option and 
  33.                                               creates a package using the 
  34.                                               program name with the .c 
  35.                                               extension. Consult the DB/2 OS/2 
  36.                                               Programming Guide for more 
  37.                                               details. 
  38.  
  39.                      Create Bind File         Creates a bind file using the 
  40.                                               program name with the .BND 
  41.                                               extension. Consult the DB/2 OS/2 
  42.                                               Programming Guide for more 
  43.                                               details. 
  44.  
  45.                      Both                     Create both a package and a bind 
  46.                                               file. 
  47.  
  48.                      Neither (Syntax Check Only) Selects the SYNTAX option. 
  49.                                               This option does not create a 
  50.                                               package or a bind file. Consult 
  51.                                               the DB/2 OS/2 Programming Guide 
  52.                                               for more details. 
  53.  
  54.  Date/Time Format    Determines the date and time format used when date/time 
  55.                      fields are assigned to string representations. If this 
  56.                      option is not specified, the default format is used as 
  57.                      determined by the country code. Consult the DB/2 OS/2 
  58.                      Programming Guide for more details. 
  59.  
  60.  Isolation Level     Determines isolation level.  If no isolation level option 
  61.                      is specified, Database Manager uses the isolation level 
  62.                      selected at precompile time. Consult the DB/2 OS/2 
  63.                      Programming Guide for more details. 
  64.  
  65.  Blocking Type       Specifies the type of record blocking to be used and how 
  66.                      ambiguous cursors are to be treated. Consult the DB/2 OS/2 
  67.                      Programming Guide for more details. 
  68.  
  69.  Compliance Level    Specifies the standards compliance level requested. 
  70.                      Consult the DB/2 OS/2 Programming Guide for more details. 
  71.  
  72.  Suppress #Lines Macro Suppress #line macros. Specify this option if you intend 
  73.                      to step through your program with a symbolic debugger. 
  74.                      Consult the DB/2 OS/2 Programming Guide for more details. 
  75.  
  76.  Enable Optimization Specifies SQLDA optimization.  This causes SQLDA 
  77.                      initialization to be optimized for SQL statements that use 
  78.                      host variables. Consult the DB/2 OS/2 Programming Guide 
  79.                      for more details. 
  80.  
  81.  
  82. ΓòÉΓòÉΓòÉ 1.2. SQLPREP Prompt ΓòÉΓòÉΓòÉ
  83.  
  84. The user may request that each invocation of the action query for the database 
  85. name. 
  86.  
  87.  File Name           Name of the file upon which this action is to be 
  88.                      performed. 
  89.  
  90.  Database Name       Name of the database to which this action applies. 
  91.  
  92.  
  93. ΓòÉΓòÉΓòÉ 2. Using SQLBIND ΓòÉΓòÉΓòÉ
  94.  
  95. A .BND file produced by SQLPREP is bound to the specified database. Consult the 
  96. DB/2 OS/2 Programming Guide for more details. 
  97.  
  98.  
  99. ΓòÉΓòÉΓòÉ 2.1. SQLBIND Options ΓòÉΓòÉΓòÉ
  100.  
  101. These options may be used with the SQLBIND action. 
  102.  
  103.  Database Name       If blank the user will be prompted for input. Otherwise, 
  104.                      this is the default name used for this action. 
  105.  
  106.  Authorization ID / Grant Specification Specifies that EXECUTION and BIND 
  107.                      privileges are granted to the specified ID.  Valid values 
  108.                      are PUBLIC or and authorization ID representing a user or 
  109.                      goup. Consult the DB/2 OS/2 Programming Guide for more 
  110.                      details. 
  111.  
  112.  Date/Time Format    Determines the date and time format used when date/time 
  113.                      fields are assigned to string representations. If this 
  114.                      option is not specified, the default format is used as 
  115.                      determined by country code. Consult the DB/2 OS/2 
  116.                      Programming Guide for more details. 
  117.  
  118.  Isolation Level     Determines isolation level. If no isolation level option 
  119.                      is specified, Database Manager uses the isolation level 
  120.                      selected at precompile time. Consult the DB/2 OS/2 
  121.                      Programming Guide for more details. 
  122.  
  123.  Blocking Type       Specifies the type of record blocking to be used and how 
  124.                      ambiguous cursors are to be treated. Consult the DB/2 OS/2 
  125.                      Programming Guide for more details. 
  126.  
  127.  Input is file list  The input is a list of .BND files to bind with the 
  128.                      specified database. 
  129.  
  130.  Prompt              The user will be prompted to enter the parameters to be 
  131.                      used for SQLBIND. 
  132.  
  133.  
  134. ΓòÉΓòÉΓòÉ 2.2. SQLBIND Prompt ΓòÉΓòÉΓòÉ
  135.  
  136. The user may request that each invocation of the action query for the input 
  137. parameters. 
  138.  
  139.  File Name           Name of the file upon which this action is to be 
  140.                      performed. 
  141.  
  142.  Input is file list  The input is a list of .bnd files to bind with the 
  143.                      specified database. 
  144.  
  145.  Database Name       Name of the database to which this action applies. 
  146.  
  147.  Authorization ID / Grant Specification Specifies that EXECUTION and BIND 
  148.                      privileges are granted to the specified ID.  Valid values 
  149.                      are PUBLIC or and authorization ID representing a user or 
  150.                      goup. Consult the DB/2 OS/2 Programming Guide for more 
  151.                      details. 
  152.