home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / db2q_a.txt < prev    next >
Text File  |  1995-02-12  |  133KB  |  3,233 lines

  1.                          DB2/2 AND DB2/6000 QUESTIONS AND ANSWERS3-1994-00
  2.  
  3.                          TORONTO, CANADA
  4.  
  5.                          Version 3.0
  6.  
  7.  
  8.   ii  DB2/2 And DB2/6000 Questions and Answers
  9.  
  10.  
  11.   CONTENTS
  12.   ________
  13.  
  14.  
  15.                       PREFACE  . . . . . . . . . . . . . . . . . . . . . . .  V
  16.  
  17.                       DB2/2 AND DDCS/2   . . . . . . . . . . . . . . . . . .  1
  18.                       Communications & DDCS  . . . . . . . . . . . . . . . .  1
  19.                       Utilities  . . . . . . . . . . . . . . . . . . . . .   16
  20.                       Install and Migration  . . . . . . . . . . . . . . .   19
  21.                       Application Development  . . . . . . . . . . . . . .   27
  22.                       Coexistence  . . . . . . . . . . . . . . . . . . . .   36
  23.                       Miscellaneous Topics   . . . . . . . . . . . . . . .   38
  24.  
  25.                       DB2/6000 AND DDCS/6000   . . . . . . . . . . . . . .   47
  26.                       Communications & DDCS  . . . . . . . . . . . . . . .   47
  27.                       Install and Migration  . . . . . . . . . . . . . . .   50
  28.                       Application Development  . . . . . . . . . . . . . .   51
  29.                       Miscellaneous Topics   . . . . . . . . . . . . . . .   52
  30.  
  31.                       FEEDBACK QUESTIONNAIRE   . . . . . . . . . . . . . .   55
  32.  
  33.  
  34.                                                                   Contents  iii
  35.  
  36.  
  37.   iv  DB2/2 And DB2/6000 Questions and Answers
  38.  
  39.  
  40.   PREFACE
  41.   _______
  42.  
  43.  
  44.                       This document contains information that should be of help
  45.                       to users of Database 2 for OS/2 (DB2/2) and Database 2
  46.                       for AIX (DB2/6000).  In some cases, the solution or
  47.                       answer may be applicable to the previous Database Manager
  48.                       (DBM) products on OS/2, such as Extended Edition Version
  49.                       1.3 (EE 1.3) and Extended Services Version 1.0 (ES 1.0).
  50.                       It also provides information for our Distributed Database
  51.                       Connection Services customers (DDCS/2 1.0, DDCS/2 2.0,
  52.                       and DDCS/6000 1.1).
  53.  
  54.                       The information here is presented in the form of
  55.                       questions and answers, or problems and solutions, that
  56.                       have come up for other customers.  Naturally, due to the
  57.                       ever-increasing complexity of products and the
  58.                       environments in which they are used, it is not always
  59.                       possible for a solution to be applicable in all cases of
  60.                       a problem.  If a solution here does not meet your needs,
  61.                       continue to use whatever service process you regularly
  62.                       use, or call:
  63.  
  64.                       o   "1-800-992-4777" for DB2/2 and DDCS/2
  65.  
  66.                       o   "1-800-225-5249" for DB2/6000 and DDCS/6000
  67.  
  68.                       For your convenience we have included BookManager READ/2,
  69.                       which allows you to view this book online.  One of
  70.                       BookManager's features is the searching facility, which
  71.                       enables you to search the entire document or any part of
  72.                       it for key words.  Another useful feature is the printing
  73.                       facility, which enables you to print off any portion of
  74.                       the document.
  75.  
  76.                       It is our intention to have this package updated
  77.                       quarterly.
  78.  
  79.                       We would like to thank you for using our database
  80.                       products, and we hope that the information here will be
  81.                       of assistance to you.
  82.  
  83.  
  84.                           Tom Curtis
  85.                           Manager, Workstation Database Service
  86.  
  87.  
  88.                                                                      Preface  v
  89.  
  90.  
  91.   vi  DB2/2 And DB2/6000 Questions and Answers
  92.  
  93.  
  94.   DB2/2 AND DDCS/2
  95.   ________________
  96.  
  97.  
  98.   COMMUNICATIONS & DDCS
  99.   _____________________
  100.  
  101.                       1.  PROBLEM / QUESTION
  102.  
  103.                           When I try to connect to DB2/MVS with DDCS/2, I'm
  104.                           getting an SQL30080 error with sense data 0806002B.
  105.  
  106.                           SOLUTION / ANSWER
  107.  
  108.                           The parameter ACTIVATE_AT_START_UP is set to YES in
  109.                           NDF file, when it should be set to NO.  Change this
  110.                           parameter and try again.
  111.  
  112.                       2.  PROBLEM / QUESTION
  113.  
  114.                           The DB2/2 1.0 client is accessing a DB2/MVS host
  115.                           database via an ES 1.0 DDCS/2 gateway, and cannot
  116.                           bind the DB2/2 bind files to the DB2/MVS database.
  117.  
  118.                           SOLUTION / ANSWER
  119.  
  120.                           Copy all DB2/2 bind files in SQLUBIND.LST to the ES
  121.                           1.0 server, and then run SQLJBIND using SQLUBIND.LST
  122.                           to bind all the DB2/2 .BND files to the host
  123.                           database.
  124.  
  125.                       3.  PROBLEM / QUESTION
  126.  
  127.                           I'm getting SQL30080N 0014 on the client when I try
  128.                           to connect to the server.
  129.  
  130.                           SOLUTION / ANSWER
  131.  
  132.                           One possible cause is that the server's installation
  133.                           was incomplete.  If you have had a successful
  134.                           connection before, and have not installed anything
  135.                           new, then this is not the problem.
  136.  
  137.                           Check to see if there is a file called IBMLANLK.LST
  138.                           in the OS2\INSTALL\IBMLANLK\ directory.  If there is,
  139.                           you need to reboot the server in order for the
  140.                           installation of DB2/2 1.0 to be complete.  This file
  141.                           contains instructions that need to be executed in
  142.                           order to handle any files that were locked during
  143.                           installation.
  144.  
  145.  
  146.                                                             DB2/2 and DDCS/2  1
  147.  
  148.  
  149.                           If this does not work, you will have to reinstall
  150.                           DB2/2 1.0.  Delete the OS2\INSTALL\IBMLANLK directory
  151.                           and remove DB2/2; then reinstall it.
  152.  
  153.                           Another possible cause is that NETBIOS support has
  154.                           not been initialized on the database server and/or
  155.                           the client. ( If sufficient resources were available
  156.                           and NETBIOS support has been initialized, you will
  157.                           hear three beeps on the server and one beep on the
  158.                           client during the STARTDBM.)  To increase the
  159.                           resources, you will need to increase the values of
  160.                           NAMES, COMMANDS, and SESSIONS in LAPS.
  161.  
  162.                       4.  PROBLEM / QUESTION
  163.  
  164.                           I'm getting SQL1042 error after SQLLOGN2 from a DOS
  165.                           window on OS/2 2.x.
  166.  
  167.                           SOLUTION / ANSWER
  168.  
  169.                           This may be due to uninitialized NETBIOS resources.
  170.                           Check the following:
  171.  
  172.                           a.  Ensure that NETBIOS support has been installed
  173.                               and configured.  This may either be via LAPS in
  174.                               ES 1.0 Communications Manager, or LAPS as part of
  175.                               NTS/2.
  176.  
  177.                           b.  Ensure that there are enough NETBIOS resources.
  178.  
  179.                           c.  Run SETUPVDD as defined in the DB2/2 readme file.
  180.  
  181.                       5.  PROBLEM / QUESTION
  182.  
  183.                           I'm getting SQL0204 error when I try to access a
  184.                           table in AS/400.
  185.  
  186.                           SOLUTION / ANSWER
  187.  
  188.                           Check how the table is qualified.
  189.  
  190.                           For a table in AS/400, the qualifier is the
  191.                           COLLECTION ID or the LIBRARY name. For example, table
  192.                           TABLE1 in COLLECTION (or LIBRARY) COLLE         CT,
  193.                           the fullname is COLLECT.TABLE1. (It is not the DDCS/2
  194.                           default qualifier of logon id.)
  195.  
  196.                       6.  PROBLEM / QUESTION
  197.  
  198.                           Does DB2/2 provide an Open Database Connection (ODBC)
  199.                           driver?
  200.  
  201.                           SOLUTION / ANSWER
  202.  
  203.  
  204.   2  DB2/2 And DB2/6000 Questions and Answers
  205.  
  206.  
  207.                           Yes, we provide first level ODBC support in our
  208.                           Client Application Enabler products as well as our
  209.                           Software Developer's Kit products.  The products are
  210.                           currently available for DOS, Windows and OS/2,
  211.                           including this support.
  212.  
  213.                       7.  PROBLEM / QUESTION
  214.  
  215.                           My Windows requester gets SQL1032 error when I try to
  216.                           connect, although STARTDRQ and SQLLOGN2 work fine.
  217.  
  218.                           SOLUTION / ANSWER
  219.  
  220.                           You need to configure Windows to use virtual NETBIOS.
  221.  
  222.                           Make sure that in \WINDOWS\SYSTEM.INI, under section
  223.                           386ENH, the parameter NETWORK is set to *VNETBIOS.
  224.  
  225.                       8.  PROBLEM / QUESTION
  226.  
  227.                           What protocols are required for DB2/2 and DDCS/2 to
  228.                           get to any database on the host?
  229.  
  230.                           SOLUTION / ANSWER
  231.  
  232.                           From the DB2/2 client to the DDCS/2 server, either
  233.                           NETBIOS or APPC/APPN.  To access a host database you
  234.                           need to use APPC.
  235.  
  236.                       9.  PROBLEM / QUESTION
  237.  
  238.                           Does DB2/2 support EE 1.3 clients?
  239.  
  240.                           SOLUTION / ANSWER
  241.  
  242.                           Yes, but only through the APPC communications
  243.                           protocol.
  244.  
  245.                       10. PROBLEM / QUESTION
  246.  
  247.                           What is the memory requirement for DDCS/2 clients?
  248.  
  249.                           SOLUTION / ANSWER
  250.  
  251.                           Refer to the :hpInformation and Planning Guide, p.
  252.                           40.  For DDCS/2 be sure to add 200K to the 230K that
  253.                           is required for a RDS client, to get t he 430K
  254.                            requ irement of a client going through a DDCS/2
  255.                           gateway to the host.
  256.  
  257.                       11. PROBLEM / QUESTION
  258.  
  259.  
  260.                                                             DB2/2 and DDCS/2  3
  261.  
  262.  
  263.                           I'm getting a SQL30080 0003-0000004 error with sense
  264.                           data FFFE0113 when        1 trying to connect to
  265.                           DB2/MVS using dependent LU.
  266.  
  267.                           SOLUTION / ANSWER
  268.  
  269.                           This is caused by the wrong configuration on both
  270.                           OS/2 and VTAM.
  271.  
  272.                           In the DDCS/2 gateway, set PARALLEL_SUPPORT in
  273.                           DEFINE_PARTNER_LU to NO.  In VTAM, the MODENT
  274.                           parameter must have the following:  COMPROT=X'50A5',
  275.                           PSERVIC=X'060200000000000000122C00'.
  276.  
  277.                           Another possible cause is that the target only
  278.                           supports dependent LU.
  279.  
  280.                           Put XID=YES in the VTAM definition for PU of the
  281.                           workstation (in addition to LOCADDR=0).
  282.  
  283.                       12. PROBLEM / QUESTION
  284.  
  285.                           I'm having problems accessing an AS/400 database.
  286.  
  287.                           SOLUTION / ANSWER
  288.  
  289.                           This is probably caused by not declaring the RDB
  290.                           directory correctly on the AS/400.
  291.  
  292.                           Use the ADDRDBDIRE command to define a name for the
  293.                           local AS/400 database.  Also, you must use Query
  294.                           Manager/400 to create a NULLID collection.
  295.  
  296.                       13. PROBLEM / QUESTION
  297.  
  298.                           I'm getting SQL30080 with sense data FFFF0003.
  299.  
  300.                           SOLUTION / ANSWER
  301.  
  302.                           This indicates that a session activation failed
  303.                           because APPC could not find a link to connect it to
  304.                           the partner node.  Define the correct Partner LU Name
  305.                           in Link.
  306.  
  307.                           Define a link 'to primary host' in CM/2 or ES 1.0
  308.                           Communications Manager.
  309.  
  310.                       14. PROBLEM / QUESTION
  311.  
  312.                           I'm getting SQL30080 0003-00000004 with sense data
  313.                           08970015.
  314.  
  315.                           SOLUTION / ANSWER
  316.  
  317.  
  318.   4  DB2/2 And DB2/6000 Questions and Answers
  319.  
  320.  
  321.                           This is caused by a System Definition Mismatch.
  322.  
  323.                           Change the PU definition at the host to state:
  324.                           Dynamic LU = YES.
  325.  
  326.                       15. PROBLEM / QUESTION
  327.  
  328.                           Connecting to the SQL/DS machine returns SQL30080
  329.                           0010-00000000 with sense data 08640001.
  330.  
  331.                           SOLUTION / ANSWER
  332.  
  333.                           The SQL/DS server machine was not brought up with the
  334.                           correct parameter to allow DRDA protocol.
  335.  
  336.                           When bringing it up use:  SQLSTART DB(dbname)
  337.                           parm(protocol=AUTO) or SQLSTART DB(dbname)
  338.                           parm(protocol=DRDA).
  339.  
  340.                       16. PROBLEM / QUESTION
  341.  
  342.                           I'm having problems getting DBM DROP DATABASE for a
  343.                           host database working properly.
  344.  
  345.                           SOLUTION / ANSWER
  346.  
  347.                           If you want to execute a DROP DATABASE against any
  348.                           host database, you must write an application (in C or
  349.                           another language) to prepare the statement, and then
  350.                           execute it.
  351.  
  352.                       17. PROBLEM / QUESTION
  353.  
  354.                           I'm getting SQL30080 with sense data 081C0103.
  355.  
  356.                           SOLUTION / ANSWER
  357.  
  358.                           This is usually caused by the incorrect destination
  359.                           address in the LINK configuration of the client.
  360.  
  361.                           Check this and if necessary, change it to the correct
  362.                           one.
  363.  
  364.                       18. PROBLEM / QUESTION
  365.  
  366.                           I'm receiving unreadable EBCDIC data when selecting
  367.                           from an OS/400 database via DDCS/2.
  368.  
  369.                           SOLUTION / ANSWER
  370.  
  371.                           Usually this is caused by the CCSID being set to
  372.                           65535.
  373.  
  374.                           Change the CCSID to 037.
  375.  
  376.  
  377.                                                             DB2/2 and DDCS/2  5
  378.  
  379.  
  380.                           You could also change the character set of the file
  381.                           in question.
  382.  
  383.                       19. PROBLEM / QUESTION
  384.  
  385.                           I'm having problems connecting to DB2/MVS through
  386.                           DDCS/2.  First I received SQL30080 0003-00000004;
  387.                           then I received SQL30080 0003-00000005 with sense
  388.                           data 08210002.
  389.  
  390.                           SOLUTION / ANSWER
  391.  
  392.                           a.  The target database was not the location name of
  393.                               the DB2/MVS database.
  394.  
  395.                           b.  MODTAB of the APPL definition does not contain
  396.                               IBMRDB and SNASVCMG modes.
  397.  
  398.                           c.  Try redefining the target database and define
  399.                               IBMRDB and SNASVCMG in MODTAB.
  400.  
  401.                       20. PROBLEM / QUESTION
  402.  
  403.                           Only one user can connect to DB2/MVS.
  404.  
  405.                           SOLUTION / ANSWER
  406.  
  407.                           This is usually caused by missing Mod table
  408.                           definitions on VTAM, so define the correct Mod tables
  409.                           on VTAM and retry.
  410.  
  411.                           It also may be caused by MAXREMOTE=1 on the DSNTIPE
  412.                           panel of DB2 DDF install or MAXSESSIONS=1.  Increase
  413.                           one or both of these as needed.
  414.  
  415.                       21. PROBLEM / QUESTION
  416.  
  417.                           Can I run WINDOWS/DOS client applications on the same
  418.                           machine as the server without going through a
  419.                           network?
  420.  
  421.                           SOLUTION / ANSWER
  422.  
  423.                           No. The request has to go through the network. DB2/2
  424.                           does not support internal loopback.
  425.  
  426.                           If a network is defined, then the client and server
  427.                           can be on the same physical machine.
  428.  
  429.                           If you do not have a network, you can attach a
  430.                           Token-Ring wrap plug to your Token-Ring adapter card.
  431.                           Then you will be able to use the Windows/DOS client
  432.                           applications.
  433.  
  434.  
  435.   6  DB2/2 And DB2/6000 Questions and Answers
  436.  
  437.  
  438.                       22. PROBLEM / QUESTION
  439.  
  440.                           I'm getting SQL0969 with -7008 as sqlerror when
  441.                           trying to access an AS/400 Database using DDCS/2.
  442.  
  443.                           SOLUTION / ANSWER
  444.  
  445.                           Journalling is probably turned off.  Journalling must
  446.                           be ON when using DDCS/2 with an isolation level other
  447.                           than Uncommitted Read (UR).
  448.  
  449.                           To turn journalling on perform the following steps:
  450.  
  451.                           a.  Create a journal receiver: CRTJRNRCV
  452.  
  453.                           b.  Create a journal: CRTJRN
  454.  
  455.                           c.  Start journalling the physical file: STRJRNPF
  456.  
  457.                           Use an isolation level of uncommitted read (UR). To
  458.                           do this perform either of the two following actions:
  459.  
  460.                           a.  Rebind the application using the /I=UR parameter.
  461.  
  462.                           b.  Use CLI with the command: DBM CHANGE SQLISL TO
  463.                               UR.
  464.  
  465.                       23. PROBLEM / QUESTION
  466.  
  467.                           My DB2/2 client receives logon failed when performing
  468.                           a logon to a DB2/2 Server, using a USERID and
  469.                           PASSWORD defined in UPM on the server and I'm using
  470.                           the APPC communications protocol.
  471.  
  472.                           SOLUTION / ANSWER
  473.  
  474.                           The Conversation Security is not being set correctly
  475.                           in CM/2.
  476.  
  477.                           Define 'Conversation Security' to 'Utilize User
  478.                           Profile Management' (select the push button on the
  479.                           CM/2 SNA Features Panel), or enter the userids and
  480.                           passwords that you want CM/2 to accept (using the
  481.                           same panel).
  482.  
  483.                       24. PROBLEM / QUESTION
  484.  
  485.                           My logon fails with SQL30080 error (APPC code is
  486.                           080F6051) when I try to connect to a DB2/MVS database
  487.                           using dependent LU.
  488.  
  489.                           SOLUTION / ANSWER
  490.  
  491.  
  492.                                                             DB2/2 and DDCS/2  7
  493.  
  494.  
  495.                           Try bringing down DB2/MVS and DDF, then bring them
  496.                           back up.
  497.  
  498.                       25. PROBLEM / QUESTION
  499.  
  500.                           Can you use SELECT statements to select different
  501.                           members of an AS/400 physical file (table)?
  502.  
  503.                           SOLUTION / ANSWER
  504.  
  505.                           No, not even SQL/400 can do that.  Only the first
  506.                           member can be selected.  (There  may be some
  507.                           techniques on the AS/400 where you can "fool" the
  508.                           system by using an alias name for each member, but we
  509.                           are not aware of any)
  510.  
  511.                       26. PROBLEM / QUESTION
  512.  
  513.                           The Windows client cannot talk to the DB2/2 server,
  514.                           although the DOS-only client application works fine.
  515.  
  516.                           SOLUTION / ANSWER
  517.  
  518.                           This is caused by not setting up Windows to point to
  519.                           PC LAN support.
  520.  
  521.                           Copy MSNET.DRV from Windows diskette 1 to
  522.                           WINDOWS\SYSTEM.  Run Windows Setup; choose OPTIONS,
  523.                           then Network. You can then choose PC LAN Support
  524.                           program to be installed.
  525.  
  526.                       27. PROBLEM / QUESTION
  527.  
  528.                           I'm receiving communication error SQL30080
  529.                           0003-080F6051 (SECURITY_NOT_VALID) when I try to log
  530.                           on to the DB2/MVS host via DDCS/2.
  531.  
  532.                           SOLUTION / ANSWER
  533.  
  534.                           The parameter specification in the VTAM APPL
  535.                           statement that is used when defining the DB2
  536.                           subsystem to VTAM is incorrect.
  537.  
  538.                           Set SECACPT=ALREADYV in the VTAM APPL statement and
  539.                           try again. (This is assuming that the userid and
  540.                           password are actually valid on the host.  Validity
  541.                           should be confirmed first.)
  542.  
  543.                       28. PROBLEM / QUESTION
  544.  
  545.                           I'm having a problem connecting the desired number of
  546.                           APPC clients, or I find that I cannot connect as many
  547.                           as I used to.
  548.  
  549.  
  550.   8  DB2/2 And DB2/6000 Questions and Answers
  551.  
  552.  
  553.                           SOLUTION / ANSWER
  554.  
  555.                           This is caused by resource contention between the
  556.                           database demands and the LAN Server demands.
  557.  
  558.                           Increase 'Max Number of Link Stations' on the
  559.                           database server, or stop using the same machine as a
  560.                           database and a LAN Server.
  561.  
  562.                           The clients that cannot connect will usually HANG.
  563.  
  564.                       29. PROBLEM / QUESTION
  565.  
  566.                           The DDCS/2 connection hangs in VTAM with PCINIT
  567.                           status.
  568.  
  569.                           SOLUTION / ANSWER
  570.  
  571.                           This may be caused by the incorrect format in LOGMODE
  572.                           in VTAM.  The continuation line must start on column
  573.                           16.
  574.  
  575.                       30. PROBLEM / QUESTION
  576.  
  577.                           I'm receiving an SQL30080 error with reason code 0038
  578.                           or 0014, when I use NETBIOS to connect from a client
  579.                           to a server.
  580.  
  581.                           SOLUTION / ANSWER
  582.  
  583.                           There are insufficient NETBIOS resources.
  584.  
  585.                           Increase the NETBIOS resources in PROTOCOL.INI:
  586.                           specifically, NAMES, SESSIONS, and COMMANDS. You can
  587.                           edit the PROTOCOL.INI file directly and change the
  588.                           values of NAMES, SESSIONS, and NCDS, or you can
  589.                           select LAN Adapter and Protocol Support in ES 1.0
  590.                           Communication Manager, or execute LAPS.EXE in
  591.                           \IBMCOM, if you have NTS/2 installed.
  592.  
  593.                       31. PROBLEM / QUESTION
  594.  
  595.                           I receive SQL30080 Reason Code 0A while trying to
  596.                           issue a connect from the DB2/2 clients to the DB2/2
  597.                           server.
  598.  
  599.                           SOLUTION / ANSWER
  600.  
  601.                           The number of the remote connections exceeded the
  602.                           configured limit.
  603.  
  604.                           Increase the value of the NUMRC parameter in the
  605.                           Database Manager Configuration.
  606.  
  607.  
  608.                                                             DB2/2 and DDCS/2  9
  609.  
  610.  
  611.                       32. PROBLEM / QUESTION
  612.  
  613.                           It looks like DB2/2 is not verifying the CM/2
  614.                           configuration file when it gets done adding the two
  615.                           DB2/2 TPs.
  616.  
  617.                           SOLUTION / ANSWER
  618.  
  619.                           DB2/2 does not verify the CM configuration file after
  620.                           installation. If you look at the DB2/2 README.SQL
  621.                           file, under the heading "DB2/2 Server and CM", it
  622.                           states that you must run the verify.
  623.  
  624.                       33. PROBLEM / QUESTION
  625.  
  626.                           Userids for DOS and Windows Clients cannot have the
  627.                           pound sign (#) as a character, but those in DB2MVS,
  628.                           can. Is there a workaround for this?
  629.  
  630.                           SOLUTION / ANSWER
  631.  
  632.                           Yes.  In DB2/MVS you can use USERID TRANSLATION
  633.                           FUNCTION to "translate" userids without the pound
  634.                           sign to other userids with it.  This workaround has
  635.                           to be done on the mainframe.
  636.  
  637.                       34. PROBLEM / QUESTION
  638.  
  639.                           I received 0003-00000004 or 0003-00000005 on the
  640.                           second EE1.3 client connecting to the DB2/2 server.
  641.  
  642.                           SOLUTION / ANSWER
  643.  
  644.                           Both EE1.3 clients are using the same Local LU (for
  645.                           example LU1).
  646.  
  647.                           Ensure that each client has a unique Local LU.
  648.  
  649.                       35. PROBLEM / QUESTION
  650.  
  651.                           Does SQLSIZE in CFG of DOS/WINDOWS CLIENT have to be
  652.                           the same as SVRIOBLK on the server?
  653.  
  654.                           SOLUTION / ANSWER
  655.  
  656.                           No, these never have to be the same in both ES and
  657.                           DB2/2.  (Note: In ES, the RQRIOBLK of the OS/2
  658.                           Requester needs to be the same as SVRIOBLK on the
  659.                           server.  This does not apply to DB2/2 any more, and
  660.                           has never applied to DOS/Windows clients).
  661.  
  662.                       36. PROBLEM / QUESTION
  663.  
  664.  
  665.   10  DB2/2 And DB2/6000 Questions and Answers
  666.  
  667.  
  668.                           After upgrading the database server from EE1.3 to
  669.                           CM/2.  EE1.3 clients clients cannot connect with
  670.                           communications error.  The clients are using SQLL00
  671.                           as the communications protocol.
  672.  
  673.                           SOLUTION / ANSWER
  674.  
  675.                           The SQLLOO protocol cannot be used with CM/2.
  676.  
  677.                       37. PROBLEM / QUESTION
  678.  
  679.                           I'm receiving SQL30080-14 error.
  680.  
  681.                           SOLUTION / ANSWER
  682.  
  683.                           This may be caused by incorrectly cataloging the
  684.                           workstation on the server.  Review your catalog
  685.                           parameters.
  686.  
  687.                       38. PROBLEM / QUESTION
  688.  
  689.                           I'm receiving an APPC error of 0003-00000005 with
  690.                           sense data 08120006 when I try to connect to host via
  691.                           DDCS/2.
  692.  
  693.                           SOLUTION / ANSWER
  694.  
  695.                           This error is caused by insufficient resources on the
  696.                           host side.  Seek assistance from your host system
  697.                           programmers and VTAM support personnel.
  698.  
  699.                       39. PROBLEM / QUESTION
  700.  
  701.                           I'm receiving SQL30061N when I try to connect to
  702.                           AS/400 via DDCS/2.
  703.  
  704.                           SOLUTION / ANSWER
  705.  
  706.                           On AS/400, use command ADDRDBDIRE to add a local
  707.                           database directory entry, and use the name for the
  708.                           TARGET DATABASE in DCS directory.
  709.  
  710.                       40. PROBLEM / QUESTION
  711.  
  712.                           DBM EXPORT hangs or returns SQL1325N when I issue it
  713.                           against the host database.
  714.  
  715.                           SOLUTION / ANSWER
  716.  
  717.                           EXPORT hangs because it tries to perform a DBM
  718.                           CONNECT. If you use dependent LU and already have a
  719.                           connection, this connect will hang.  The only support
  720.                           export format for host databases is IXF.
  721.  
  722.  
  723.                                                            DB2/2 and DDCS/2  11
  724.  
  725.  
  726.                       41. PROBLEM / QUESTION
  727.  
  728.                           I'm having trouble getting a Windows client up and
  729.                           running.  I'm receiving an SQL30080 error rc=14.
  730.  
  731.                           SOLUTION / ANSWER
  732.  
  733.                           Check the nname of the workstation and make sure that
  734.                           it is unique.
  735.  
  736.                       42. PROBLEM / QUESTION
  737.  
  738.                           Receiving SQL30080N FFFF or SQL30081N FFFF on a
  739.                           NETBIOS connection.
  740.  
  741.                           SOLUTION / ANSWER
  742.  
  743.                           There are multiple causes for this error:
  744.  
  745.                           1. NETBIOS is not installed (LAPS for OS/2 and LSP
  746.                           for DOS)
  747.  
  748.                           2. NETBIOS was not initialized during the STARTDBM.
  749.                           You should hear 3 beeps on the server and 1 beep on
  750.                           the client during a STARTDBM.
  751.  
  752.                           3. The NNAME defined in the Database Manager
  753.                           Configuration is not defined.
  754.  
  755.                           4. The NNAME defined in the Database Manager
  756.                           Configuration is not unique on the network.
  757.  
  758.                       43. PROBLEM / QUESTION
  759.  
  760.                           Poor performance occurring with the DOS Client (ES
  761.                           1.0 , DB2/2, CAE/DOS or SDK/DOS) when using Lan
  762.                           Support Program Version 1.35 and the device driver
  763.                           DXMT0MOD.SYS.
  764.  
  765.                           SOLUTION / ANSWER
  766.  
  767.                           Add the parameter PBA=0 to the device statement in
  768.                           the CONFIG.SYS on the DOS Client.  It should look
  769.                           something like this:  DEVICE=X:\LSP\DXMT0MOD.SYS
  770.                           PBA=0 <parm2> <parm3> ...
  771.  
  772.                       44. PROBLEM / QUESTION
  773.  
  774.                           Are back-level clients and servers supported?
  775.  
  776.                           SOLUTION / ANSWER
  777.  
  778.                           Back level clients are supported; however, back-level
  779.                           servers are not.  We always support clients for the
  780.  
  781.  
  782.   12  DB2/2 And DB2/6000 Questions and Answers
  783.  
  784.  
  785.                           two previous releases.  Unpredictable results can
  786.                           occur when the client is at a higher level than the
  787.                           server.
  788.  
  789.                       45. PROBLEM / QUESTION
  790.  
  791.                           Receiving SQL30080N RC=0014 or SQL30081N RC=0014.
  792.  
  793.                           SOLUTION / ANSWER
  794.  
  795.                           This could be caused by one of the following:
  796.  
  797.                           1. Insufficient resources allocated to NETBIOS
  798.                           support.  You can increase these by increasing the
  799.                           values of SESSIONS, NCBS (COMMANDS) and NAMES in your
  800.                           X:\IBMCOM\PROTOCOL.INI file.  You must reboot your
  801.                           machine after changing these values.
  802.  
  803.                           2. The NNAME specified in the node directory on the
  804.                           client is not found on the network.
  805.  
  806.                       46. PROBLEM / QUESTION
  807.  
  808.                           Receiving SQL30080N RC=FFFF or SQL30081N RC=FFFF.
  809.  
  810.                           SOLUTION / ANSWER
  811.  
  812.                           This is caused by one of three things:
  813.  
  814.                           1. NNAME in the DATABASE MANAGER CONFIGURATION is not
  815.                           unique on the network.
  816.  
  817.                           2. There were insufficient NETBIOS resources during
  818.                           the STARTDBM to load NETBIOS support.  The STARTDBM
  819.                           will still return a return code of zero.  You should
  820.                           hear 3 beeps on the server and 1 beep on the client
  821.                           when the NETBIOS resources are loaded.  If they were
  822.                           not loaded, you will have to increase the NETBIOS
  823.                           resource setting  s in the X:\IBMCOM\PROTOCOL.INI,
  824.                           which are defined by SESSIONS, NCBS (COMMANDS) and
  825.                           NAMES.  You will need  to reboot the machine after
  826.                           changing these values.
  827.  
  828.                           3. The proper software for NETBIOS support was not
  829.                           installed on the machine.  For OS/2 machines, you
  830.                           need to install LAPS (Lan Adapter and Protocol
  831.                           Support) provided with NTS/2.  For native DOS and
  832.                           Windows machines, you need LSP (Lan Support Program).
  833.  
  834.                       47. PROBLEM / QUESTION
  835.  
  836.                           What levels of network software is required to
  837.                           connect to SQL/DS?
  838.  
  839.  
  840.                                                            DB2/2 and DDCS/2  13
  841.  
  842.  
  843.                           SOLUTION / ANSWER
  844.  
  845.                           If you are using NCP then option C in the NCP
  846.                           configuration, with VTAM 3.4, is required for DDCS to
  847.                           support independent LUs.
  848.  
  849.                       48. PROBLEM / QUESTION
  850.  
  851.                           Receiving SQL1325N on IMPORT/EXPORT to AS/400.
  852.  
  853.                           SOLUTION / ANSWER
  854.  
  855.                           You cannot use Delimited ASCII, as this is
  856.                           unsupported.  Only PC/IXF is supported.
  857.  
  858.                       49. PROBLEM / QUESTION
  859.  
  860.                           Receiving SQL0961C when trying to access a database
  861.                           table using Crystal Reports.
  862.  
  863.                           SOLUTION / ANSWER
  864.  
  865.                           Increase the values of the SQLSIZE parameter in the
  866.                           DBDRQLIB.CFG file.
  867.  
  868.                       50. PROBLEM / QUESTION
  869.  
  870.                           Receiving an SQL1042 when attempting an SQLLOGN2.
  871.  
  872.                           SOLUTION / ANSWER
  873.  
  874.                           Look for LT00042 and PRO0025 errors in lantran.log.
  875.                           This could mean you are using an unsupported ethernet
  876.                           card.
  877.  
  878.                       51. PROBLEM / QUESTION
  879.  
  880.                           Receiving an SQL1042C when attempting to do an
  881.                           SQLLOGN2 from a WIN/OS2 session of an OS/2 requester.
  882.  
  883.                           SOLUTION / ANSWER
  884.  
  885.                           This can be caused by not loading the LANPDD.OS2 and
  886.                           LANVDD.OS2 device drivers.  Make sure these drivers
  887.                           are specified in your CONFIG.SYS.
  888.  
  889.                       52. PROBLEM / QUESTION
  890.  
  891.                           I am receiving a communication error with sense data
  892.                           of FFFF0003 when I disconnect and reconnect to a
  893.                           remote DB2/2 server?
  894.  
  895.                           SOLUTION / ANSWER
  896.  
  897.  
  898.   14  DB2/2 And DB2/6000 Questions and Answers
  899.  
  900.  
  901.                           Do not select the FREE UNUSED LINK option in the DLC
  902.                           profile for CM/2 configuration, as it will cause the
  903.                           Logical Link to deactivate when a link is not being
  904.                           used anymore.
  905.  
  906.                       53. PROBLEM / QUESTION
  907.  
  908.                           I am receiving a communication error with sense data
  909.                           of 084B6031 while attempting to connect from the
  910.                           DDCS/2 machine to DB2/MVS.
  911.  
  912.                           SOLUTION / ANSWER
  913.  
  914.                           You may be using the Local LU name for the partner LU
  915.                           name in the Workstation Database Directory.  After
  916.                           recataloging the Node Directory, System Database
  917.                           Directory, and DCS directory entries the problem
  918.                           should be resolved.
  919.  
  920.                       54. PROBLEM / QUESTION
  921.  
  922.                           Does DB2/2 Version 1.x support the TCP/IP protocol?
  923.  
  924.                           SOLUTION / ANSWER
  925.  
  926.                           Not as a server; however, you can use the client
  927.                           portion of DB2/2 to connect to a UNIX-based server
  928.                           (DB2/6000, DB2/HP-UX, or DB2/Solaris) using TCP/IP.
  929.  
  930.                       55. PROBLEM / QUESTION
  931.  
  932.                           Communications error using NETBIOS.  Receiving
  933.                           SQL30080N RC=000A or SQL30081N RC=000A.
  934.  
  935.                           SOLUTION / ANSWER
  936.  
  937.                           One possible cause of this is mixed service levels of
  938.                           either DB2/2 or LAPS.  It is recommended that you
  939.                           install the latest service levels of DB2/2 and LAPS,
  940.                           ensure they both complete successfully, and try
  941.                           again.
  942.  
  943.                       56. PROBLEM / QUESTION
  944.  
  945.                           Receiving error:  (MicroSoft) (ODBC.DLL) Drivers
  946.                           SQLALLOCENV failed "#0" (IBM) (CLI DRIVER)
  947.                           SQLSTATE=58004.  when trying to access a DB2/2 server
  948.                           via CAE/DOS using the ODBC driver with a Windows
  949.                           application.
  950.  
  951.                           SOLUTION / ANSWER
  952.  
  953.                           Ensure that the statement "CODEPAGE=437,850" is
  954.                           included in your AUTOEXEC.BAT.
  955.  
  956.  
  957.                                                            DB2/2 and DDCS/2  15
  958.  
  959.  
  960.                       57. PROBLEM / QUESTION
  961.  
  962.                           How do I change the number of connections I can have
  963.                           to DB2/MVS through DDCS/2 ?
  964.  
  965.                           SOLUTION / ANSWER
  966.  
  967.                           a.  In CM/2 change the session limit within the Mode
  968.                               definition.
  969.  
  970.                           b.  The session limit is also defined in the APPLID
  971.                               definition for DB2 subsystem in VTAM.
  972.  
  973.                           c.  Change the MAXDBAT parameter in the DSNZPARM
  974.                               dataset for DB2/MVS.  The way this works is VTAM
  975.                               and CM/2 negotiate how many connections can go
  976.                               through DRDA from a communications standpoint.
  977.                               This will be the minimum of #1 and #2 above.
  978.                               Once this is defined, DB2/MVS will only allow the
  979.                               number of connections as defined in #3 above.
  980.  
  981.  
  982.   UTILITIES
  983.   _________
  984.  
  985.                       1.  PROBLEM / QUESTION
  986.  
  987.                           I'm getting SQL0309N from DB2 (Not null column = Null
  988.                           values) is returned.
  989.  
  990.                           SOLUTION / ANSWER
  991.  
  992.                           You are trying to import a table with a Null column
  993.                           to a DB2/2 table whose corresponding column is NOT
  994.                           NULL or is NOT NULL WITH DEFAULT.  The target column
  995.                           has to be NULLable.
  996.  
  997.                       2.  PROBLEM / QUESTION
  998.  
  999.                           I'm getting SQL1325 when trying to IMPORT with CREATE
  1000.                           option to a host database.
  1001.  
  1002.                           SOLUTION / ANSWER
  1003.  
  1004.                           DDCS/2 only supports IMPORT with the INSERT option.
  1005.                           The table must be created before the IMPORT can be
  1006.                           performed.
  1007.  
  1008.                       3.  PROBLEM / QUESTION
  1009.  
  1010.                           I attempt to start QM and access DB server. I'm
  1011.                           getting QRW0541C RC:11008 and a 'Database bypass
  1012.                           screen' message.
  1013.  
  1014.                           SOLUTION / ANSWER
  1015.  
  1016.  
  1017.   16  DB2/2 And DB2/6000 Questions and Answers
  1018.  
  1019.  
  1020.                           There are two statements missing from the config.sys
  1021.                           file when the client enabler is installed.
  1022.  
  1023.                           Add SET QRWDR=X and SET QRWINST=X:\sqllib, where X is
  1024.                           the drive where QM  is installed.
  1025.  
  1026.                       4.  PROBLEM / QUESTION
  1027.  
  1028.                           Can Query Manager be installed on a DOS/WINDOWS
  1029.                           client?
  1030.  
  1031.                           SOLUTION / ANSWER
  1032.  
  1033.                           No.  Query Manager is a PM-based program, and will
  1034.                           only run in an OS/2 environment. It cannot run on a
  1035.                           DOS machine.
  1036.  
  1037.                       5.  PROBLEM / QUESTION
  1038.  
  1039.                           I'm getting QRW2688W (maximum number of objects
  1040.                           exceeded) when I try to list 1,200 tables under the
  1041.                           same qualifier in Query Manager.
  1042.  
  1043.                           SOLUTION / ANSWER
  1044.  
  1045.                           DBM allows 32,767 tables.  QM can only list 1,085
  1046.                           tables, due to a limitation of the listbox control in
  1047.                           Presentation Manager (PM).  This is a permanent
  1048.                           restriction to Query Manager.
  1049.  
  1050.                       6.  PROBLEM / QUESTION
  1051.  
  1052.                           Using personalized startup parameters for Query
  1053.                           Manager results in /Parameter (/DAT:, /DQUAL:, /PRO:,
  1054.                           etc) invalid characters.
  1055.  
  1056.                           SOLUTION / ANSWER
  1057.  
  1058.                           Enter the parameters in lowercase.  Variables after
  1059.                           the colons may be entered in either upper or
  1060.                           lowercase (/dat:sample or dqual:USERID).
  1061.  
  1062.                       7.  PROBLEM / QUESTION
  1063.  
  1064.                           Is it possible to import previously saved queries,
  1065.                           forms, and procedure definitions?
  1066.  
  1067.                           SOLUTION / ANSWER
  1068.  
  1069.                           Yes.  The table to export is QRWSYS.QRWSYS_OBJECT. Be
  1070.                           sure to export it in IXF format.  You may now import
  1071.                           the IXF file.
  1072.  
  1073.                       8.  PROBLEM / QUESTION
  1074.  
  1075.  
  1076.                                                            DB2/2 and DDCS/2  17
  1077.  
  1078.  
  1079.                           How can I make QM print in landscape mode for wide
  1080.                           reports?
  1081.  
  1082.                           SOLUTION / ANSWER
  1083.  
  1084.                           This depends on the printer.  For an IBM printer, you
  1085.                           can change the page header to be ascii 27 and ascii
  1086.                           108 (alt 027 and alt 108).  This will cause the
  1087.                           printer to switch to landscape mode.
  1088.  
  1089.                       9.  PROBLEM / QUESTION
  1090.  
  1091.                           I couldn't run select * from table where (field =
  1092.                           '&1') from anywhere but a prompted query in QM.
  1093.  
  1094.                           SOLUTION / ANSWER
  1095.  
  1096.                           The &1 tries to find a variable named '1', substitute
  1097.                           a variable name for the '1' and specify that this
  1098.                           variable has the value of '&1'.
  1099.  
  1100.                       10. PROBLEM / QUESTION
  1101.  
  1102.                           How can I update a field of my table with data type
  1103.                           "special data type" with Query Manager?
  1104.  
  1105.                           SOLUTION / ANSWER
  1106.  
  1107.                           This is not supported through QM.  The options are to
  1108.                           create your own application to do this or use an
  1109.                           application with this capability already built in.
  1110.  
  1111.                       11. PROBLEM / QUESTION
  1112.  
  1113.                           Receiving an SQL2023N with an error return code of
  1114.                           6896 while running a BACKUP.
  1115.  
  1116.                           SOLUTION / ANSWER
  1117.  
  1118.                           This could be because you copied the SQLDBDIR file
  1119.                           from a Volume Database Directory
  1120.                           (x:\sqldbdir\sqldbdir) into the System Database
  1121.                           Directory (c:\sqllib\sqldbdir\sqldbdir) in order to
  1122.                           work around another problem.  The "type" field in the
  1123.                           entry for each database in a System Database
  1124.                           Directory must be ASCII '0' (indirect) or ASCII '1'
  1125.                           (remote). The 'type' field in the entry for each
  1126.                           database in a Volume Database Directory must be ASCII
  1127.                           '2' (home). The DB2/2 code was detecting this value
  1128.                           of '2' in the System Database Directory entry for the
  1129.                           database being backed up and consequently ended with
  1130.                           the error message and error code.
  1131.  
  1132.  
  1133.   18  DB2/2 And DB2/6000 Questions and Answers
  1134.  
  1135.  
  1136.                           To confirm if this is your problem, issue the OS/2
  1137.                           'type' command to display the contents of the
  1138.                           sqldbdir file in your System Database Directory. You
  1139.                           should see the database alias, followed by at least
  1140.                           one undisplayable character (depending on the length
  1141.                           of the alias), followed by the database name,
  1142.                           followed by at least one undisplayable character
  1143.                           (depending on the length of the name), followed by a
  1144.                           '0' (zero).  If you see a '2' instead of a '0' use a
  1145.                           binary editor and change the ASCII '2' (hex '22') to
  1146.                           an ASCII zero (hex '20').
  1147.  
  1148.                       12. PROBLEM / QUESTION
  1149.  
  1150.                           Unable to print a table definition from Query
  1151.                           Manager.
  1152.  
  1153.                           SOLUTION / ANSWER
  1154.  
  1155.                           This could mean you have not defined and activated a
  1156.                           profile for your database with the printer nickname
  1157.                           specified.
  1158.  
  1159.                       13. PROBLEM / QUESTION
  1160.  
  1161.                           Receiving SQL0984 while running REORG
  1162.  
  1163.                           SOLUTION / ANSWER
  1164.  
  1165.                           This means you are running out of log space and this
  1166.                           can be fixed by either increasing your log file size,
  1167.                           or the number of log files you have.  Change the
  1168.                           corresponding values in the database configuration
  1169.                           (eg. UPDATE DATABASE CONFIGURATION FOR sample)
  1170.  
  1171.  
  1172.   INSTALL AND MIGRATION
  1173.   _____________________
  1174.  
  1175.                       1.  PROBLEM / QUESTION
  1176.  
  1177.                           a.  I'm getting SQL1042C during STARTDBM after
  1178.                               installing select paks 7010 and 7012.
  1179.  
  1180.                           b.  I'm getting "lock list was not processed" after
  1181.                               installation of DB2/2 or select paks.
  1182.  
  1183.                           c.  My computer hangs when re-booted following
  1184.                               installation.
  1185.  
  1186.                           d.  I'm getting DBI005E during installation of
  1187.                               DDCS/2.
  1188.  
  1189.  
  1190.                                                            DB2/2 and DDCS/2  19
  1191.  
  1192.  
  1193.                           e.  I'm getting SYS2070 after installation of DB2/2,
  1194.                               the computer also has Lan Server 3.0 with the
  1195.                               HPFS386 file system installed.
  1196.  
  1197.                           f.  I'm getting errors during STARTDBM after
  1198.                               installing stacker on my computer.
  1199.  
  1200.                           SOLUTION / ANSWER
  1201.  
  1202.                           The main solution to these installation problems
  1203.                           involves the processing of files that were locked by
  1204.                           OS/2.  A program called IBMLANLK.EXE is used to
  1205.                           replace the files that were locked.  This program is
  1206.                           executed during the startup processing of the
  1207.                           CONFIG.SYS file.  Many problems can occur during the
  1208.                           execution of this program that result in errors with
  1209.                           DB2/2, User Profile Management, or First Failure
  1210.                           Support Tool (FFST/2).
  1211.  
  1212.                           Check for the existence of the file
  1213.                           OS2\INSTALL\IBMLANLK.LST on the drive where OS/2 was
  1214.                           installed.  If this file exists, then the
  1215.                           IBMLANLK.EXE program did not complete successfully
  1216.                           during the startup of the computer and you should
  1217.                           attempt to execute the IBMLANLK program again.  To do
  1218.                           so, add the following two statements to your
  1219.                           CONFIG.SYS and re-boot:
  1220.  
  1221.                           DEVICE=C:\OS2\INSTALL\IBMLANLK.SYS
  1222.                           C:\OS2\INSTALL\IBMLANLK.LST
  1223.                           RUN=C:\OS2\INSTALL\IBMALANLK.EXE
  1224.                           C:\OS2\INSTALL\IBMALNLK.LST
  1225.  
  1226.                           where C: is the drive on which OS2 was installed.
  1227.  
  1228.                           Note: Be sure that all IFS= statements come before
  1229.                           the above statements in the CONFIG.SYS file.
  1230.  
  1231.                           Stacker-type products have been known to cause some
  1232.                           problems during the processing of the IBMLANLK.LST
  1233.                           file.  Move the location of the stacker device
  1234.                           drivers in the CONFIG.SYS and re-boot the computer.
  1235.  
  1236.                       2.  PROBLEM / QUESTION
  1237.  
  1238.                           Do I need to reinstall CM/2 after applying the DB2/2
  1239.                           select pak 7010 if DB2/2 was installed after CM/2
  1240.                           1.0?
  1241.  
  1242.                           SOLUTION / ANSWER
  1243.  
  1244.                           DB2/2 overwrites the UPM with CSD level IP07000,
  1245.                           whereas CM/2 installed UPM at a level of IP07001.
  1246.                           There is no need to reinstall CM/2, as it will work
  1247.  
  1248.  
  1249.   20  DB2/2 And DB2/6000 Questions and Answers
  1250.  
  1251.  
  1252.                           just fine with the version of UPM that DB2/2
  1253.                           installs.
  1254.  
  1255.                       3.  PROBLEM / QUESTION
  1256.  
  1257.                           I'm getting DBI0021E during DBCID installation.
  1258.  
  1259.                           SOLUTION / ANSWER
  1260.  
  1261.                           The 'archive' bit may be 'on' for the subdirectory
  1262.                           specified for the /L parameter to the log file
  1263.                           subdirectory.  This directory is where the CID
  1264.                           Installation code will copy the trace log and history
  1265.                           information resulting from the installation.
  1266.  
  1267.                           Use the 'ATTRIB' command to reset the 'archive' bit.
  1268.  
  1269.                       4.  PROBLEM / QUESTION
  1270.  
  1271.                           When I install DB2/2 on a drive other than the boot
  1272.                           drive, I get DBI0021E and DBI0019E errors.
  1273.  
  1274.                           SOLUTION / ANSWER
  1275.  
  1276.                           DBI0021E occurs during the determination of the
  1277.                           amount of disk space that is available on the
  1278.                           installation drive.  There could be an older version
  1279.                           of DB2/2 installated. Run CHKDSK on the installation
  1280.                           drive to verify the integrity of the disk drive.
  1281.  
  1282.                       5.  PROBLEM / QUESTION
  1283.  
  1284.                           Why do I receive the error 'invalid path or filename
  1285.                           "MUGLIB"'?
  1286.  
  1287.                           SOLUTION / ANSWER
  1288.  
  1289.                           Determine if the path or filename is valid.  There
  1290.                           should be a directory called MUGLIB on the
  1291.                           installation drive.  Also use the ATTRIB command to
  1292.                           check the attributes as they should be set to
  1293.                           directory.
  1294.  
  1295.                       6.  PROBLEM / QUESTION
  1296.  
  1297.                           What should I do if following migration of an ES 1.0
  1298.                           database I encounter the error SQL5046 "SQLENSEG is
  1299.                           too small"?
  1300.  
  1301.                           SOLUTION / ANSWER
  1302.  
  1303.                           If you change database and/or database manager
  1304.                           paraeters (ie. DBHEAP), the SQLENSEG parameter should
  1305.                           also be increased.  This will not only help with the
  1306.  
  1307.  
  1308.                                                            DB2/2 and DDCS/2  21
  1309.  
  1310.  
  1311.                           SQL5046 condition, but will resolve any configuration
  1312.                           incompatiblity problems when migrating databases.
  1313.  
  1314.                       7.  PROBLEM / QUESTION
  1315.  
  1316.                           When migrating DB from ES1.0 to DB2/2, I receive
  1317.                           SQL02519 and SQL05045 error (configuration is not
  1318.                           compatible).
  1319.  
  1320.                           SOLUTION / ANSWER
  1321.  
  1322.                           Run MIGRATE1.EXE from the command prompt after
  1323.                           increasing the DB heapsize.
  1324.  
  1325.                       8.  PROBLEM / QUESTION
  1326.  
  1327.                           I'm getting DBI0050E when installing DDCS/2, although
  1328.                           I have the right the right DB2/2 and DDCS/2 versions
  1329.                           and installed DB2/2 first.
  1330.  
  1331.                           SOLUTION / ANSWER
  1332.  
  1333.                           An incorrect IBMLVL.INI file is in the root directory
  1334.                           of the boot drive.
  1335.  
  1336.                           Replace the IBMLVL.INI with an older IBMLVL.INI. (ie.
  1337.                           IBMLVL.BK)
  1338.  
  1339.                       9.  PROBLEM / QUESTION
  1340.  
  1341.                           What are the memory requirements for DB2/2?
  1342.  
  1343.                           SOLUTION / ANSWER
  1344.  
  1345.                           DB2/2 server: minimum 2.5 meg;
  1346.  
  1347.                           DB2/2 client: minimum 1.7 Meg.
  1348.  
  1349.                           (See p. 40 of DB2/2 Information & Planning Guide for
  1350.                           more details - S62G-3662)
  1351.  
  1352.                       10. PROBLEM / QUESTION
  1353.  
  1354.                           I encountered error message 'DBI0050E The Version of
  1355.                           DATABASE 2 OS/2 Installed will not Support this
  1356.                           version of DDCS/2' while installing DDCS/2 after I
  1357.                           installed DB2/2.
  1358.  
  1359.                           SOLUTION / ANSWER
  1360.  
  1361.                           If you installed the DB2/2 Single User product and
  1362.                           specified 'STANDALONE' support. DDCS/2 cannot be
  1363.                           installed.
  1364.  
  1365.  
  1366.   22  DB2/2 And DB2/6000 Questions and Answers
  1367.  
  1368.  
  1369.                           Reinstall DB2/2 Single User and specify either Client
  1370.                           or Client with Local Database support.
  1371.  
  1372.                       11. PROBLEM / QUESTION
  1373.  
  1374.                           I attempted to do a redirected install, and received
  1375.                           error message 'DBI00016E not enough space to perform
  1376.                           the install request'.
  1377.  
  1378.                           SOLUTION / ANSWER
  1379.  
  1380.                           There is not enough disk space on the boot drive to
  1381.                           copy temporary files.  To use another drive to store
  1382.                           the temporary files, refer to the DB2/2 Installation
  1383.                           Guide p. 6.
  1384.  
  1385.                       12. PROBLEM / QUESTION
  1386.  
  1387.                           I received DBI0052 during the installation of DDCS/2
  1388.                           2.0 on DB2/2 1.0.
  1389.  
  1390.                           SOLUTION / ANSWER
  1391.  
  1392.                           Check the following:
  1393.  
  1394.                           a.  Make sure that CM/2 or ES 1.0 Communications
  1395.                               Manager is installed.
  1396.  
  1397.                           b.  Make sure that the APPC.DLL exists in the
  1398.                               \CMLIB\DLL\ directory.  If it does not, you will
  1399.                               need to reinstall Communications Manager making
  1400.                               sure that the APPC APIs are installed as one of
  1401.                               the options.
  1402.  
  1403.                           c.  Make sure that if you are installing the
  1404.                               Multiuser version of DDCS/2 that you have the
  1405.                               Client/Server version of DB2/2 installed.
  1406.  
  1407.                       13. PROBLEM / QUESTION
  1408.  
  1409.                           I'm getting DBCID error 1604.
  1410.  
  1411.                           SOLUTION / ANSWER
  1412.  
  1413.                           The response file being used by DBCID is
  1414.                           incompatible.
  1415.  
  1416.                           Make sure that when DBCID is run from the directory
  1417.                           containing the server code, the response file has the
  1418.                           keywords DBxxxx. If DBCID is run from the distributed
  1419.                           feature directory, the response file has DCFxxxx
  1420.                           keywords. The DBCID command is different for the
  1421.                           server and for the distributed client feature.
  1422.  
  1423.  
  1424.                                                            DB2/2 and DDCS/2  23
  1425.  
  1426.  
  1427.                           Note: 1604 is a general error so this is just one
  1428.                           possible cause. (refer to DB2/2 Installation guide
  1429.                           pages 27-28 and 33-34.
  1430.  
  1431.                       14. PROBLEM / QUESTION
  1432.  
  1433.                           I'm getting error LSI0006 during reboot after DB2/2
  1434.                           installation
  1435.  
  1436.                           SOLUTION / ANSWER
  1437.  
  1438.                           The IBMLANLK program did not working properly (see
  1439.                           the first Q and A in this section).
  1440.  
  1441.                           Add DEVICE=C:\OS2\INSTALL\IBMLANLK.SYS
  1442.                           C:\OS2\INSTALL\ IBMLANLK.LST
  1443.  
  1444.                           RUN=C:\OS2\INSTALL\IBMLANLK.EXE
  1445.                           C:\OS2\INSTALL\IBMLANLK.LST
  1446.  
  1447.                       15. PROBLEM / QUESTION
  1448.  
  1449.                           How do I update the database manager configuration
  1450.                           from the command line?
  1451.  
  1452.                           SOLUTION / ANSWER
  1453.  
  1454.                           Type "dbm update database manager configuration using
  1455.                           XXXXXXX ".
  1456.  
  1457.                       16. PROBLEM / QUESTION
  1458.  
  1459.                           I'm getting DBI0021E during DBINST remove or install:
  1460.                           "Invalid PATH C:\OS2\INSTALL\IBMLANLK".
  1461.  
  1462.                           SOLUTION / ANSWER
  1463.  
  1464.                           The achive bit for IBMLANLK was probably set, use
  1465.                           ATTRIB -A IBMLANKLK to turn it off.
  1466.  
  1467.                       17. PROBLEM / QUESTION
  1468.  
  1469.                           I'm getting a codepage error during migration of DB
  1470.                           from EE1.3 to DB2/2.
  1471.  
  1472.                           SOLUTION / ANSWER
  1473.  
  1474.                           The codepage is set on OS/2 via the parameter
  1475.                           CODEPAGE.  Reset the codepage on the new machine,
  1476.                           reboot, and try to migrate the DB again.
  1477.  
  1478.                       18. PROBLEM / QUESTION
  1479.  
  1480.  
  1481.   24  DB2/2 And DB2/6000 Questions and Answers
  1482.  
  1483.  
  1484.                           I am trying to run a Windows DB application from a
  1485.                           WIN-OS2 session and connect to a DB2/2 machine.
  1486.  
  1487.                           SOLUTION / ANSWER
  1488.  
  1489.                           To use Windows applications the DB2/2 server version
  1490.                           is required.
  1491.  
  1492.                       19. PROBLEM / QUESTION
  1493.  
  1494.                           The performance of a SELECT is very slow.
  1495.  
  1496.                           SOLUTION / ANSWER
  1497.  
  1498.                           The index may be defined in the wrong logical order
  1499.                           for this select.  Create a new index with the column
  1500.                           being selected as the primary key value.
  1501.  
  1502.                       20. PROBLEM / QUESTION
  1503.  
  1504.                           I'm having problem wih CID install while using the
  1505.                           example in the installation guide which indicated /R=
  1506.                           as a parameter.
  1507.  
  1508.                           SOLUTION / ANSWER
  1509.  
  1510.                           Use the correct syntax of /R:.
  1511.  
  1512.                       21. PROBLEM / QUESTION
  1513.  
  1514.                           I'm trying to create a remote database on the server
  1515.                           from the client machine and the client hangs, and the
  1516.                           db is not created.
  1517.  
  1518.                           SOLUTION / ANSWER
  1519.  
  1520.                           You cannot 'easily' create a database from a client.
  1521.                           Either create it locally on the server or write a
  1522.                           DARI application to create a database that can be
  1523.                           invoked from the client.
  1524.  
  1525.                       22. PROBLEM / QUESTION
  1526.  
  1527.                           Can I install DB2/2 on a file server and allow users
  1528.                           to execute DB2/2 from the file server?
  1529.  
  1530.                           SOLUTION / ANSWER
  1531.  
  1532.                           No, only one connection is allowed for each DB2/2
  1533.                           user.  This will prevent other users from accessing
  1534.                           the DBs.  Also, it will pose integrity issues if they
  1535.                           use the same DB on the LAN.
  1536.  
  1537.                       23. PROBLEM / QUESTION
  1538.  
  1539.  
  1540.                                                            DB2/2 and DDCS/2  25
  1541.  
  1542.  
  1543.                           Why does a DBMBAK directory get created when you
  1544.                           perform a CID install?
  1545.  
  1546.                           SOLUTION / ANSWER
  1547.  
  1548.                           In your CID control file the following line exists,
  1549.                           requesting a backup of the existing version of
  1550.                           database manager:  "DBBackup System=X:\PATH".  If you
  1551.                           do not want to back up your existing version, or do
  1552.                           not have a current version, you do not need this
  1553.                           line.
  1554.  
  1555.                       24. PROBLEM / QUESTION
  1556.  
  1557.                           Unable to use the default USERID and PASSWORD
  1558.                           provided by DB2/2 so that I have a userid set up with
  1559.                           SYSADM authority.
  1560.  
  1561.                           SOLUTION / ANSWER
  1562.  
  1563.                           Copy NET.ACC from DB2/2 installation diskette #1.
  1564.                           This will give you the default userid.
  1565.  
  1566.                           NOTE: You will lose any previously defined userids
  1567.                           for that server.
  1568.  
  1569.                       25. PROBLEM / QUESTION
  1570.  
  1571.                           How do I load DB2/2 DLLs only when needed?
  1572.  
  1573.                           SOLUTION / ANSWER
  1574.  
  1575.                           Use the LOADONCALL Linker option.
  1576.  
  1577.                       26. PROBLEM / QUESTION
  1578.  
  1579.                           I am receiving DBI0019E Unexpected PM error WIN1302W.
  1580.  
  1581.                           SOLUTION / ANSWER
  1582.  
  1583.                           Corrupted IBMLVL.INI file.  Rename the file to
  1584.                           something else attempt another DB2/2 install.
  1585.  
  1586.                       27. PROBLEM / QUESTION
  1587.  
  1588.                           After installing CAE/DOS on a DOS/Windows machine,
  1589.                           there was a problem booting the machine.
  1590.  
  1591.                           SOLUTION / ANSWER
  1592.  
  1593.                           Make sure you are loading LSL.COM using the HIGH /L
  1594.                           option as opposed to simply HIGH.  What happens is
  1595.                           that the two are competing for the same place in
  1596.                           memory.
  1597.  
  1598.  
  1599.   26  DB2/2 And DB2/6000 Questions and Answers
  1600.  
  1601.  
  1602.                       28. PROBLEM / QUESTION
  1603.  
  1604.                           DBI0029E received during install of DB2/2 V1.x.
  1605.  
  1606.                           SOLUTION / ANSWER
  1607.  
  1608.                           One cause of this error is if you copy the install
  1609.                           diskettes to your hard drive for install, but do not
  1610.                           use the XCOPY with the /s option.  There are
  1611.                           subdirectories that also must be copied over.
  1612.  
  1613.  
  1614.   APPLICATION DEVELOPMENT
  1615.   _______________________
  1616.  
  1617.                       1.  PROBLEM / QUESTION
  1618.  
  1619.                           a.  I'm getting SQL0805 with a DB2/2 server and DBM
  1620.                               clients while running the DBM command line
  1621.                               interface.
  1622.  
  1623.                           b.  I'm getting SQL0818N when I access a database
  1624.                               remotely from the DBM Command Line Processor
  1625.                               (CLP) and REXX programs.
  1626.  
  1627.                           SOLUTION / ANSWER
  1628.  
  1629.                           The command line interface is not self-binding, so
  1630.                           the package names can't be be found.
  1631.  
  1632.                           Manually bind the .BND files to the database by doing
  1633.                           the following:
  1634.  
  1635.                           x:\SQLLIB\SQLBIND @SQLUBIND.LST dbname (where x: is
  1636.                           the DB2/2 installed drive).
  1637.  
  1638.                       2.  PROBLEM / QUESTION
  1639.  
  1640.                           a.  My Micro Focus program traps in NETAPI.DLL at the
  1641.                               STOP RUN statement.
  1642.  
  1643.                           b.  The UPPDATE.SQC sample program in DB2/2
  1644.                               Programming Guide traps in DOSCALL1.DLL
  1645.  
  1646.                           c.  I'm getting a TRAP E in SQLT.DLL with DB2/2.
  1647.  
  1648.                           SOLUTION / ANSWER
  1649.  
  1650.                           The correct LINK options for the supported languages
  1651.                           are as follows:
  1652.  
  1653.                           1> CSET/2 link386 /NOI /ST:32000  "objfile",,,sql_dyn
  1654.  
  1655.                           2> MS 6.0 link386 /ST:32000 "objfile",,,sqldyn16.lib
  1656.  
  1657.  
  1658.                                                            DB2/2 and DDCS/2  27
  1659.  
  1660.  
  1661.                           (For the correct syntax see p. 28 of DB2/2
  1662.                           Programming Guide S62G-3665)
  1663.  
  1664.                           Note: All known stack-related problems have been
  1665.                           resolved in the DB2/2 Select pak 7010.
  1666.  
  1667.                       3.  PROBLEM / QUESTION
  1668.  
  1669.                           I'm trying to compile the sample program on p. 30-31
  1670.                           of the DB2/2 Query Manager Programming Guide and
  1671.                           Reference, and I'm getting an error on the DSQCIC
  1672.                           function call.
  1673.  
  1674.                           SOLUTION / ANSWER
  1675.  
  1676.                           The 'include' file dsqcommc.h has the option CEDCL in
  1677.                           the function definition for DSQCIC(), and this option
  1678.                           is not recognized by your 'C' compiler.
  1679.  
  1680.                       4.  PROBLEM / QUESTION
  1681.  
  1682.                           How do I select into SQLDA then insert data from the
  1683.                           SQLDA into another table?
  1684.  
  1685.                           SOLUTION / ANSWER
  1686.  
  1687.                           Be sure that the number of VALUES you are inserting
  1688.                           into the table matches the actual number of columns.
  1689.                           For example, "INSERT INTO USERID.TABLENAME VALUES(?,
  1690.                           ?, ?)".  The number of wildcard symbols should be
  1691.                           equal to the SQLDA (number of columns).
  1692.  
  1693.                       5.  PROBLEM / QUESTION
  1694.  
  1695.                           My application was working on ES1.0.  When I moved to
  1696.                           DB2/2 it TRAPS in SQLR.DLL and my program uses
  1697.                           multiple threads.
  1698.  
  1699.                           SOLUTION / ANSWER
  1700.  
  1701.                           This is caused by not allocating a large enough stack
  1702.                           for the spawned thread.
  1703.  
  1704.                           Increase the stack to 32k for the DOSCREATETHREAD
  1705.                           OS/2 API call.
  1706.  
  1707.                       6.  PROBLEM / QUESTION
  1708.  
  1709.                           The precompiler generates the following COBOL code:
  1710.                           88 SQL_CONNECT_STMT VALUE1 WHEN SET TO FALSE IS ZERO.
  1711.  
  1712.                           SOLUTION / ANSWER
  1713.  
  1714.  
  1715.   28  DB2/2 And DB2/6000 Questions and Answers
  1716.  
  1717.  
  1718.                           You must have MicroFocus V3.0 or higher.  Using V3.0
  1719.                           this statement is fine but, if you use an earlier
  1720.                           version it will not work.
  1721.  
  1722.                       7.  PROBLEM / QUESTION
  1723.  
  1724.                           My cobol sample program from the DB2/2 programming
  1725.                           guide UPDATE.SQB traps.  I'm using MicroFocus COBOL
  1726.                           v3.1 compiler.
  1727.  
  1728.                           SOLUTION / ANSWER
  1729.  
  1730.                           COBLIB is not being linked.
  1731.  
  1732.                           Check the link options as follows:
  1733.  
  1734.                           link /ST:64000 /PM:VIO
  1735.                           update.obj,,,sqldyn16+coblib+doscalls
  1736.  
  1737.                           Note: coblib must be linked before doscalls or there
  1738.                           will be a trap.
  1739.  
  1740.                       8.  PROBLEM / QUESTION
  1741.  
  1742.                           I'm getting error SYS2070 "System Cannot Demand Load
  1743.                           SQLAK32.SQLAALOC" when running a program I compiled
  1744.                           and linked with DB2/2.  My application was originally
  1745.                           written using ES 1.0 Database Manager.
  1746.  
  1747.                           SOLUTION / ANSWER
  1748.  
  1749.                           The NOI (No Ignore Case) option is required and MUST
  1750.                           be specified when linking a C SET/2 2 32-bit
  1751.                           application. (see p. 28 of the DB2/2 Programming
  1752.                           Guide).
  1753.  
  1754.                           Specify the required link options for C SET/2 32-bit
  1755.                           applications. NOI is one required option. You must
  1756.                           also link with the DB2/2 32-bit library, SQL_DYN.LIB.
  1757.  
  1758.                       9.  PROBLEM / QUESTION
  1759.  
  1760.                           Are there application development tools shipped with
  1761.                           DB2/2?
  1762.  
  1763.                           SOLUTION / ANSWER
  1764.  
  1765.                           Yes, all of the required prototypes and libraries are
  1766.                           included with DB2/2 Single User and DB2/2 Client
  1767.                           Server.
  1768.  
  1769.                       10. PROBLEM / QUESTION
  1770.  
  1771.  
  1772.                                                            DB2/2 and DDCS/2  29
  1773.  
  1774.  
  1775.                           I'm getting sys3175 in SQLAPI.DLL with CS:EIP=
  1776.                           005B:11E3331BDE.
  1777.  
  1778.                           SOLUTION / ANSWER
  1779.  
  1780.                           You may have linked the application with the 16 bit
  1781.                           library, SQLDYN16.LIB.
  1782.  
  1783.                           For 32-bit applications the SQLDYN.LIB library must
  1784.                           be used during the link stage of application
  1785.                           development.
  1786.  
  1787.                       11. PROBLEM / QUESTION
  1788.  
  1789.                           My Smalltalk 2.0 application traps in doscall1
  1790.                           (sys3171).
  1791.  
  1792.                           SOLUTION / ANSWER
  1793.  
  1794.                           Smalltalk 2.0 is an 16-bit application which uses the
  1795.                           API REXXAPI.DLL (SQLVAR in particular) which is not
  1796.                           converted by DB2/2 to 32 bit.
  1797.  
  1798.                           This is a permanent restriction for 16-bit
  1799.                           applications which use the REXXAPI.DLL.
  1800.  
  1801.                       12. PROBLEM / QUESTION
  1802.  
  1803.                           What host languages does DB2/2 support, and what
  1804.                           version of COBOL do I need?
  1805.  
  1806.                           SOLUTION / ANSWER
  1807.  
  1808.                           16-bit: Microsoft C v6.0, WATCOM FORTRAN v9.01 level
  1809.                           D, MicroFocus COBOL V3.0.
  1810.  
  1811.                           32-bit: IBM C Set/2 v1.0, WATCOM F77/386 v9.01 level
  1812.                           D, and REXX.
  1813.  
  1814.                       13. PROBLEM / QUESTION
  1815.  
  1816.                           Why do I get SQL0752 when I connect to a database?  I
  1817.                           use to get SQL1098.
  1818.  
  1819.                           SOLUTION / ANSWER
  1820.  
  1821.                           DB connections now allow a connect if you are already
  1822.                           connected, provided that the application is not in
  1823.                           the middle of a unit of work.
  1824.  
  1825.                           The application program should be changed because it
  1826.                           should not be doing a connect while there is an open
  1827.                           unit of work. A commit followed by a connect should
  1828.                           be done.
  1829.  
  1830.  
  1831.   30  DB2/2 And DB2/6000 Questions and Answers
  1832.  
  1833.  
  1834.                       14. PROBLEM / QUESTION
  1835.  
  1836.                           I want to print the number of rows being effected by
  1837.                           an update by printing the SQLCA.SQLERRD[3] field.
  1838.  
  1839.                           SOLUTION / ANSWER
  1840.  
  1841.                           In C, arrays are indexed from 0 so the array should
  1842.                           be specified as SQLCA.SQLERRD[2].
  1843.  
  1844.                       15. PROBLEM / QUESTION
  1845.  
  1846.                           My COBOL application works if I use the Animator but,
  1847.                           it cannot find any SQL functions when I don't use the
  1848.                           Animator.
  1849.  
  1850.                           SOLUTION / ANSWER
  1851.  
  1852.                           You may not be specifying the SQLDYN16.LIB when
  1853.                           linking the application.
  1854.  
  1855.                           link /ST:64000 /PM:VIO app1.obj,,,sqldyn16;
  1856.  
  1857.                       16. PROBLEM / QUESTION
  1858.  
  1859.                           How do I bind applications at runtime?
  1860.  
  1861.                           SOLUTION / ANSWER
  1862.  
  1863.                           The best way is to have a DBADM or SYSADM bind all of
  1864.                           the
  1865.                            .BND files to the databases after you install any
  1866.                           new application.
  1867.  
  1868.                           The other method is to have the application bind
  1869.                           using the API SQLABNDR, this will bind the BND files
  1870.                           to the database at runtime.  (see p. 5 of the DB2/2
  1871.                           Programming Reference S62G-3666)
  1872.  
  1873.                       17. PROBLEM / QUESTION
  1874.  
  1875.                           I can't compile my ES 1.0 application in DB2/2 using
  1876.                           Microsoft C 6.0.
  1877.  
  1878.                           SOLUTION / ANSWER
  1879.  
  1880.                           Be sure that you have set environment variables as
  1881.                           described on p. 15 of DB2/2 Programming Guide. (see
  1882.                           p. 17 for compile options)
  1883.  
  1884.                       18. PROBLEM / QUESTION
  1885.  
  1886.                           I'm getting SQL30080 error with APPC code
  1887.                           F015-00000000.
  1888.  
  1889.  
  1890.                                                            DB2/2 and DDCS/2  31
  1891.  
  1892.  
  1893.                           SOLUTION / ANSWER
  1894.  
  1895.                           Increase your stack size and relink your application.
  1896.  
  1897.                       19. PROBLEM / QUESTION
  1898.  
  1899.                           I had authorization problems when using QM APIs.
  1900.                           USERID could access everything, but no one else
  1901.                           could.
  1902.  
  1903.                           SOLUTION / ANSWER
  1904.  
  1905.                           The tables were qualified by USERID and thus only
  1906.                           USERID could access them.
  1907.  
  1908.                       20. PROBLEM / QUESTION
  1909.  
  1910.                           I can't get the DBM command line interface to work
  1911.                           from an OS/2 CMD file.  I'm using the "\" character
  1912.                           to allow multiple lines in the CMD file.
  1913.  
  1914.                           SOLUTION / ANSWER
  1915.  
  1916.                           Make the file into a REXX command file (/* */ in
  1917.                           first line) and use the "," character as the
  1918.                           continuation character.
  1919.  
  1920.                       21. PROBLEM / QUESTION
  1921.  
  1922.                           Why am I getting a SQLCODE of 0 when I should be
  1923.                           getting SQL0100?
  1924.  
  1925.                           SOLUTION / ANSWER
  1926.  
  1927.                           You are getting the 0 because you are closing the
  1928.                           cursor before checking for SQLCODE therefore the
  1929.                           SQLCODE is from the CLOSE CURSOR operation not the
  1930.                           FETCH.
  1931.  
  1932.                       22. PROBLEM / QUESTION
  1933.  
  1934.                           My QM callable interface application will not work.
  1935.                           I cannot pass global variable with the date.
  1936.  
  1937.                           SOLUTION / ANSWER
  1938.  
  1939.                           In the query, you must enclose the &GLOBALVAR with
  1940.                           single quotes if the variable is a date or a string.
  1941.                           If it is a number, then it is will work without the
  1942.                           quotes.
  1943.  
  1944.                       23. PROBLEM / QUESTION
  1945.  
  1946.  
  1947.   32  DB2/2 And DB2/6000 Questions and Answers
  1948.  
  1949.  
  1950.                           My PM application causes the machine to hang while I
  1951.                           connect to a DB2/2 database.
  1952.  
  1953.                           SOLUTION / ANSWER
  1954.  
  1955.                           The connect statement is preceded by a PM windows
  1956.                           creation api.  This hides the logon panel, but in
  1957.                           this case the whole machine hangs. Try moving the
  1958.                           connect statement to the begining of the program.
  1959.  
  1960.                       24. PROBLEM / QUESTION
  1961.  
  1962.                           I can't get multiple DBM calls from to work from a
  1963.                           .CMD file.
  1964.  
  1965.                           SOLUTION / ANSWER
  1966.  
  1967.                           Prefix each DBM call with 'call DBM ....'.
  1968.  
  1969.                       25. PROBLEM / QUESTION
  1970.  
  1971.                           I'm having trouble linking with SQL_DYN.LIB.  Do I
  1972.                           need to use the SQL_STAT.LIB libraru?
  1973.  
  1974.                           SOLUTION / ANSWER
  1975.  
  1976.                           You should be linking to SQLDYN16.LIB.  The
  1977.                           SQL_STAT.LIB is no longer used with DB2/2.  It was
  1978.                           used in previous releases.
  1979.  
  1980.                       26. PROBLEM / QUESTION
  1981.  
  1982.                           How do I use data from an SQL query in a REXX
  1983.                           program?
  1984.  
  1985.                           SOLUTION / ANSWER
  1986.  
  1987.                           Try running the SQL query from the REXX program and
  1988.                           then opening a cursor, fetching the data into a host
  1989.                           variable until the fetch results in EOF (-100). (see
  1990.                           DB2/2 Programming Guide)
  1991.  
  1992.                       27. PROBLEM / QUESTION
  1993.  
  1994.                           I created a database and was getting an SQL0805N
  1995.                           while trying to access the data.
  1996.  
  1997.                           SOLUTION / ANSWER
  1998.  
  1999.                           Recreate the database and use QM to connect, the QRW
  2000.                           plans will be bound to the database.
  2001.  
  2002.                       28. PROBLEM / QUESTION
  2003.  
  2004.  
  2005.                                                            DB2/2 and DDCS/2  33
  2006.  
  2007.  
  2008.                           Are stored procedures static or dynamic, and where
  2009.                           can I find out the package names of stored
  2010.                           procedures?
  2011.  
  2012.                           SOLUTION / ANSWER
  2013.  
  2014.                           They can be static or dynamic based on how the server
  2015.                           DLL was created.  If the SQL is dynamic there will be
  2016.                           no package. If a .SQC file was used, and a .BND file
  2017.                           bound to the database, the plans will be found in
  2018.                           SYSIBM.SYSPLANS.
  2019.  
  2020.                       29. PROBLEM / QUESTION
  2021.  
  2022.                           Why does DB2/2 require so much extra log space when a
  2023.                           large unit of work is being performed?
  2024.  
  2025.                           SOLUTION / ANSWER
  2026.  
  2027.                           Reserved space is allocated for a potential ROLLBACK
  2028.                           of a unit of work.  This reserved space is logical
  2029.                           space that is not used until the ROLLBACK operation
  2030.                           would occur.  Therefore a SQL0964 error (Log full)
  2031.                           will occur unless the required space is available.
  2032.  
  2033.                       30. PROBLEM / QUESTION
  2034.  
  2035.                           Why do I have SQL0501 errors occuring?
  2036.  
  2037.                           SOLUTION / ANSWER
  2038.  
  2039.                           The SQL0501 is being caused by attempting to use a
  2040.                           cursor after closing, or closing a cursor after a
  2041.                           commit.
  2042.  
  2043.                       31. PROBLEM / QUESTION
  2044.  
  2045.                           How can a DDCS/2 application refer to a table on
  2046.                           DB2/MVS without having to qualify the table?
  2047.  
  2048.                           SOLUTION / ANSWER
  2049.  
  2050.                           You need to create an TSO id then prep, bind, and
  2051.                           create the table with this ID.  Then you must grant
  2052.                           access to public.
  2053.  
  2054.                       32. PROBLEM / QUESTION
  2055.  
  2056.                           How do I do a backup from a remote machine?
  2057.  
  2058.                           SOLUTION / ANSWER
  2059.  
  2060.                           Refer to the DARI information in the DB2/2
  2061.                           Programming Guide and Reference.
  2062.  
  2063.  
  2064.   34  DB2/2 And DB2/6000 Questions and Answers
  2065.  
  2066.  
  2067.                       33. PROBLEM / QUESTION
  2068.  
  2069.                           How many table/view references are supported in a
  2070.                           single SQL statement?
  2071.  
  2072.                           SOLUTION / ANSWER
  2073.  
  2074.                           The total number of tables and views that can be
  2075.                           referenced in a single SQL statement is 15.
  2076.  
  2077.                       34. PROBLEM / QUESTION
  2078.  
  2079.                           Does DB2/2 support the Pascal language?
  2080.  
  2081.                           SOLUTION / ANSWER
  2082.  
  2083.                           We do not support the Pascal programming language.
  2084.  
  2085.                       35. PROBLEM / QUESTION
  2086.  
  2087.                           How can I access another users tables without having
  2088.                           to specify the table qualifier every time?
  2089.  
  2090.                           SOLUTION / ANSWER
  2091.  
  2092.                           Create a view with full authority on the table you
  2093.                           wish to access.
  2094.  
  2095.                       36. PROBLEM / QUESTION
  2096.  
  2097.                           Can users update long varchar data via REXX, CLP,
  2098.                           etc?
  2099.  
  2100.                           SOLUTION / ANSWER
  2101.  
  2102.                           No, long varchar data can only be updated to the
  2103.                           database via a C program.
  2104.  
  2105.                       37. PROBLEM / QUESTION
  2106.  
  2107.                           I am receiving the following compile error using a 16
  2108.                           bit compiler:
  2109.                            "_SYSTEM" is missing.
  2110.  
  2111.                           SOLUTION / ANSWER
  2112.  
  2113.                           Use the complile option -DSQL16to32 as documented in
  2114.                           the Programming Guide.
  2115.  
  2116.                       38. PROBLEM / QUESTION
  2117.  
  2118.                           Can you concatenate two string columns together as
  2119.                           part of a SELECT statement and return only one
  2120.                           column?
  2121.  
  2122.  
  2123.                                                            DB2/2 and DDCS/2  35
  2124.  
  2125.  
  2126.                           SOLUTION / ANSWER
  2127.  
  2128.                           No.  This can be done in DB2/MVS but not in DB2/2.
  2129.  
  2130.                       39. PROBLEM / QUESTION
  2131.  
  2132.                           How can you see who is holding locks on db tables?
  2133.  
  2134.                           SOLUTION / ANSWER
  2135.  
  2136.                           Use the utility SQLPLOCK.  This utility is on
  2137.                           Compuserve in the IBMDB2 forum.  If using DB2/6000
  2138.                           V1.0 the database monitor functions may also be used
  2139.                           to gather locking information.
  2140.  
  2141.                       40. PROBLEM / QUESTION
  2142.  
  2143.                           Why does the DB2 precompiler reject host variables of
  2144.                           length greater than 254 when using FORTRAN?
  2145.  
  2146.                           SOLUTION / ANSWER
  2147.  
  2148.                           This is due to the inability of FORTRAN to handle
  2149.                           structure type variables and variable length
  2150.                           variables.  Workarounds include:
  2151.  
  2152.                           a.  Use C or COBOL
  2153.  
  2154.                           b.  Use the SQLDA structure in FORTRAN.
  2155.  
  2156.                           c.  PROBLEM / QUESTION
  2157.  
  2158.                           How do you turn on the USEREXIT parameter in the
  2159.                           database configuration from the command line
  2160.                           interface?
  2161.  
  2162.                           SOLUTION / ANSWER
  2163.  
  2164.                           Perform the following CLP command:  DBM UPDATE
  2165.                           DATABASE CONFIGURATION FOR <dbname> USING USEREXIT ON
  2166.  
  2167.  
  2168.   COEXISTENCE
  2169.   ___________
  2170.  
  2171.                       1.  PROBLEM / QUESTION
  2172.  
  2173.                           I'm getting SQL0804N when to try to connect to a
  2174.                           DB2/2 DB.  The table was imported from a Lotus
  2175.                           Datalens spreadsheet.
  2176.  
  2177.                           SOLUTION / ANSWER
  2178.  
  2179.                           There is a fix from Lotus for this problem.
  2180.  
  2181.  
  2182.   36  DB2/2 And DB2/6000 Questions and Answers
  2183.  
  2184.  
  2185.                           The fix is now available from Lotus and can be
  2186.                           obtained from your closest Lotus Bulletin Board
  2187.                           System or contact Lotus Technical support.
  2188.  
  2189.                           The package name is DLENSDRV.ZIP under '123 for OS2'.
  2190.                           The files must be unzipped into a temporary directory
  2191.                           then use INSTALL.EXE to complete the installation of
  2192.                           the fix.
  2193.  
  2194.                       2.  PROBLEM / QUESTION
  2195.  
  2196.                           I'm having problems installing ES 1.0 on OS/2 2.1.
  2197.  
  2198.                           SOLUTION / ANSWER
  2199.  
  2200.                           There is a workaround for this problem.  You must do
  2201.                           the following:
  2202.  
  2203.                           There's file ESSTART.BAK that comes with OS/2 2.1.
  2204.                           Rename the ESSTART.BAK on the first diskette of OS/2
  2205.                           2.1 to ESSTART.CMD and copy it to the OS2/INSTALL
  2206.                           directory.  Also copy the ESSTART.CMD file to the ES
  2207.                           1.0 installation diskette.
  2208.  
  2209.                       3.  PROBLEM / QUESTION
  2210.  
  2211.                           I want to know how to use Netware Requester and DB2/2
  2212.                           1. 0.  What protocol can I use to setup the client
  2213.                           and server?
  2214.  
  2215.                           SOLUTION / ANSWER
  2216.  
  2217.                           For DB2/2 1.0 use, APPC or NETBIOS protocol.  You
  2218.                           cannot use the IBM Netware Requester Protocol Driver.
  2219.                           LAPS supports Netware Requester for OS/2 coexistence
  2220.                           by using the IBM Netware Requester Support Protocol
  2221.                           Driver (refer to the co-existence guide S96F-8311).
  2222.  
  2223.                       4.  PROBLEM / QUESTION
  2224.  
  2225.                           Can DB2/2 1.0 use Novell Netware Communications
  2226.                           Protocols?
  2227.  
  2228.                           SOLUTION / ANSWER
  2229.  
  2230.                           No, but NETBIOS can coexist on the same card with
  2231.                           Netware.
  2232.  
  2233.                           You can use the APPC supplied with CM/2.  NETBIOS
  2234.                           comes as part of LAPS with NTS/2, as LAPS (NETBIOS
  2235.                           support) is no longer part of Communications Manager.
  2236.  
  2237.                       5.  PROBLEM / QUESTION
  2238.  
  2239.  
  2240.                                                            DB2/2 and DDCS/2  37
  2241.  
  2242.  
  2243.                           Can I set up a DB2/2 1.0 server and client on a
  2244.                           Novell LAN?
  2245.  
  2246.                           SOLUTION / ANSWER
  2247.  
  2248.                           Yes.  You will need the LAPS (Lan Adapter Protocol
  2249.                           Support) portion of NTS/2 (Network Transport
  2250.                           Services/2) from IBM installed on both the Server and
  2251.                           Client.  This is required for NETBIOS support.
  2252.  
  2253.                       6.  PROBLEM / QUESTION
  2254.  
  2255.                           I'm unable to logon to the LAN after DB2/2 1.0
  2256.                           installation.
  2257.  
  2258.                           SOLUTION / ANSWER
  2259.  
  2260.                           DB2/2 1.0 updates UPM from version 2.0 to version 3.0
  2261.                           during installation.
  2262.  
  2263.                           Reinstall the Lan Requester/Server 2.0 on the system
  2264.                           or install Lan Requester/Server version 3.0 on the
  2265.                           machine after DB2/2 1.0 has been installed. So as to
  2266.                           have consistent versions of UPM and the LAN.
  2267.  
  2268.  
  2269.   MISCELLANEOUS TOPICS
  2270.   ____________________
  2271.  
  2272.                       1.  PROBLEM / QUESTION
  2273.  
  2274.                           Why am I getting SQL0101 error?
  2275.  
  2276.                           SOLUTION / ANSWER
  2277.  
  2278.                           This is caused by insufficient statement heap size in
  2279.                           the database configuration.
  2280.  
  2281.                           Increase the statement heap size from 64 to 255
  2282.                           (max).  The default is 64 in DB2/2 (for server) as it
  2283.                           was in ES 1.0. A query that runs in ES 1.0 may not
  2284.                           work in DB2/2 even if the statement heap size is the
  2285.                           same as DB2/2 has more memory requirements.
  2286.  
  2287.                           The SQL0101 may also be caused by referential
  2288.                           integrity limitations when processing UPDATEs.
  2289.  
  2290.                       2.  PROBLEM / QUESTION
  2291.  
  2292.                           I'm getting SQL5046 - sqlenseg is too small.
  2293.  
  2294.                           SOLUTION / ANSWER
  2295.  
  2296.                           Increase SQLENSEG to the max 8192.
  2297.  
  2298.  
  2299.   38  DB2/2 And DB2/6000 Questions and Answers
  2300.  
  2301.  
  2302.                           The SQLENSEG parameter does not commit the memory
  2303.                           unless it is required, therefore setting it at the
  2304.                           maximum should not result in memory problems.  If
  2305.                           other DBM parameters change, you may receive an
  2306.                           incompatibility error, so this solution applies in
  2307.                           this case as well.
  2308.  
  2309.                       3.  PROBLEM / QUESTION
  2310.  
  2311.                           What is the default userid and password?
  2312.  
  2313.                           SOLUTION / ANSWER
  2314.  
  2315.                           The default userid is "USERID" and the default
  2316.                           password is "PASSWORD" for UPM SYSADM authority.
  2317.  
  2318.                       4.  PROBLEM / QUESTION
  2319.  
  2320.                           The OPEN database option is not highlighted, which
  2321.                           prevents you from creating a new database on my
  2322.                           machine.  This is in Query Manager, when you select
  2323.                           NEW, which is the top line of the database list, and
  2324.                           go to ACTION items.
  2325.  
  2326.                           SOLUTION / ANSWER
  2327.  
  2328.                           This will happen if you installed the DB2/2 Single
  2329.                           User product and selected client only (with no local
  2330.                           database support).
  2331.  
  2332.                           Type DBINST, select REINSTALL, and specify Client
  2333.                           With Local Database support. Load the diskettes as
  2334.                           requested, and reboot when the reinstallation
  2335.                           procedure is completed.
  2336.  
  2337.                       5.  PROBLEM / QUESTION
  2338.  
  2339.                           How do I get the DB2/2 and DDCS/2 Select Paks and
  2340.                           Service Paks from Compuserve?
  2341.  
  2342.                           SOLUTION / ANSWER
  2343.  
  2344.                           On Compuserve do the following:
  2345.  
  2346.                           a.  Go to IBMDB2
  2347.  
  2348.                           b.  Choose option #4 Forum OS2DF2
  2349.  
  2350.                           c.  Go into libraries section (4)
  2351.  
  2352.                           d.  Search for the latest service pak, by name.
  2353.  
  2354.                       6.  PROBLEM / QUESTION
  2355.  
  2356.  
  2357.                                                            DB2/2 and DDCS/2  39
  2358.  
  2359.  
  2360.                           When do negative return codes appear and how are
  2361.                           errors handled?
  2362.  
  2363.                           SOLUTION / ANSWER
  2364.  
  2365.                           Negative SQL codes will be returned if any SQL
  2366.                           function call fails.  This return code will be
  2367.                           assigned to the SQLCA.SQLCODE structure.  It is the
  2368.                           application's responsibility to capture the error
  2369.                           information.
  2370.  
  2371.                       7.  PROBLEM / QUESTION
  2372.  
  2373.                           How can I specify the ISO DATE format YYYY-MM-DD when
  2374.                           the default DATE format used with COUNTRY USA is
  2375.                           MMDDYY?
  2376.  
  2377.                           SOLUTION / ANSWER
  2378.  
  2379.                           DB2/2 determines the DATE format to be used based on
  2380.                           the Country Code in CONFIG.SYS.  DB2/2 Installation
  2381.                           does not allow the user to specify the DATE format to
  2382.                           be used.
  2383.  
  2384.                           The DATE is always stored the same way within the
  2385.                           actual database. However, each application can
  2386.                           specify the format of DATE data passed to it by using
  2387.                           the /F=format option with either the SQLPREP or
  2388.                           SQLBIND commands. The default format (if no /F option
  2389.                           is specified) is based on the COUNTRY code.  However,
  2390.                           this presents a problem if the customer is using the
  2391.                           interactive debug mode supported by Micro Focus COBOL
  2392.                           to interactively debug a program. In this case,
  2393.                           MicroFocus does an SQLPREP and SQLBIND "under the
  2394.                           covers" in order to connect to the database for
  2395.                           interactive debugging. In this case, the user does
  2396.                           not issue the SQLPREP or SQLBIND commands and so
  2397.                           cannot specify the DATE format to be used using the
  2398.                           /F=format option.
  2399.  
  2400.                           However, there is a MicroFocus add-on product which
  2401.                           the customer can purchase called Host Compatibility
  2402.                           Option (HCO). This makes DB2/2 as compatible as
  2403.                           possible with the host DB2 product. (The host DB2
  2404.                           product allows the user to specify the format of the
  2405.                           DATE required).
  2406.  
  2407.                           One of the options supported by HCO permits the user
  2408.                           to specify the DATE format required by the MicroFocus
  2409.                           COBOL program that is being tested. This in turn
  2410.                           makes it easier for a customer to develop and debug
  2411.                           applications within an OS/2 DB2/2 environment that
  2412.                           will be run in a production environment on a host
  2413.                           DB2/2 environment.
  2414.  
  2415.  
  2416.   40  DB2/2 And DB2/6000 Questions and Answers
  2417.  
  2418.  
  2419.                       8.  PROBLEM / QUESTION
  2420.  
  2421.                           How do I click on the OK button if I'm installing
  2422.                           DB2/2 without a mouse?
  2423.  
  2424.                           SOLUTION / ANSWER
  2425.  
  2426.                           Press Alt-Up Arrow to get to the notebook tabs, then
  2427.                           use the tab key to select OK and press Enter.
  2428.  
  2429.                       9.  PROBLEM / QUESTION
  2430.  
  2431.                           I'm getting SYS1041 when I attempt to build the
  2432.                           sample database using the SQLSAMPL program.
  2433.  
  2434.                           SOLUTION / ANSWER
  2435.  
  2436.                           You may have installed DB2/2 as a client only with no
  2437.                           database support.  This means that no databases may
  2438.                           reside on this machine.
  2439.  
  2440.                           Type DBINST, select REINSTALL, and specify Client
  2441.                           With Local Database support. Load the diskettes as
  2442.                           requested, and reboot when the reinstallation
  2443.                           procedure is completed.
  2444.  
  2445.                       10. PROBLEM / QUESTION
  2446.  
  2447.                           Which packages of DB2/2 can store databases on a
  2448.                           machine?
  2449.  
  2450.                           SOLUTION / ANSWER
  2451.  
  2452.                           Both DB2/2 multi-user and single-user versions can
  2453.                           create databases.  For the single-user version,
  2454.                           configure it as a client with local databases.  For
  2455.                           the multi-user version, configure it as a server.
  2456.  
  2457.                       11. PROBLEM / QUESTION
  2458.  
  2459.                           Does DB2/2 allow the use of extended SBCS characters
  2460.                           in the userids to access local DB2/2 databases or
  2461.                           host databases through DDCS/2?
  2462.  
  2463.                           SOLUTION / ANSWER
  2464.  
  2465.                           No. This restriction is documented in "Appendix B:
  2466.                           DB2/2 Naming Rules" on p.209 of Database 2 OS/2 Guide
  2467.                           (S62G-3663).
  2468.  
  2469.                       12. PROBLEM / QUESTION
  2470.  
  2471.                           How do I create a SYSADM user from UPM?
  2472.  
  2473.  
  2474.                                                            DB2/2 and DDCS/2  41
  2475.  
  2476.  
  2477.                           SOLUTION / ANSWER
  2478.  
  2479.                           Any ADMINISTRATOR or LOCAL ADMINISTRATOR created
  2480.                           through UPM by default becomes a SYSADM to DB2/2.
  2481.  
  2482.                       13. PROBLEM / QUESTION
  2483.  
  2484.                           How do I get a report set up with headers at the
  2485.                           break points?
  2486.  
  2487.                           SOLUTION / ANSWER
  2488.  
  2489.                           Set breaks with headers in the REPORT details within
  2490.                           QM.
  2491.  
  2492.                       14. PROBLEM / QUESTION
  2493.  
  2494.                           Is there a utility for recreating the DB2/2 icons?
  2495.  
  2496.                           SOLUTION / ANSWER
  2497.  
  2498.                           No. There is a fax that explains how to set it up
  2499.                           again if they need to be recreated.
  2500.  
  2501.                       15. PROBLEM / QUESTION
  2502.  
  2503.                           How do I use the forcein parameter for filetmod on
  2504.                           import?
  2505.  
  2506.                           SOLUTION / ANSWER
  2507.  
  2508.                           If you are using SQLDBS do the import then filetmod
  2509.                           must be a host variable.  Filetmod does not need to
  2510.                           be a host variable if you are using the DBM command
  2511.                           line processor.
  2512.  
  2513.                       16. PROBLEM / QUESTION
  2514.  
  2515.                           I'm getting SQL01042C during STARTDBM.
  2516.  
  2517.                           SOLUTION / ANSWER
  2518.  
  2519.                           The error may be caused by a corruptted NET.ACC file.
  2520.                           This file is accessed during STARTDBM.  To resolve
  2521.                           this you can copy the NET.ACC file from diskette #1
  2522.                           of the DB2/2 installation diskettes.  Following this,
  2523.                           you need to catalog the database before the database
  2524.                           can be accessed.
  2525.  
  2526.                           Note: You will lose the userids that you have created
  2527.                           on this machine as the NET.ACC file contains this
  2528.                           data.
  2529.  
  2530.                       17. PROBLEM / QUESTION
  2531.  
  2532.  
  2533.   42  DB2/2 And DB2/6000 Questions and Answers
  2534.  
  2535.  
  2536.                           I'm getting 'log full' errors (SQL3186) when I issue
  2537.                           a large number of transactions.
  2538.  
  2539.                           SOLUTION / ANSWER
  2540.  
  2541.                           You must either issue smaller numbers of transactions
  2542.                           followed by commits to free up log space or allocate
  2543.                           more log space in the DB configuration.
  2544.  
  2545.                       18. PROBLEM / QUESTION
  2546.  
  2547.                           I'm getting SQL0551 while performing an SQL command
  2548.                           and I don't have the required authority to perform
  2549.                           the requested operation.
  2550.  
  2551.                           SOLUTION / ANSWER
  2552.  
  2553.                           Try performing an SQLBIND @SQLUBIND.LST <database>.
  2554.                           This has resolved the problem on multiple occasions
  2555.                           although this is not the only cause.  You should
  2556.                           always check the authority level of the user against
  2557.                           the request they are trying to perform to ensure it
  2558.                           is OK.
  2559.  
  2560.                       19. PROBLEM / QUESTION
  2561.  
  2562.                           The FFST log contains a number of Database Manager
  2563.                           entries originating from SQLO with a probe point of
  2564.                           x'0A'. Is this a problem?
  2565.  
  2566.                           SOLUTION / ANSWER
  2567.  
  2568.                           Not necessarily. FFST log entries with this
  2569.                           originator and probe point are generated whenever a
  2570.                           negative SQLCODE is placed into an SQLCA. Get the
  2571.                           hexadecimal value for the SQLCODE from the SQLCA
  2572.                           logged in the SQLCA, convert it to a negative decimal
  2573.                           number, and look up the corresponding SQL error
  2574.                           message in the DB2/2 Messages and Problem
  2575.                           Determination Guide to determine the actual error.
  2576.  
  2577.                       20. PROBLEM / QUESTION
  2578.  
  2579.                           Is an integer greater than 10 significant digits
  2580.                           treated as a decimal?
  2581.  
  2582.                           SOLUTION / ANSWER
  2583.  
  2584.                           Yes.  Any number with greater than 10 significant
  2585.                           digits is treated as a decimal within EE 1.3, ES 1.0,
  2586.                           and DB2/2.
  2587.  
  2588.                       21. PROBLEM / QUESTION
  2589.  
  2590.  
  2591.                                                            DB2/2 and DDCS/2  43
  2592.  
  2593.  
  2594.                           Receiving SQL1042C on STARTDBM.
  2595.  
  2596.                           SOLUTION / ANSWER
  2597.  
  2598.                           The system date was incorrect.  Rather than replace
  2599.                           the NET.ACC file the ZEROMODL tool can be used to
  2600.                           correct 50 bytes in NET.ACC file.  The next STARTDBM
  2601.                           will reinitialize the system date in the NET.ACC
  2602.                           file.
  2603.  
  2604.                       22. PROBLEM / QUESTION
  2605.  
  2606.                           Unable to print to a PostScript printer.
  2607.  
  2608.                           SOLUTION / ANSWER
  2609.  
  2610.                           This is not supported.  You must use a different
  2611.                           driver (that is not PostScript).
  2612.  
  2613.                       23. PROBLEM / QUESTION
  2614.  
  2615.                           Is it possible to directly update any of the columns
  2616.                           in a SYSIBM table?
  2617.  
  2618.                           SOLUTION / ANSWER
  2619.  
  2620.                           No.  No one can update, delete or insert records into
  2621.                           these tables except SYSIBM (DB2/2 itself).
  2622.  
  2623.                       24. PROBLEM / QUESTION
  2624.  
  2625.                           Experiencing problems cataloging new databases or
  2626.                           nodes.
  2627.  
  2628.                           SOLUTION / ANSWER
  2629.  
  2630.                           This could be caused by corruption in the directory
  2631.                           information.  If you do not mind erasing what you
  2632.                           have already cataloged, you can delete the \sqldbdir
  2633.                           or \sqlnodir directories whenever you want.  On the
  2634.                           first attempt to use them, they will be recreated
  2635.                           (obviously empty).
  2636.  
  2637.                           The database and node directory formats are also
  2638.                           inconsistent between DB2/2 and CAE/* (or SDK/*).
  2639.                           When the Client Application Enabler (CAE) products
  2640.                           and the Software Developer's Kit (SDK) products were
  2641.                           built, a new format was used.
  2642.  
  2643.                       25. PROBLEM / QUESTION
  2644.  
  2645.                           Is there any way to restore the database if all I
  2646.                           have is a backup of the \SQLnnnnn directory?
  2647.  
  2648.  
  2649.   44  DB2/2 And DB2/6000 Questions and Answers
  2650.  
  2651.  
  2652.                           SOLUTION / ANSWER
  2653.  
  2654.                           Yes, although problems can occur and this is not
  2655.                           supported.  First, create a new database with the
  2656.                           same name.  Copy your copy of the database into the
  2657.                           directory just created.  This should work.
  2658.  
  2659.                           In future, use the proper backup and restore utility
  2660.                           included with the product.  This is the only
  2661.                           supported method.
  2662.  
  2663.                       26. PROBLEM / QUESTION
  2664.  
  2665.                           If DB2/2 has performed x hours of log file processing
  2666.                           (for inserts, updates or deletes) and there is a
  2667.                           COMMIT failure, how long will the ROLLBACK take to
  2668.                           complete?
  2669.  
  2670.                           SOLUTION / ANSWER
  2671.  
  2672.                           Essentially, you have to redo all of the
  2673.                           transactions, so the time it will take should be
  2674.                           approximately the same.
  2675.  
  2676.                       27. PROBLEM / QUESTION
  2677.  
  2678.                           Receiving an SQL0805N when attempting to run a window
  2679.                           application against my DB2/2 database.  The Windows
  2680.                           application can be from an OS/2 machine or a native
  2681.                           DOS/Windows machine.
  2682.  
  2683.                           SOLUTION / ANSWER
  2684.  
  2685.                           This is caused because either your application
  2686.                           se or the database utilities are not bound to the
  2687.                           database.  Either bind your application or execute a
  2688.                           bind against @db2ubind.lst, @ddcsbind.lst or
  2689.                           @sqlubind.lst as appropriate for your installation.
  2690.  
  2691.                       28. PROBLEM / QUESTION
  2692.  
  2693.                           How can I move a big database from one machine to
  2694.                           another?
  2695.  
  2696.                           SOLUTION / ANSWER
  2697.  
  2698.                           a.  Turn copy protect off in your database
  2699.                               configuration.
  2700.  
  2701.                           b.  BACKUP the database to a LAN drive or a tape.
  2702.  
  2703.                           c.  RESTORE the database to the new machine using the
  2704.                               CREATE NEW option.
  2705.  
  2706.  
  2707.                                                            DB2/2 and DDCS/2  45
  2708.  
  2709.  
  2710.                       29. PROBLEM / QUESTION
  2711.  
  2712.                           Receiving an SQL1042C when doing a STARTDBM.
  2713.  
  2714.                           SOLUTION / ANSWER
  2715.  
  2716.                           There are many causes. One possible cause is an
  2717.                           incorrect system date/time; another is database
  2718.                           corruption of some kind.
  2719.  
  2720.                       30. PROBLEM / QUESTION
  2721.  
  2722.                           When printing from QM, the extra blank pages and
  2723.                           pages with only a control character were printed with
  2724.                           the report.
  2725.  
  2726.                           SOLUTION / ANSWER
  2727.  
  2728.                           Properly define a printer nickname and a profile with
  2729.                           the nickname for the database.  Be sure to activate
  2730.                           the profile.
  2731.  
  2732.                       31. PROBLEM / QUESTION
  2733.  
  2734.                           How can I change the workstation name that I set
  2735.                           during the installation of DB2/2?
  2736.  
  2737.                           SOLUTION / ANSWER
  2738.  
  2739.                           This name is the NNAME setting in the database
  2740.                           manager configuration.  You can change this with the
  2741.                           command: UPDATE DATABASE MANAGER CONFIGURATION USING
  2742.                           NNAME <new nname>.
  2743.  
  2744.                       32. PROBLEM / QUESTION
  2745.  
  2746.                           Can a DB2/2 standalone machine act as a client and
  2747.                           connect to remote databases?
  2748.  
  2749.                           SOLUTION / ANSWER
  2750.  
  2751.                           You can install DB2/2 as a standalone, or as a client
  2752.                           with standalone databases.  The latter will allow you
  2753.                           to connect to remote databases.
  2754.  
  2755.                       33. PROBLEM / QUESTION
  2756.  
  2757.                           How many times should a server and a client beep when
  2758.                           they have enough NETBIOS resources?
  2759.  
  2760.                           SOLUTION / ANSWER
  2761.  
  2762.                           3 times and once respectively.
  2763.  
  2764.  
  2765.   46  DB2/2 And DB2/6000 Questions and Answers
  2766.  
  2767.  
  2768.   DB2/6000 AND DDCS/6000
  2769.   ______________________
  2770.  
  2771.  
  2772.   COMMUNICATIONS & DDCS
  2773.   _____________________
  2774.  
  2775.                       1.  PROBLEM / QUESTION
  2776.  
  2777.                           When I connect to a SQL/DS machine I'm getting
  2778.                           SQL30080 0010-00000000 with sense data 08640001.
  2779.  
  2780.                           SOLUTION / ANSWER
  2781.  
  2782.                           The SQL/DS server machine was not brought up with the
  2783.                           correct parameter to allow DRDA protocol.
  2784.  
  2785.                           When bringing up the SQL/DS machine, use:
  2786.  
  2787.                           SQLSTART DB(dbname) parm(protocol=AUTO) OR
  2788.  
  2789.                           SQLSTART DB(dbname) parm(protocol=DRDA)
  2790.  
  2791.                       2.  PROBLEM / QUESTION
  2792.  
  2793.                           I can't get DBM DROP DATABASE for a host database to
  2794.                           work.
  2795.  
  2796.                           SOLUTION / ANSWER
  2797.  
  2798.                           If you want to execute a DROP DATABASE against any
  2799.                           host database, you must write an application (in C or
  2800.                           another language) to prepare the statement, and then
  2801.                           execute it.
  2802.  
  2803.                       3.  PROBLEM / QUESTION
  2804.  
  2805.                           My client gets SQL30080 with sense data 081C0103.
  2806.  
  2807.                           SOLUTION / ANSWER
  2808.  
  2809.                           This is usually caused by having an incorrect
  2810.                           destination address in the LINK configuration of the
  2811.                           client.
  2812.  
  2813.                           Check this and if necessary, change it to the correct
  2814.                           one.
  2815.  
  2816.                       4.  PROBLEM / QUESTION
  2817.  
  2818.                           Only one user can connect to DB2/MVS.
  2819.  
  2820.  
  2821.                                                      DB2/6000 and DDCS/6000  47
  2822.  
  2823.  
  2824.                           SOLUTION / ANSWER
  2825.  
  2826.                           This is usually caused by missing Mod table
  2827.                           definitions on VTAM, so define the correct Mod tables
  2828.                           on VTAM and try again
  2829.  
  2830.                           This can also be caused by MAXREMOTE=1 on the DSNTIPE
  2831.                           panel of DB2 DDF install or MAXSESSIONS=1.  Increase
  2832.                           one or both of these as needed.
  2833.  
  2834.                       5.  PROBLEM / QUESTION
  2835.  
  2836.                           Can you use SELECT statements to select different
  2837.                           members of an AS/400 physical file (table)?
  2838.  
  2839.                           SOLUTION / ANSWER
  2840.  
  2841.                           No, even SQL/400 cannot do that.  Only the first
  2842.                           member can be selected. (There may be some techniques
  2843.                           on AS/400 where you can fool the system by using
  2844.                           alias name for each member but, we are not aware of
  2845.                           any).
  2846.  
  2847.                       6.  PROBLEM / QUESTION
  2848.  
  2849.                           My DDCS connection hangs in VTAM with PCINIT status.
  2850.  
  2851.                           SOLUTION / ANSWER
  2852.  
  2853.                           This may be caused by the wrong format in LOGMODE in
  2854.                           VTAM.  The continuation line must start on column 16.
  2855.  
  2856.                       7.  PROBLEM / QUESTION
  2857.  
  2858.                           I'm getting SQL30080 Reason Code 0A while trying to
  2859.                           issue a connect from a database client to the
  2860.                           database server.
  2861.  
  2862.                           SOLUTION / ANSWER
  2863.  
  2864.                           The number of the remote connections may have
  2865.                           exceeded the configured limit.
  2866.  
  2867.                       8.  PROBLEM / QUESTION
  2868.  
  2869.                           DOS and Windows Clients userids cannot have the pound
  2870.                           sign (#).  DB2MVS userids have #.  How can I
  2871.                           workaround this problem?
  2872.  
  2873.                           SOLUTION / ANSWER
  2874.  
  2875.                           In DB2/MVS, you can use USERID TRANSLATION FUNCTION
  2876.                           to "translate" userids without the pound sign to
  2877.  
  2878.  
  2879.   48  DB2/2 And DB2/6000 Questions and Answers
  2880.  
  2881.  
  2882.                           other userids with pound sign.  This workaround has
  2883.                           to be done on MVS.
  2884.  
  2885.                       9.  PROBLEM / QUESTION
  2886.  
  2887.                           I'm getting 0003-00000004 or 0003-00000005 APPC
  2888.                           errors on the client while connecting to a DB2/6000
  2889.                           Server.
  2890.  
  2891.                           SOLUTION / ANSWER
  2892.  
  2893.                           Both clients may be using the same Local LU (eg. LU1)
  2894.  
  2895.                           Ensure that all clients have a unique Local LU.
  2896.  
  2897.                       10. PROBLEM / QUESTION
  2898.  
  2899.                           I'm getting SQL30080 14 error.
  2900.  
  2901.                           SOLUTION / ANSWER
  2902.  
  2903.                           This may be caused by incorrectly cataloging the
  2904.                           workstation on the client.
  2905.  
  2906.                       11. PROBLEM / QUESTION
  2907.  
  2908.                           I'm getting SQL30061N when connecting to AS/400.
  2909.  
  2910.                           SOLUTION / ANSWER
  2911.  
  2912.                           On AS/400 use the command ADDRDBDIRE to add a local
  2913.                           database directory entry and use the name for TARGET
  2914.                           DATABASE in DCS directory.
  2915.  
  2916.                       12. PROBLEM / QUESTION
  2917.  
  2918.                           DBM EXPORT hangs or returns SQL1325N when I issue it
  2919.                           against a host database.
  2920.  
  2921.                           SOLUTION / ANSWER
  2922.  
  2923.                           EXPORT hangs because it tries to perform a DBM
  2924.                           CONNECT. If you use dependent LU you already have a
  2925.                           connection.  The second connection will hang.
  2926.  
  2927.                       13. PROBLEM / QUESTION
  2928.  
  2929.                           Poor performance occurring with the DOS Client (ES
  2930.                           1.0 , DB2/2, CAE/DOS or SDK/DOS) when using Lan
  2931.                           Support Program Version 1.35 and the device driver
  2932.                           DXMT0MOD.SYS.
  2933.  
  2934.                           SOLUTION / ANSWER
  2935.  
  2936.  
  2937.                                                      DB2/6000 and DDCS/6000  49
  2938.  
  2939.  
  2940.                           Add the parameter PBA=0 to the device statement in
  2941.                           the CONFIG.SYS on the DOS Client.  It should look
  2942.                           something like this:  DEVICE=X:\LSP\DXMT0MOD.SYS
  2943.                           PBA=0 <parm2> <parm3> ...
  2944.  
  2945.                       14. PROBLEM / QUESTION
  2946.  
  2947.                           Having difficulty with connecting CAE/2 to DB2/6000.
  2948.                           Receiving an SQL30081 error reason code 24 using
  2949.                           CPI-C.  This occurs during the connect.
  2950.  
  2951.                           SOLUTION / ANSWER
  2952.  
  2953.                           You must use the CP name of the OS/2 machine in the
  2954.                           REMOTE LU name field of the Logical Connection
  2955.                           Profile.  To get this look at the FQ_CP_NAME under
  2956.                           DEFINE_LOCAL_CP in your NDF file.  You can use other
  2957.                           defined Local LU names only if you set the
  2958.                           environment variable APPCLLU=<LOCALLU> where this
  2959.                           name matches up with the REMOTE LU name field of the
  2960.                           Logical Connection Profile.
  2961.  
  2962.                       15. PROBLEM / QUESTION
  2963.  
  2964.                           SQL0552N when binding to MVS database
  2965.  
  2966.                           SOLUTION / ANSWER
  2967.  
  2968.                           If AUTHID on MVS is set to blank this will cause your
  2969.                           userid to be translated to an ID that has no MVS
  2970.                           authority. Change the AUTHID to something else to
  2971.                           allow your authorities to be used.
  2972.  
  2973.  
  2974.   INSTALL AND MIGRATION
  2975.   _____________________
  2976.  
  2977.                       1.  PROBLEM / QUESTION
  2978.  
  2979.                           If I am trying to install DB2/6000 or DDCS/6000, what
  2980.                           does it mean when a message appears stating that
  2981.                           sna.sna.obj does not exist?
  2982.  
  2983.                           SOLUTION / ANSWER
  2984.  
  2985.                           If you receive this, you have either selected the
  2986.                           cs_sna option in the DB2/6000 installation, or the
  2987.                           prerequisite option on the DDCS/6000 option.  In both
  2988.                           cases, there is a check to ensure that you have the
  2989.                           correct version of SNA/6000 installed.  This message
  2990.                           appears when SNA/6000 is not installed, the wrong
  2991.                           version is installed, or there is an installation
  2992.                           problem.  The solution is to install or reinstall
  2993.                           SNA/6000.
  2994.  
  2995.  
  2996.   50  DB2/2 And DB2/6000 Questions and Answers
  2997.  
  2998.  
  2999.   APPLICATION DEVELOPMENT
  3000.   _______________________
  3001.  
  3002.                       1.  PROBLEM / QUESTION
  3003.  
  3004.                           I'm getting a SQLCODE of 0 when I expect a SQL0100.
  3005.  
  3006.                           SOLUTION / ANSWER
  3007.  
  3008.                           You are getting the 0 because you may be closing the
  3009.                           cursor before checking for EOF, thus the close cursor
  3010.                           was returning the 0 in the SQLCODE.
  3011.  
  3012.                       2.  PROBLEM / QUESTION
  3013.  
  3014.                           Why does DB2/6000 require so much extra log space
  3015.                           when a large unit of work is being performed?
  3016.  
  3017.                           SOLUTION / ANSWER
  3018.  
  3019.                           Reserved space is allocated for a potential ROLLBACK
  3020.                           of a unit of work.  This reserved space is logical
  3021.                           space that is not used until the ROLLBACK operation
  3022.                           would occur.  Therefore, a SQL0964 error (Log full)
  3023.                           will occur unless the required space is available.
  3024.  
  3025.                       3.  PROBLEM / QUESTION
  3026.  
  3027.                           Why am I getting SQL0501 errors occurring?
  3028.  
  3029.                           SOLUTION / ANSWER
  3030.  
  3031.                           This error is being caused by attempting to use a
  3032.                           cursor after it has been closed or attempting to
  3033.                           close a cursor following a commit.
  3034.  
  3035.                       4.  PROBLEM / QUESTION
  3036.  
  3037.                           How do I do a backup from a remote machine?
  3038.  
  3039.                           SOLUTION / ANSWER
  3040.  
  3041.                           You need to use a DARI program. (see the DB2/6000
  3042.                           Programming Guide and Reference for more detail)
  3043.  
  3044.                       5.  PROBLEM / QUESTION
  3045.  
  3046.                           How many table/view references are allowed in a
  3047.                           single SQL statement?
  3048.  
  3049.                           SOLUTION / ANSWER
  3050.  
  3051.                           The total number of tables and/or views that may be
  3052.                           referenced in a single SQL statement is 15.
  3053.  
  3054.  
  3055.                                                      DB2/6000 and DDCS/6000  51
  3056.  
  3057.  
  3058.                       6.  PROBLEM / QUESTION
  3059.  
  3060.                           Can a user update long varchar data using the command
  3061.                           line processor?
  3062.  
  3063.                           SOLUTION / ANSWER
  3064.  
  3065.                           No. Long varchar data can only be updated to the
  3066.                           database via a C program.
  3067.  
  3068.                       7.  PROBLEM / QUESTION
  3069.  
  3070.                           Why does the DB2 precompiler reject host variables of
  3071.                           length greater than 254 when using FORTRAN?
  3072.  
  3073.                           SOLUTION / ANSWER
  3074.  
  3075.                           This is due to the inability of FORTRAN to handle
  3076.                           structure type variables and variable length
  3077.                           variables.  Workarounds include:  1. Use C or COBOL
  3078.                           2. Use the SQLDA structure in FORTRAN.
  3079.  
  3080.  
  3081.   MISCELLANEOUS TOPICS
  3082.   ____________________
  3083.  
  3084.                       1.  PROBLEM / QUESTION
  3085.  
  3086.                           I'm getting SQL0101 error.
  3087.  
  3088.                           SOLUTION / ANSWER
  3089.  
  3090.                           This is usually caused by an insufficient statement
  3091.                           heap size in the database configuration.
  3092.  
  3093.                           Increase the statement heap size from 64 to 255
  3094.                           (max). The default is 64 in DB2/2 (for server) as it
  3095.                           was in ES 1.0. A query that runs in ES 1.0 may not
  3096.                           work in DB2/2 even if the statement heap size is the
  3097.                           same as DB2/2 uses extra memory.
  3098.  
  3099.                           The SQL0101 may also be caused by referential
  3100.                           constraints limitations in cases of UPDATEs.
  3101.  
  3102.                       2.  PROBLEM / QUESTION
  3103.  
  3104.                           I need information on the DB2/6000 call level
  3105.                           interface.
  3106.  
  3107.                           SOLUTION / ANSWER
  3108.  
  3109.                           This CLI is a callable SQL programming interface for
  3110.                           the C language.  It is basically an applications
  3111.                           program interface for db access which uses function
  3112.  
  3113.  
  3114.   52  DB2/2 And DB2/6000 Questions and Answers
  3115.  
  3116.  
  3117.                           calls to invoke dynamic SQL statements. It is an
  3118.                           alternative to embedded dynamic SQL.
  3119.  
  3120.                       3.  PROBLEM / QUESTION
  3121.  
  3122.                           I'm getting SQL0551 while performing an SQL command.
  3123.  
  3124.                           SOLUTION / ANSWER
  3125.  
  3126.                           Try performing an SQLBIND @SQLUBIND.LST <database>.
  3127.                           This has resolved the problem on multiple occasions
  3128.                           although this is not the only cause.  You should
  3129.                           always check the authority level of the user against
  3130.                           the request they are trying to perform to ensure it
  3131.                           is OK.
  3132.  
  3133.                       4.  PROBLEM / QUESTION
  3134.  
  3135.                           Is an integer with greater than 10 significant digits
  3136.                           treated as a decimal?
  3137.  
  3138.                           SOLUTION / ANSWER
  3139.  
  3140.                           Yes.  Any number with greater than 10 significant
  3141.                           digits is treated as a decimal within EE 1.3, ES 1.0,
  3142.                           and DB2/2.
  3143.  
  3144.                       5.  PROBLEM / QUESTION
  3145.  
  3146.                           Is REXX supported with DB2/6000?
  3147.  
  3148.                           SOLUTION / ANSWER
  3149.  
  3150.                           No.
  3151.  
  3152.                       6.  PROBLEM / QUESTION
  3153.  
  3154.                           How many shared segments does DB2/6000 get?
  3155.  
  3156.                           SOLUTION / ANSWER
  3157.  
  3158.                           It gets 2 shared segments as soon as a db2start is
  3159.                           issued, one for communication and one for the
  3160.                           database engine.  After this it gets one segment for
  3161.                           every database in use, and another one if TRACE has
  3162.                           been started.  Therefore, the number of shared
  3163.                           segments = 2+(# db in us  e)+(1 if trace is running)
  3164.  
  3165.  
  3166.                                                      DB2/6000 and DDCS/6000  53
  3167.  
  3168.  
  3169.   54  DB2/2 And DB2/6000 Questions and Answers
  3170.  
  3171.  
  3172.   FEEDBACK QUESTIONNAIRE
  3173.   ______________________
  3174.  
  3175.  
  3176.                       The workstation database service group is interested in
  3177.                       what your opinions are regarding this document.  We would
  3178.                       appreciate your taking a moment to print out this page
  3179.                       and respond to the questions below.
  3180.  
  3181.                       For each question, enter a number from 1 to 5 where:
  3182.  
  3183.                           1 = Very satisfied
  3184.  
  3185.                           2 = Satisfied
  3186.  
  3187.                           3 = Neither satisfied or dissatisfied
  3188.  
  3189.                           4 = Dissatisfied
  3190.  
  3191.                           5 = Very dissatisfied
  3192.  
  3193.                       How satisfied are you with ....
  3194.  
  3195.                       1.  the technical accuracy of this document ?   _______
  3196.  
  3197.                       2.  the type of information provided in this document ?
  3198.                           _______
  3199.  
  3200.                       3.  the quantity of information provided in this document
  3201.                           ?   _______
  3202.  
  3203.                       4.  the layout of this document ?   _______
  3204.  
  3205.                       5.  the ease of finding specific topics in this document
  3206.                           ?   _______
  3207.  
  3208.                       6.  the searching interface provided with this document ?
  3209.                           _______
  3210.  
  3211.                       Additional Comments:  please feel free to add any
  3212.                       additional comments.
  3213.  
  3214.  
  3215.                                                      Feedback Questionnaire  55
  3216.  
  3217.  
  3218.                       When complete, please fax this form to 416-448-2783.
  3219.  
  3220.                       If you are willing to be contacted about your comments
  3221.                       please provide your name and phone number.
  3222.  
  3223.  
  3224.   56  DB2/2 And DB2/6000 Questions and Answers
  3225.  
  3226.  
  3227.                          IBM
  3228.  
  3229.  
  3230.                          Printed in U.S.A.
  3231.  
  3232.  
  3233.