home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / os2bbs / os2dbm.cfo < prev    next >
Encoding:
Text File  |  1992-10-31  |  233.5 KB  |  5,675 lines

  1.  
  2.  This forum is supplied for demonstration purposes only and is
  3.  accessible via the IBM OS/2 BBS system.  What you see below is the
  4.  forum as it existed on 10/30/92.  The IBM OS/2 Bulletin Board System
  5.  (BBS) is IBM's new electronic support offering for OS/2 Version 2.0.
  6.  With OS/2 BBS you can electronically review OS/2 technical
  7.  information, submit program defects to IBM, and receive information
  8.  on how to solve problems.  Users of the OS/2 BBS not only include
  9.  OS/2 customers, but the OS/2 expertise of the entire internal IBM
  10.  community worldwide.  OS2BBS makes all this available via a local
  11.  or toll free number in most major cities.
  12.  
  13.  To request a complete OS/2 BBS Information Package detailing
  14.  the OS/2 BBS offering and including pricing and registration/access
  15.  information, please call:  1-800-547-1283.
  16.  
  17. ===== OS2DBM CFORUM created at 01:49:38 on 92/04/08 GMT (by HOPKINS at AUSVM8)
  18.                             IBM UNCLASSIFIED
  19.                             ----------------
  20.       The information in this forum is considered by IBM to be
  21.       external and may be shared by everyone who is given access.
  22.       This forum is shared with the internal IBM employee conferences.
  23.  
  24. Forum: OS2DBM CFORUM
  25.  
  26. Forum subject: OS/2 Extended Services for Database Manager
  27.  
  28.             This FORUM is provided as a conferencing tool to promote
  29.             discussion regarding the installation, customization and
  30.             use of OS/2 Extended Services for Database Manager and
  31.             present issues, questions, and problems encountered
  32.             during the use of Database Manager for ES.
  33.  
  34. Contributions must not contain confidential or proprietary information.
  35.  
  36. Each contributor agrees, in placing material in this forum, that IBM and
  37. other users are free to prepare derivative works based upon it, and to use,
  38. reproduce, perform, display and distribute inside and outside their company
  39. such material and such derivative works, without obligation or charge.
  40.  
  41. IBM is not responsible or liable for the use, copying, or distribution of
  42. materials placed on this forum, and has therefore no obligation to control
  43. such acts.
  44.  
  45. All subscribers are required to abide at all times by the conference
  46. rules described in the Bulletin Board Rules under "News and Announcements".
  47.  
  48. All IBM personnel are required to abide at all times by the IBMPC RULES
  49. and the IBM Business Conduct Guidelines. IBM personnel will read the
  50. CUSTOMER FORUM RULES in IBMPC RULES before contributing.
  51.  
  52. Contributions violating these rules will be deleted by the CFORUM
  53. Owner or their delegate, and in some cases by an IBM conference
  54. Administrator.
  55.  
  56. The OS2BBS CFORUM is where anyone may raise concerns regarding rules
  57. violations found in this and other CFORUMS.
  58.  
  59.    The IBM Owner of this forum is:
  60.    Name:            Kenneth M. Hopkins, OS/2 Support Services
  61.    Mailing Address: IBM Manufacturing and Development
  62.                     11400 Burnet Road
  63.                     Internal Zip 2900-042/1D003
  64.                     Austin, Texas    78758
  65.    IBM Node/Userid: AUSVM8/HOPKINS
  66.  
  67. ..... 4952 lines pruned at 06:01:39 on 92/10/16 GMT (by HOPKINS at AUSVM8) .....
  68.  
  69. ----- OS2DBM CFORUM appended at 22:57:59 on 92/07/31 GMT (by DGODOM at LSAVMIC4)
  70. Subject: Time to import 1M+ rows increases exponentially
  71. Ref:     Append at 21:31:03 on 92/07/31 GMT (by UBIQUITY at AUSVM1)
  72.  
  73. Richard,
  74.  
  75. Interesting information about the internal operation of OS2 DBM.
  76. After all the talk about DBM being a direct copy of DB2, it seems,
  77. in this instance at least, that DBM operates more like SQL/DS.  All
  78. right!  It does seem to be more logical to create indexes after the
  79. data is loaded, not during.
  80.  
  81. Thanks for the insight.
  82.  
  83. Take care,
  84.  
  85. Dave Odom
  86. Relational Database Specialist
  87. Application Enabling Practice
  88. Arizona Management Consulting
  89. Tucson, AZ
  90.  
  91. ----- OS2DBM CFORUM appended at 18:26:31 on 92/08/01 GMT (by IL36792 at OS2CUST)
  92. Subject: SQL String Concat
  93.  
  94. Is there a string/substring concatenation facility in OS2 2.0 ES DBM similar
  95. to the "||" capability in OS/400 SQL?  If not, how do we change portions of
  96. strings?  An example is the following:
  97.    UPDATE MYTABLE SET NAME='Mr. '||SUBSTR(NAME,8) WHERE NAME LIKE 'Mister%'
  98. changes title 'Mister' to 'Mr. ' in the name field.
  99.  
  100. ----- OS2DBM CFORUM appended at 04:17:50 on 92/08/03 GMT (by CJNUSSE at DALVMIC6)
  101. Subject: SQL1042N - Unexpected System Error
  102. Ref:     Append at 04:17:35 on 92/07/28 GMT (by CHALTAIN at FSHVMFK1)
  103.  
  104. This sounds almost identical to a problem that I had after upgrading
  105. a 1.3 standalone database to Extended Services.
  106.  
  107. I also reinstalled several times, to no avail, so I called the IBM
  108. Service number.  They sent me a utility called RESETLOG, which is really
  109. for this error if you get it at a START USING database, not a STARTDBM.
  110. Since that didn't work, they recommended I try to reformat the disk.
  111. I really didn't want to do that, so they forwarded the problem to a
  112. database developer.
  113.  
  114. He had me check to ensure that I had a net.acc on my disk, which I
  115. did.  Then he had me unpack a new net.acc from the install disks.
  116. With a new net.acc, STARTDBM worked with no problems.  Obviously,
  117. when you do this, you lose all your UPM userid definitions, but it
  118. was a corrupted net.acc causing all the problems.  If you have a
  119. backup of a good net.acc, you might try that before unpacking a
  120. new one.
  121.  
  122. Hope this helps,
  123. Connie Nusser
  124. Heartland Trading Area Services Center
  125. 8/672-6637
  126.  
  127. ----- OS2DBM CFORUM appended at 14:09:29 on 92/08/03 GMT (by UBIQUITY at AUSVM1)
  128. Subject: RDS PROCESSES
  129. Ref:     Append at 22:48:44 on 92/07/31 GMT (by BOFA90 at OS2CUST)
  130.  
  131. A new process model using hot processes is being looked into, but
  132. for now there is no way around the one agent process per client process
  133. requirement.
  134.  
  135. Richard D. Hoffman
  136.  
  137. ----- OS2DBM CFORUM appended at 14:10:53 on 92/08/03 GMT (by UBIQUITY at AUSVM1)
  138. Subject: Time to import 1M+ rows increases exponentially
  139. Ref:     Append at 22:57:59 on 92/07/31 GMT (by DGODOM at LSAVMIC4)
  140.  
  141. DBM was never intended as a copy of DB2, particularly at the physical
  142. level.  If it resembles SQL/DS a little more at that level, it is
  143. only because of the relative simplicitly of both systems when compared
  144. to DB2.
  145.  
  146. Richard D. Hoffman
  147.  
  148. ----- OS2DBM CFORUM appended at 14:13:02 on 92/08/03 GMT (by UBIQUITY at AUSVM1)
  149. Subject: SQL String Concat
  150. Ref:     Append at 18:26:31 on 92/08/01 GMT (by IL36792 at OS2CUST)
  151.  
  152. Concatenation is not available in OS/2 DBM, but will be in a future
  153. release.  There are workarounds from some applications of concatenation,
  154. but not the one you cite.
  155.  
  156. Richard D. Hoffman
  157.  
  158. ----- OS2DBM CFORUM appended at 14:50:36 on 92/08/03 GMT (by QSAEED at DALHQIC2)
  159. Subject:Logon dialog box by the use of UPMGLGN
  160.  
  161. How can logon dialog box be brought up by using UPMGLGN? I have tried
  162. using 'USERID' and 'PASSWORD' as NULLs and thought it will force
  163. the logon screen to pop up since logon will fail. It only returns
  164. an invalid return code and I am not sure how to bring up the logon
  165. dialog box. Also, it has to be done from within the program.
  166.  
  167. In reference to the same problem, I wonder how does QueryManager brings
  168. up the logon dialog box. Does anyone know???
  169.  
  170. Thanks in advance,
  171.  
  172. Qaiser Saeed (TL: 421-8542)
  173.  
  174. ----- OS2DBM CFORUM appended at 15:11:35 on 92/08/03 GMT (by VERSTEEG at UITVM1)
  175. Subject: Logon dialog box by the use of UPMGLGN
  176. Ref:     Append at 14:50:36 on 92/08/03 GMT (by QSAEED at DALHQIC2)
  177.  
  178. If you try to do a START USING DATABASE without being logged on,
  179. DBM will bring up the logon window automatically.
  180.  
  181. In case you are calling DBM from a PM program, make sure you
  182. do this from a separate thread, otherwise PM cannot give focus
  183. to the logon window.
  184.  
  185. Anton Versteeg - ESAT PWS CoC Uithoorn, NL       *** GO OS/2 2.0 ***
  186.  
  187. ----- OS2DBM CFORUM appended at 16:30:13 on 92/08/03 GMT (by CGNA106 at OS2CUST)
  188. Subject: Database manager crashing after maximizing
  189.  
  190. Our team is experiencing DBM/query manager crashes when we run utilities
  191. from query manager,minimize query manager, and then maximize query manager
  192. .
  193.  
  194. Once maximized, the process abends with the following:
  195.  
  196. sys3175
  197. a program generated an access violation at 197931b7
  198. qrwq.dll 003
  199. p1=0000010 p2=fffffff p3=xxxxxxxx p4=xxxxxxxx
  200. eax=0000000
  201. etc...etc...etc....
  202.  
  203. Has this bug been identified, is their a fix out for this already?
  204.  
  205. Steve Petruzzi
  206.  
  207. ----- OS2DBM CFORUM appended at 18:15:08 on 92/08/03 GMT (by TCC3824 at OS2CUST)
  208. Subject: DBM 3rd Party Support tools
  209.  
  210. Does anyone know of any 3rd party support tools for OS/2 Database
  211. Manager like the support tools available for DB2?  (Platinum, BMC)
  212.  
  213. Kevin McConnell   512-338-7457  Continuum    Austin Tx
  214.  
  215. ----- OS2DBM CFORUM appended at 08:28:20 on 92/08/04 GMT (by VERSTEEG at UITVM1)
  216. Subject: DBM 3rd Party Support tools
  217. Ref:     Append at 18:15:08 on 92/08/03 GMT (by TCC3824 at OS2CUST)
  218.  
  219. Here are a couple of tools in that area:
  220.  
  221.   BACHMAN                         Bachman on OS/2        A5
  222.   INTERSOLV                       Repository Explorer    A10
  223.   INVICTUS SYSTEMS CORP           Data BOS 2             A7
  224.   INVICTUS SYSTEMS CORP           Database Daemon        --
  225.  
  226. The code on the right refers to the section in the OS/2 Application
  227. Solutions guide: G362-0002-01.
  228.  
  229. Anton Versteeg - ESAT PWS CoC Uithoorn, NL       *** GO OS/2 2.0 ***
  230.  
  231. ----- OS2DBM CFORUM appended at 14:06:55 on 92/08/05 GMT (by CIGNA58 at OS2CUST)
  232. Subject: Cloning a Database Structure
  233. Ref: Append at 22:04:44 on 92/04/30 GMT (by XXHAYM01 at TORVMCOP)
  234.  
  235. I have written a REXX procedure that does generate DDL for an entire Data Base
  236. Manager Data Base.  The DDL generated, however, is in DB2 acceptable format.
  237. In other words, I generate tablespaces, storages groups, tables, indexes and
  238. referential integrity.  You could easily modify this to generate DBM compatible
  239. format.
  240.  
  241. Michelle Zaremskas
  242.  
  243. ----- OS2DBM CFORUM appended at 20:33:48 on 92/08/05 GMT (by GSCHOI at RHQVM16)
  244. Subject: SQLCODE 1013
  245.  
  246. Have anyone experienced problem with erasing a local database due to
  247. the fact that the SQL00001 directory is in a different session.  The
  248. Query Manager has cleanup all the files in SQL00001 but not removed
  249. the directory SQL00001.  I try using RD afterward but not succeed.
  250. How can I clean up the database directory so I can define the database
  251. again using the same ALIAS.  I have to use the same ALIAS because it
  252. comes with the product.  Thank you.
  253.  
  254. Grace S Choi
  255.  
  256. ----- OS2DBM CFORUM appended at 22:14:30 on 92/08/05 GMT (by NAAO3IY at OS2CUST)
  257. Subject: SQLCODE 1013
  258. Ref: Append at 20:33:48 on 92/08/05 GMT (by GSCHOI at RHQVM16)
  259.  
  260. It is not logical that RD should fail on a truly empty directory.
  261. Either you have some kind of file-system problem (have you tried
  262. CHKDSK?), another session is still logged onto the directory (at the
  263. absolute worst, re-booting should fix that), or there is still
  264. something in that directory (have you tried dragging it to the
  265. shredder?).
  266.  
  267. John Kennedy -- Hoechst Celanese, Bridgewater, NJ
  268.  
  269. ----- OS2DBM CFORUM appended at 01:45:30 on 92/08/06 GMT (by CHALTAIN at FSHVMFK1)
  270. Subject: SQL1042N - Unexpected System Error
  271. Ref:     Append at 04:17:50 on 92/08/03 GMT (by CJNUSSE at DALVMIC6)
  272.  
  273. Thankyou!  Thankyou! Thankyou!  I too did not want to re-format my
  274. system, but everything was pointing in that direction.  Your suggestion
  275. did the trick.  I grabbed a NET.ACC from another machine in the office,
  276. and everything is fine!  Again, thanks!
  277.  
  278. Christopher J Chaltain
  279.  
  280. ----- OS2DBM CFORUM appended at 13:56:54 on 92/08/06 GMT (by MJRYANT at NYCVMIC1)
  281. Subject: DOS application Enabler
  282. My customer has a OS/2 ES server, and wants his DOS applications to
  283. access databases on the ES 1.0 SErver.  We are installing the DOS
  284. application enabler code on the DOS workstation.  I am looking for
  285. someone who have code the program needed to catalog the database
  286.  
  287. Also I need a list of product that can be used as a front end on the
  288. DOS.  Please give my a call at 8-340-2764, if you can help... We are
  289. trying to get the customer up and running ASAP.  Thanks...
  290. HAVE A GREAT DAY
  291.  
  292. ----- OS2DBM CFORUM appended at 19:14:39 on 92/08/07 GMT (by IL04688 at OS2CUST)
  293. Subject: problem running SQLPREP
  294.  
  295. We are having a problem running SQLPREP.  It accepts a ".SQB" file and
  296. tries to process it, but the resulting output file is identical to the
  297. input file.  This worked under OS/2 1.3.  Any ideas ?
  298.  
  299. Leo Tornow
  300.  
  301. ----- OS2DBM CFORUM appended at 19:52:17 on 92/08/07 GMT (by IL03484 at OS2CUST)
  302. Subject: SQL30080N
  303.  
  304. Using a remote database configuration, I am able to see the database listed
  305. under the Query Manager however cannot access the data whn opening the table.
  306. The message is QRW2272W, which refers to SQL30080N.
  307. Being new to this type of application, I have been looking
  308. in the manuals for information regarding remote database configuration
  309. and any other related data.  And I'm missing the point as to how
  310. the import/export utility is tied in to this.
  311.  
  312. Also, can you direct me where to look ON-LINE for this type
  313. of information?
  314.  
  315. Tom Hobbs Bituminous Insurance Co.
  316.  
  317. ----- OS2DBM CFORUM appended at 20:31:04 on 92/08/07 GMT (by UBIQUITY at AUSVM1)
  318. Subject: problem running SQLPREP
  319. Ref:     Append at 19:14:39 on 92/08/07 GMT (by IL04688 at OS2CUST)
  320.  
  321. It should still work.  Are you sure you haven't introduced something
  322. new into the COBOL source, like a mismatched quotation mark or
  323. apostrophe?
  324.  
  325. Richard D. Hoffman
  326.  
  327. ----- OS2DBM CFORUM appended at 14:43:20 on 92/08/10 GMT (by TCSC121 at OS2CUST)
  328. Subject: SQLDA FLOATING POINT FORMAT
  329.  
  330. I AM ATTEMPTING TO EXTRACT A FIELD THAT IS IN SCIENTIFIC FORMAT.
  331. I ISSUE AN  FETCH MYCURSOR USING DESCRIPTOR :*MYSQLDA
  332. WHERE MYSQLDA->SQLVAR(I).SQLTYPE = 481
  333. Q: WHAT DOES MYSQLDA->SQLVAR(I).SQLDATA  ( UNSIGNED CHAR * ) POINT TO
  334. Q: HOW DO I DISPLAY THE VALUE RETURNED
  335. I WANT TO USE SPRINTF(VALUE,"%E",(FLOAT)*MYSQLDA->SQLVAR(I).SQLDATA);
  336. I AM GETTING THE WRONG ANSWER ANY IDEAS?
  337. DL
  338.  
  339. DAVE LAUTA
  340.  
  341. ----- OS2DBM CFORUM appended at 16:55:08 on 92/08/10 GMT (by UBIQUITY at AUSVM1)
  342. Subject: SQLDA FLOATING POINT FORMAT
  343. Ref:     Append at 14:43:20 on 92/08/10 GMT (by TCSC121 at OS2CUST)
  344.  
  345. You have the right idea but you're missing an important piece: *you*
  346. have to allocate space for the floating point variable to which SQLDATA
  347. points.  So your code should look something like this:
  348.  
  349.    double MyFloat;
  350.    short  MyIndicator;
  351.    sqlda  *MySQLDA;
  352.  
  353.    /* allocate SQLDA */
  354.  
  355.    MySQLDA->sqlvar(i).sqltype = 481;
  356.    MySQLDA->sqlvar(i).sqllen  = 8;
  357.    MySQLDA->sqlvar(i).sqldata = &MyFloat;
  358.    MySQLDA->sqlvar(i).sqlind  = &MyIndicator;
  359.  
  360.    EXEC SQL FETCH MYCURSOR USING DESCRIPTOR :*MySQLDA;
  361.  
  362. The value will now be returned in MyFloat.  If the value is NULL,
  363. MyIndicator will be negative.
  364.  
  365. Richard D. Hoffman
  366.  
  367. ----- OS2DBM CFORUM appended at 10:12:02 on 92/08/11 GMT (by VERSTEEG at UITVM1)
  368. Subject: New!! Client/Server Programming with OS/2 2.0
  369.  
  370. I extracted this from the internal announcement by the authors (AV):
  371.  
  372. Title: Client/Server Programming with OS/2 2.0  (Second Edition)
  373. Authors: Robert Orfali and Dan Harkey
  374. Description: 1112 pages, $39.95
  375. Publisher: Van Nostrand Reinhold, New York (August, 1992).
  376. ISBN Number: 0-442-01219-5.
  377. IBM Mechanicsburg:  G325-0650.
  378.  
  379. We're, at last, happy to announce the second edition of our book
  380. "Client/Server Programming with OS/2 2.0."  This edition contains over
  381. 600 new pages on OS/2 2.0's advanced client/server features.  The
  382. first 200 pages are a "book within a book" and can be used as
  383. an introduction to OS/2 2.0 for non-programmers.  This includes
  384. a detailed overview of the OS/2 2.0 client and server platforms--
  385. including base OS/2 2.0, MMPM/2, Database Manager, DDCS/2,
  386. Communications Manager, TCP/IP for OS/2, LAN Server, and
  387. NetWare Requester for OS/2 2.0.  We also compare OS/2 2.0 with
  388. other client/server platforms such as Windows 3.X, Unix, NT,
  389. and NetWare 3.1.
  390.  
  391. The book includes 300 pages of working 32-bit OS/2 code.  We develop
  392. programs that demonstrate how to effectively use OS/2 2.0's base
  393. services such as multitasking, multithreading, Named Pipes, and the
  394. new 32-bit sempahore model.  Our BLOB olympics now run on top of
  395. OS/2's CPI-C/APPC, NetBIOS, Named Pipes, Sockets over TCP/IP,
  396. NetWare Requester, and LAN Server protocols.  We now cover DDCS/2 in
  397. addition to the Extended Services Database Manager.  Our TP1
  398. benchmarks were converted to 32-bit OS/2.
  399.  
  400. Over 200 pages are on programming PM, SOM, and the
  401. Workplace Shell (class libraries).  We explain the benefits
  402. of Object-Oriented User Interfaces (OOUIs) for
  403. the creation of client front-ends.  We gave an OOUI
  404. facelift to our Club Med application.  You will be pleased with
  405. "pizzaz" added by the new PM/WPS controls such as folders
  406. and notebooks.
  407.  
  408. Over 100 new illustrations and cartoons add some life
  409. and humor to the arcane technical jargon.  We hope the book will
  410. continue to appeal to wide audiences ranging from novices
  411. to PC programmers programmers and MIS professionals.  Most
  412. importantly, we hope the book will demonstrate to potential
  413. customers the power of OS/2 2.0 as both a client and server
  414. platform.  The book shows that the OS/2 client/server power
  415. is here today!
  416.  
  417. The book will make its debut next week at the "Windows and OS/2"
  418. show in Boston.  You can order it now from Mechanicsburg
  419. (puborder: G325-0650).
  420.  
  421. Bob Orfali
  422. Dan Harkey
  423.  
  424. Anton Versteeg - ESAT PWS CoC - Uithoorn Netherlands
  425.  
  426. ----- OS2DBM CFORUM appended at 12:35:16 on 92/08/11 GMT (by XXCDSX26 at TORVMCOP)
  427. Subject: New!! Client/Server Programming with OS/2 2.0
  428. Ref:     Append at 10:12:02 on 92/08/11 GMT (by VERSTEEG at UITVM1)
  429.  
  430. Anton:
  431.  
  432. Tell the authors "Thanks!"  This is one book I have been waiting
  433. for.  I thought the first edition was one of the best OS/2 books ever
  434. and the best on EE.  The new one should be interesting reading.
  435.  
  436. Michael Harper - Cdn Depository for Securities, Ltd
  437.  
  438. ----- OS2DBM CFORUM appended at 12:43:50 on 92/08/11 GMT (by TCSC121 at OS2CUST)
  439. Subject: MORE SQLDA FLOATINGPOINT PROBLEMS
  440.  
  441. What I did to allocate the memory was:
  442.  
  443. while ( i < mysqlda->sqld ) {
  444.  mysqlda->sqlvar(i).sqldata =
  445.                           (unsigned char * ) malloc(mysqlda->sqlvar(i).sqllen);
  446.  mysqlda->sqlvar(i).sqlind =
  447.                           ( short * ) malloc(mysqlda->sqlvar(i++).sqlind);
  448. }
  449.  
  450. After the fetch using descriptor ...
  451.  
  452. float *f;
  453. char value(64);
  454.  
  455.      f = mysqlda->sqlvar(i).sqldata;
  456.      sprintf(value,"%E",*f);
  457.  
  458. returns a value that is not the value that was stored ???
  459. also for a sqltype value 0f 485  I get a length of 1285  what does this mean?
  460.  
  461. DAVE LAUTA
  462.  
  463. ----- OS2DBM CFORUM appended at 12:55:38 on 92/08/11 GMT (by VERSTEEG at UITVM1)
  464. Subject: New!! Client/Server Programming with OS/2 2.0
  465. Ref:     Append at 12:35:16 on 92/08/11 GMT (by XXCDSX26 at TORVMCOP)
  466.  
  467. Just forwarded your append to them.
  468.  
  469. Anton Versteeg - ESAT PWS CoC Uithoorn, NL       *** GO OS/2 2.0 ***
  470.  
  471. ----- OS2DBM CFORUM appended at 13:52:09 on 92/08/11 GMT (by UBIQUITY at AUSVM1)
  472. Subject: MORE SQLDA FLOATINGPOINT PROBLEMS
  473. Ref:     Append at 12:43:50 on 92/08/11 GMT (by TCSC121 at OS2CUST)
  474.  
  475. Here are a few comments on your approach:
  476.  
  477. > while ( i < mysqlda->sqld ) {
  478.  
  479. I guess you've verified that i is initialized to 0.
  480.  
  481. > mysqlda->sqlvar(i).sqldata =
  482. >           (unsigned char * ) malloc(mysqlda->sqlvar(i).sqllen);
  483.  
  484. This will get you into trouble for null-terminated strings and
  485. VARCHAR strings, where the number of bytes to be allocated are
  486. SQLLEN+1 and SQLLEN+2, respectively.  It will also get you into
  487. trouble with DECIMAL fields (see below), but C is already in trouble
  488. with these (i.e., has no way to manipulate or display them), so you
  489. should probably substitute a double (SQLTYPE=481, SQLLEN=8).
  490.  
  491. > mysqlda->sqlvar(i).sqlind =
  492. >        ( short * ) malloc(mysqlda->sqlvar(i++).sqlind);
  493.  
  494. I don't see how this allocates two bytes of storage for the indicator.
  495. Also, isn't it inefficient to be mallocating such small pieces of
  496. storage?  Seems like it would be better to malloc an array of SQLD
  497. indicators outside the loop.
  498.  
  499. > For a sqltype value 0f 485 I get a length of 1285. What does this mean?
  500.  
  501. That's a DECIMAL field.  The first byte is the precision, the second
  502. is the scale.  So:  1285 = x'505', indicating DECIMAL(5,5).
  503.  
  504. Richard D. Hoffman
  505.  
  506. ----- OS2DBM CFORUM appended at 15:14:54 on 92/08/11 GMT (by TCSC121 at OS2CUST)
  507. Subject: MORE ON SQLDA  FLOATING POINT
  508.  
  509. Thank you for your response.
  510. First I have to admit that in the note I omitted the sizeof(mysqlda...sqlind)
  511. to obtain the malloc of the two bytes.  I like your idea of allocating
  512. an array of null indicators and assigning the address in the loop.
  513. I am unclear what function the indcators provide.
  514. Thank you for explaining the correlation between 1285 and DEC(5,5)
  515. Do you have an example of converting the bytes to give the precision 0x0505.
  516. I still am not converting the floating point correctly and do need some
  517. further explanation.
  518. I am filling in the SQLDA structure with a describe statement
  519. that I built from a query to SYSIBM.SYSCOLUMNS
  520. This technique has kept me from coding many host variables.
  521. My intent is to write a routine which will extract all fields from
  522. any table and present it to MVS using APPC. I am real close but can't
  523. get it to work on SCIENTIFIC or DECIMAL.  I am converting all values to
  524. ascii character strings to use ASCII to EBCIDIC conversion efficiently.
  525.  
  526. Thank you for pointing out that VARCHAR needs to be two bytes bigger than
  527. sqlda->sqlvar.sqllen.  That would have been a hard bug to find.
  528.  
  529. DAVE LAUTA
  530.  
  531. ----- OS2DBM CFORUM appended at 16:09:21 on 92/08/11 GMT (by UBIQUITY at AUSVM1)
  532. Subject: MORE ON SQLDA  FLOATING POINT
  533. Ref:     Append at 15:14:54 on 92/08/11 GMT (by TCSC121 at OS2CUST)
  534.  
  535. > I am unclear what function the indcators provide.
  536.  
  537. If you FETCH a NULL value, we set the corresponding indicator variable
  538. to a negative number.  If the column is nullable (as indicated by an
  539. odd SQLTYPE), you should check the indicator variable after each FETCH
  540. to see if you have FETCHed a NULL value.
  541.  
  542. > Do you have an example of converting the bytes to give the precision
  543. > 0x0505 (from 1285)?
  544.  
  545. Precision = (int)(SQLLEN/256);
  546. Scale = (SQLLEN - Precision*256);
  547.  
  548. e.g.:  1285/256 = 5 (precision);  1285-5*256 = 5 (scale)
  549.  
  550. > I still am not converting the floating point correctly and do need some
  551. > further explanation.
  552.  
  553. I think I see your problem.  Don't use float: use double. What is the
  554. SQLLEN for your FLOAT fields?  It should be 8.  You didn't mention
  555. originally that you were doing this through MVS.  MVS supports a
  556. four byte float, but we don't.  If SQLTYPE IS 480 or 481 and
  557. SQLLEN is 4, change SQLLEN to 8 and make SQLDATA point to a double
  558.  
  559. > SCIENTIFIC
  560.  
  561. This is a QM term.  Most DBM programmers call these numbers "FLOAT".
  562.  
  563. > I am converting all values to ascii character strings to use ASCII to
  564. > EBCIDIC conversion efficiently.
  565.  
  566. I hope you are not doing this yourself.  DDCS converts from EBCDIC
  567. to ASCII automatically.
  568.  
  569. Richard D. Hoffman
  570.  
  571. ----- OS2DBM CFORUM appended at 16:20:21 on 92/08/11 GMT (by XXCDSX26 at TORVMCOP)
  572. Subject: New!! Client/Server Programming with OS/2 2.0
  573. Ref:     Append at 12:55:38 on 92/08/11 GMT (by VERSTEEG at UITVM1)
  574.  
  575. Anton, thanks.
  576.  
  577. Michael Harper - Cdn Depository for Securities, Ltd
  578.  
  579. ----- OS2DBM CFORUM appended at 17:28:19 on 92/08/11 GMT (by TCSC121 at OS2CUST)
  580. Subject: MORE SQLDA FLOATING POINT PROBLEMS
  581.  
  582. To clarify you last note:  I am performing this function
  583. on the workstation.  After I fetch a row I convert it to EBCDIC
  584. and send it using the APPC api interface.
  585. We currently have on order DDCS but do not have it yet.
  586. I want the function to be able to perform as an export
  587. with out having to shell to OS. I could do this by performing an export,
  588. preprocessing the file and file transfering it to the host.
  589.  
  590. I figured it would be more efficient to read each row, process it, and send
  591. it, all within the confines a a single process.
  592.  
  593. I changed all references from float to double but I still am getting the wrong
  594. answer.
  595.  
  596. When I try to allocate the pointer  mysqlda->sqlvar(i).sqldata =
  597.  ( double * ) malloc(sizeof(double));  I get the compiler error
  598. EDC0127:If the operands are pointers they must point to compatible types.
  599. EDC0140: Operand has type _Seg16 pointer to unsigned character.
  600. EDC0140: Operand has type pointer to double.
  601.                               (more)
  602. When I try to allocate the pointer  mysqlda->sqlvar(i).sqldata =
  603.  ( unsigned char * ) malloc(sizeof(double));
  604.  
  605. It compiles but what sqldata points to is not the correct type.
  606. the following produces incorrect results.  Assuming mysqlda is initialized
  607. correctly with the use of DESCRIBE stmnt INTO :*mysqlda.Other fields are OK.
  608.  
  609. double  val;
  610. int i = 0;
  611.  
  612. while ( i < mysqlda->sqld ){
  613.   switch ( mysqlda->sqlvar(i).sqltype ) {
  614.     .
  615.     .
  616.     .
  617.     case 481: {
  618.         val = ( double )*mysqlda->sqlvar(i)->sqldata;
  619.  
  620. val is not the same as what was stored through QM.   Is it me or what ?
  621.  
  622. Dave Lauta  Time Customer Service  OS/2 2.0 programmer
  623.  
  624. ----- OS2DBM CFORUM appended at 20:36:12 on 92/08/11 GMT (by IL78568 at OS2CUST)
  625. Subject: New!! Client/Server Programming with OS/2 2.0
  626. Ref: Append at 12:55:38 on 92/08/11 GMT (by VERSTEEG at UITVM1)
  627.  
  628. I completely agree with Michael Harper as to the value of the earlier
  629. book.  I will be getting this one as soon as it appears in a local
  630. bookstore.
  631.  
  632. With the earlier book, I had a frustrating experience trying to get the
  633. sample code.  After trying unsuccessfully for several months to get it
  634. through our purchasing dept, I was told that it could not be acquired
  635. because of some technical procurement problem.
  636.  
  637. I then ordered it myself and received it a couple of weeks later.
  638.  
  639. Because I am so cheap, I was wondering if there was any alternative method
  640. of acquiring the new sample code (if not prohibited by any kind of
  641. contractual, technical, financial or practical consideration). E.g. having it
  642. available on the OS2 BBS.
  643.  
  644. Anyway, I didn't think it would hurt to ask.
  645.  
  646. Brooks McNeely - Martin Marietta Energy Systems, Inc.
  647.  
  648. ----- OS2DBM CFORUM appended at 21:47:29 on 92/08/11 GMT (by SDAVIS1 at DALVMIC1)
  649. Subject: New!! Client/Server Programming with OS/2 2.0
  650. Ref:     Append at 20:36:12 on 92/08/11 GMT (by IL78568 at OS2CUST)
  651.  
  652. I went through the same frustration of trying to obtain the
  653. sample code diskette for the 1st edition of the book, and eventually
  654. found out that the publisher (VNR) has strict contractual
  655. guidelines that prevent distribution of the code through anyone
  656. but themselves (mail in the order form on the last page).
  657. I doubt that agreement has changed for the second edition.
  658.  
  659. Steve Davis  IBM Dallas
  660.  
  661. ----- OS2DBM CFORUM appended at 22:45:14 on 92/08/11 GMT (by FCOC079 at OS2CUST)
  662. Subject: SQL30080N
  663. Ref: Append at 19:52:17 on 92/08/07 GMT (by IL03484 at OS2CUST)
  664.  
  665. I'm sure you've found an answer by now, but in case not:
  666.  
  667. SQL30080 is a catch-all sqlcode used when access to a remote database fails
  668. for communications reasons.  Query Manager tends to cover up the useful in-
  669. formation for such failures.  To find more information on this error code,
  670. use the DBM command line interface from any OS/2 command prompt, like this:
  671.  
  672. c:\> dbm ? sql30080
  673.  
  674. To get more info about the failure, try this (where "dbname" is the remote
  675. database name):
  676. c:\> dbm start using database dbname
  677.  
  678. This may return NETBIOS/APPC error information.
  679.  
  680. I'm not sure I understand how import/export is involved in your question, but
  681. if you're using them to act on a table in a remote database, they're suscept-
  682. ible to the same error situations as any other program using SQL.
  683.  
  684. Dave Boll
  685.  
  686. ----- OS2DBM CFORUM appended at 03:57:28 on 92/08/12 GMT (by DBSWIFT at SJSVM28)
  687. Subject: 1992 Pan-European IDUG Conference
  688. ************************************************************************
  689.                  International DB2 Users Group (IDUG)
  690.                      1992 Pan-European Conference
  691.                         21-24 September, 1992
  692.              Hotel Inter-Continental, Geneva, Switzerland
  693. ************************************************************************
  694. The 1992 Pan-European International DB2 User Group (IDUG) conference
  695. is scheduled for September 21-24, 1992 in Geneva, Switzerland.
  696. An anticipated 500 DB2 and OS/2 Extended Services users will enjoy an
  697. unsurpassed technical education program.  There are 2.5 days of 35
  698. technical sessions, 3 keynote sessions, an advanced user panel, and
  699. an IBM panel.  The speakers are a combination of users (mostly),
  700. consultants/vendors, and IBMers.  There is an exhibit hall with over
  701. 30 companies showing their DB2-related products.  ("Selling" is strictly
  702. prohibited in the technical sessions.)  Keynote speakers Don Haderle,
  703. Chris Date, and Tony Percy highlight the program.
  704. - See the BBS News and Announcements for detail of the technical program.
  705. - For program information and registration call IDUG:
  706.     Within Europe:     31 2503 28 802 (Hoofddorp, The Netherlands)
  707.                    FAX 31 2503 39 515
  708.     IDUG Headquarters: 312-644-6610 (Chicago, Illinois USA)
  709.                        or 312-527-6777
  710.                    FAX 312-321-6869
  711. - Conference Registration Cost:
  712.     $995 U.S. dollars (USD) postmarked on or before 14 August 1992
  713.          and $1095 (USD) after 14 August
  714.  
  715. Mike Swift - Santa Teresa Executive Briefing Center, San Jose, CA
  716.  
  717. ----- OS2DBM CFORUM appended at 20:05:17 on 92/08/12 GMT (by IL78568 at OS2CUST)
  718. Subject: New!! Client/Server Programming with OS/2 2.0
  719. Ref: Append at 21:47:29 on 92/08/11 GMT (by SDAVIS1 at DALVMIC1)
  720.  
  721. I suspected as much, but thanks for the information.
  722.  
  723. Brooks McNeely - Martin Marietta Energy Systems, Inc.
  724.  
  725. ----- OS2DBM CFORUM appended at 20:38:58 on 92/08/12 GMT (by IL87812 at OS2CUST)
  726. Subject: Database Manager Data Importing
  727.  
  728. Hi there,
  729.  
  730. Does anyone know of any application or utility that allows one to import
  731. data from specified ranges within a spreadsheet into database Manager.
  732.  
  733. I know it's possible to import using the WSF format whereby the data is
  734. presented in a columnar format. Therein lies the problem, I don't want to
  735. rearrange the many spreadsheets we have,to allow the importing to take place.
  736.  
  737. Thanks much,
  738.  
  739. Paul Moran
  740.  
  741. ----- OS2DBM CFORUM appended at 20:53:54 on 92/08/12 GMT (by GBFORNEY at WASVMIC5)
  742. Subject: Database Manager Data Importing
  743. Ref:     Append at 20:38:58 on 92/08/12 GMT (by IL87812 at OS2CUST)
  744.  
  745. 123 for OS/2 has a direct link to the EEDBM. It comes with version
  746. 1.1 of 123 for OS/2 and is called the Datalens. I have used it
  747. quite abit with 1.3.2 but not 2.0/ES1.0.
  748.  
  749. Greg Forney  bigred@vnet.ibm.com
  750.  
  751. ----- OS2DBM CFORUM appended at 22:47:07 on 92/08/12 GMT (by XXNOVA24 at TORVMCOP)
  752. Subject: Database Manager Data Importing
  753. Ref:     Append at 20:53:54 on 92/08/12 GMT (by GBFORNEY at WASVMIC5)
  754.  
  755. It works on 2.0 \ES 1.0 DBM . I tried it.
  756. Regards,
  757.  
  758. Geza Szivos
  759. NOVACOR Chemicals (403)-290-6583
  760. NHO-32 801-7th Ave Calgary, Alberta, CANADA  T2P 2N6
  761.  
  762. ----- OS2DBM CFORUM appended at 08:39:50 on 92/08/13 GMT (by VERSTEEG at UITVM1)
  763. Subject: New!! Client/Server Programming with OS/2 2.0
  764. Ref:     Append at 20:05:17 on 92/08/12 GMT (by IL78568 at OS2CUST)
  765.  
  766. Here is the response from one of the authors:
  767.  
  768.  =================================================================
  769.  Anton, thanks for bringing this to our attention.
  770.  The code cannot be put on a BBS because of legal copyright issues.
  771.  However, it is going to be much easier to order.
  772.  Orders can now be made by Telephone, Fax, or E-mail.
  773.  Credit cards will be accepted. All orders will be mailed out the next day.
  774.  Overnight delivery is available. Please feel free to post this info.
  775.  I hope it will be much easier this time around.
  776.  
  777.  Bob Orfali
  778.  =================================================================
  779.  
  780. Anton Versteeg - ESAT PWS CoC Uithoorn, NL       *** GO OS/2 2.0 ***
  781.  
  782. ----- OS2DBM CFORUM appended at 14:10:25 on 92/08/13 GMT (by DANIELG at RIOVM1)
  783. Subject: USERID and Administrative Authority
  784.  
  785. Colleagues,
  786.  
  787. I'm new to DBM and don't have a manual nearby, so maybe you can answer
  788. the following:
  789.  
  790.     Is there no way to take away Database Authority from USERID?
  791.     If it's possible, how do I do it?
  792.  
  793. Thanks for your responses.  It would be nice if you could respond
  794. directly to my logon DANIELG at RIOVM1.
  795.  
  796. Daniel Godoy.
  797. Brasilia.  Federal Gvt.
  798.  
  799. ----- OS2DBM CFORUM appended at 14:18:37 on 92/08/13 GMT (by IL71329 at OS2CUST)
  800. Subject: SYTOS PLUS V1.32 for OS2 2.0
  801.  
  802. I have been using Sytos Plus v1.32 for backup and recoveries on a IBM
  803. 8590 OKF machine. Needless to say it is as fast as mud. I am testing
  804. a beta copy of SYTOS V1.35.12 and it works much better on the OKF machine
  805. but dies on our new 8590 OLF machine.
  806.  
  807. Becky Epping   Country Companies Ins.  Bloomington, IL
  808.  
  809. ----- OS2DBM CFORUM appended at 14:42:32 on 92/08/13 GMT (by XXCDSX26 at TORVMCOP)
  810. Subject: USERID and Administrative Authority
  811. Ref:     Append at 14:10:25 on 92/08/13 GMT (by DANIELG at RIOVM1)
  812.  
  813. Daniel:
  814.  
  815. Go into the User Profile system and delete the ID.  However,
  816. make sure you have a System Administrator ID defined otherwise
  817. you will lose that privilege.
  818.  
  819. Michael Harper - Cdn Depository for Securities, Ltd
  820.  
  821. ----- OS2DBM CFORUM appended at 16:38:13 on 92/08/14 GMT (by CHODGES at DETVMIC4)
  822. Subject: SYTOS with ES/2 DBM
  823.  
  824. What release of SYTOS supports ES/2 DBM? Are there any other
  825. alternatives besides SYTOS which could be used for backup?
  826.  
  827. Cathy Hodges, BO 153
  828.  
  829. ----- OS2DBM CFORUM appended at 11:56:46 on 92/08/17 GMT (by NJOY at HVTVM) ---
  830. Subject: USERID Authorisation
  831. I have used UPM to set authorisations for users, but when the user
  832. logs on, they cannot access any Queries set up by the administrator
  833. (USERID).
  834. ie if HELEN logs on & selects (from a menu) a query from the
  835. SAMPLE table, the error SQL0204N HELEN.SAMPLE is an undifined name.
  836.  
  837. If HELEN logs on to a database in Query Manager, the tables and queries
  838. in that database are not even available. If the Qualifier is changed
  839. to USERID the tables & queries appear, but the same error is reported
  840. when a query is run.
  841.  
  842. Does anyone have any clues or fixes please ?
  843.  
  844. Nick Joy
  845. Havant, England
  846.  
  847. ----- OS2DBM CFORUM appended at 13:13:35 on 92/08/17 GMT (by IL61500 at OS2CUST)
  848. Subject: DATABASE MGT TRAINING
  849.  
  850. Hello,
  851. Can anyone recommend which IBM OS/2 Database Mgr class they found helpful
  852. for learning SQL programming under DB Mgr Ver 1.3?
  853. Thanks
  854.  
  855. LOU BREIT, Dean Witter Reynolds
  856.  
  857. ----- OS2DBM CFORUM appended at 14:24:42 on 92/08/17 GMT (by DVOGEL at DALVM3)
  858. Subject: USERID Authorisation
  859. Ref:     Append at 11:56:46 on 92/08/17 GMT (by NJOY at HVTVM)
  860.  
  861. In your SQL statments you will need to explicitly qualify the table
  862. names.  For example if you have the following query coded today:
  863.  
  864.     SELECT * FROM STAFF
  865.  
  866. you will have to change it to:
  867.  
  868.     SELECT * FROM USERID.STAFF
  869.  
  870. Now anyone with the proper authorization will be able to run your
  871. query against the USERID.STAFF table.  When you don't fully qualify
  872. the table name, DBM will use the currently logged on userid as the
  873. default qualifier.
  874.  
  875. Don Vogel - Skill Dynamics an IBM Company
  876.  
  877. ----- OS2DBM CFORUM appended at 15:34:31 on 92/08/17 GMT (by DBPARKER at SJSVM28)
  878. Subject: USERID Authorisation
  879. Ref:     Append at 11:56:46 on 92/08/17 GMT (by NJOY at HVTVM)
  880.  
  881. As you probably know, USERID is the default logon for UPM when the DBM
  882. is installed. Therefore, USERID owns everything. There are several ways
  883. around this for the other users. One is to add a parameter to the
  884. start Query Manager statement or ICON to use the correct Qualifier,
  885. or, create a default PRofile to do the same, or, to create a view
  886. with the user's id.
  887.  
  888. George Parker
  889.  
  890. ----- OS2DBM CFORUM appended at 15:36:44 on 92/08/17 GMT (by VERSTEEG at UITVM1)
  891. Subject: USERID Authorisation
  892. Ref:     Append at 11:56:46 on 92/08/17 GMT (by NJOY at HVTVM)
  893.  
  894. If the query was created under userid GEORGE, then the menu action
  895. that HELEN executes would have to be RUN QUERY GEORGE.SAMPLE
  896. Also note that when you save QM objects that are intended to be
  897. executed by others you'll need to save them with the 'share' option.
  898. (this is an option on the 'save' popup)
  899. Finally, you can use 'change qualifier for lists' whenever a list
  900. window is displayed, to change the list qualifier to GEORGE
  901. in my example.
  902.  
  903. Anton Versteeg - ESAT PWS CoC Uithoorn, NL  *** 1,000,000 OS/2 2.0 ***
  904.  
  905. ----- OS2DBM CFORUM appended at 18:08:03 on 92/08/17 GMT (by INTC7P04 at DALVM41B)
  906. Subject: DBM STOPS WORKING AFTER A TIME.
  907.  
  908. I have an 8580-161, 16M, running OS/2 2.0 with latest fixes, ES Comm.
  909. Mngr., Adv. LS LAN Req., TCP/IP 1.2.1, and of course ES DBM standalone
  910. and remote services.
  911.  
  912. I issue a STARTDBM.EXE from the STARTUP.CMD immediatly after starting
  913. the LAN Req. and logging on to our local LAN Domain.  Comm. Mngr. is
  914. started from the startup folder. The TCPSTART.CMD is called after the
  915. STARTDBM.EXE.
  916.  
  917. As DBM is starting I get the three or four beeps and the message that
  918. the DBM proccessing is complete and the rest of the STARTUP.CMD finishes.
  919. I can then start Query Manager and work with the databases that are
  920. stored on my workstation. I currently do not access any remote DBs.
  921.  
  922. The above scenario works fine for any number of IPL's during the week.
  923. But then on the next IPL, DBM will not start. No error messages, no
  924. nothing. The harddrive runs for 5 seconds or so, I DO NOT hear the three
  925. or four beeps, and the STARTUP.CMD stops dead. The window does not close,
  926. and the command listed for the window is STARTDBM.EXE.  I can not close
  927. the window even with PSPM or KILLIT. The normal operation of the work-
  928. station does not appear to be affected. I have tried reordering the
  929. STARTUP.CMD. I have tried a START /C STARTDBM.CMD, no go. I have tried
  930. NOT starting the other services that I normaly run, same result. The
  931. only cure that I have found is to REINST the DBM, this is very tiresome.
  932. I have been doing this for 2 months now. I will appreciate any help.
  933.  
  934. Thank you,
  935. Al Connor  DALVM41B(INTC7P04)   ProVantage Superlab, Dallas.
  936.  
  937. ----- OS2DBM CFORUM appended at 13:04:30 on 92/08/18 GMT (by WINK at JAKVM001)
  938. Subject : OS/2 DBM implementation
  939. I hope I put this question in the right forum.  My colleague here has several
  940. questions re: OS/2 DBM implementation.  Appreciate very much any input.
  941. Thank you before hand.
  942.  
  943. --------------------------------------------------------------------------------
  944.  
  945. My customer Bank EXIM is currently testing the DRDA on PS/2 and AS/400
  946. level. They also decided to have Windows based applications for their
  947. DOS front end WS. They have several queries for OS/2-Windows. Would you
  948. be kind to help me on this ? Appreciate your support very much.
  949.  
  950. Q :
  951. 1. The manuals stated that OS/2 application enabler supports
  952.     Windows 3.0. Is Windows 3.1 supported ? Will IBM support
  953.     new release of MS Windows?
  954.  
  955. 2. It is also stated that Windows Database Client Applications must
  956.    be written using Microsoft C Optimizing Compiler V.6.
  957.    Microsoft has release V.7 . Is this supported ?
  958.  
  959.    My customer is actually coding his Windows program in Borland C++.
  960.    Is it feasible to use Microsoft Compiler to code DBM routines,
  961.    then link them with their Borland program ?
  962.  
  963. 3. My customer also intend to use the Database Application Remote
  964.    Interface (ARI) concepts to code the programs, which is supported
  965.    in Windows. Do you have any working sample program to run ?
  966.  
  967. WINK at JAKVM001
  968.  
  969. ----- OS2DBM CFORUM appended at 14:07:53 on 92/08/18 GMT (by UBIQUITY at AUSVM1)
  970. Subject: OS/2 DBM implementation
  971. Ref:     Append at 13:04:30 on 92/08/18 GMT (by WINK at JAKVM001)
  972.  
  973. The support statements to which you refer are really testing statements.
  974. We tested with Windows 3.0 and MS C 6.0, so we cannot assure you that
  975. the same tests would work with other versions.  I do not know
  976. of any particular reason why you should not be able to use the later
  977. versions.  However, if you do so, it will be at your own risk.
  978.  
  979. Your note makes it seem as if your customer wants to use the ARI
  980. in connection with AS/400.  This will not work.  ARI is only supported
  981. for OS/2 servers.
  982.  
  983. Richard D. Hoffman
  984.  
  985. ----- OS2DBM CFORUM appended at 14:14:55 on 92/08/18 GMT (by VERSTEEG at UITVM1)
  986. Subject: OS/2 DBM implementation
  987. Ref:     Append at 14:07:53 on 92/08/18 GMT (by UBIQUITY at AUSVM1)
  988.  
  989. The Database Manager Programmers Guide and Ref. contains ARI
  990. sample code.
  991.  
  992. Anton Versteeg - ESAT PWS CoC Uithoorn, NL  *** 1,000,000 OS/2 2.0 ***
  993.  
  994. ----- OS2DBM CFORUM appended at 19:24:45 on 92/08/18 GMT (by TCC3824 at OS2CUST)
  995. Subject: SYTOS with ES/2 DBM
  996. Ref: Append at 16:38:13 on 92/08/14 GMT (by CHODGES at DETVMIC4)
  997.  
  998. I use sytos on my 1.3 environment.  However, it does not work well
  999. with DBM.  We have to make sure the DB is not being accessed
  1000. when Sytos backs up the DB server.  If you have a job running and sytos
  1001. goes to backup the machine it will blow up the DB.
  1002. This will most likely be the same with ES.  However I have not been able
  1003. to move to ES because of know problem with inserting >200,000 rows in a
  1004. table.  Still waiting on a fix for this.
  1005.  
  1006. Kevin McConnell   512-338-7457  Continuum    Austin Tx
  1007.  
  1008. ----- OS2DBM CFORUM appended at 21:45:42 on 92/08/18 GMT (by DGDANGEL at NYCVMIC1)
  1009. Subject: SQL5122N received after migrating from 1.3 to 2.0.
  1010.  
  1011. If someone has the TARRR Package or the UNPROT.CMD can you please
  1012. send it to me. I have a client that has a database that is copy
  1013. protected that we need to access. Thank you.
  1014.  
  1015. DGDANGEL/NYCVMIC1 or DGDANGEL@VNET.IBM.COM
  1016. Doug D'Angelo
  1017.  
  1018. ----- OS2DBM CFORUM appended at 23:10:35 on 92/08/18 GMT (by GBFORNEY at WASVMIC5)
  1019. Subject: SQL5122N received after migrating from 1.3 to 2.0.
  1020. Ref:     Append at 21:45:42 on 92/08/18 GMT (by DGDANGEL at NYCVMIC1)
  1021.  
  1022. Done.
  1023.  
  1024. Greg Forney  bigred@vnet.ibm.com
  1025.  
  1026. ----- OS2DBM CFORUM appended at 02:18:03 on 92/08/19 GMT (by LNK1SM3 at MARTLINK)
  1027. Subject: DATABASE MGT TRAINING
  1028. Ref: Append at 13:13:35 on 92/08/17 GMT (by IL61500 at OS2CUST)
  1029.  
  1030. I will see what I can find and will respond in a couple of days.
  1031. Thank you for using the OS2BBS.
  1032.  
  1033. JAM
  1034.  
  1035. ----- OS2DBM CFORUM appended at 11:18:37 on 92/08/19 GMT (by NJOY at HVTVM) ---
  1036. Subject: USERID Authorisation
  1037. Ref:     Append by NJOY at HVTVM at 11:56:46 on 92/08/17 GMT.
  1038. A note of thanks to the replies.
  1039. Qualifying the Query with USERID.TABLE worked.
  1040. Thanks again.
  1041. Nick Joy.
  1042.  
  1043. ----- OS2DBM CFORUM appended at 18:41:47 on 92/08/19 GMT (by WAK1015 at OS2CUST)
  1044. Subject: QUERY MANAGER
  1045.  
  1046. I JUST INSTALLED OS/2 2.0 AND DATABASE MANAGER FROM ES 1.0.  THE INSTALLATION W
  1047. ENT THROUGH WITH NO ERRORS.  WHEN I TRY TO GET INTO QUERY MANAGER I GET A SYS20
  1048. 70 ERROR.  I HIT THE RADIO BUTTON FOR "DISPLAY REGISTER INFORMATION" AND I GET
  1049. "SEGMENT COULD NOT DEMAND LOAD THE APPLICATION SEGMENT. QRWC->QRWQ IS IN ERROR.
  1050. ETC."- SYS202.  WHAT COULD BE THE PROBLEM? IF YOU NEED ANY OTHER INFORMATION
  1051. PLEASE LET ME KNOW.  I HAVE INSTALLED DATABASE MANAGER AND QUERY MANAGER ON OTH
  1052. ER SYSTEMS BEFORE WITH NO PROBLEM.
  1053.  
  1054. ----- OS2DBM CFORUM appended at 19:12:30 on 92/08/19 GMT (by WAK1015 at OS2CUST)
  1055. Subject: QUERY MANAGER MONOSPACED FONTS
  1056.  
  1057. HOW DO WE CHANGE THE FONT TO SYSTEM MONOSPACED IN THE QUERY MANAGER OF EXTENDED
  1058.  SERVICES?
  1059. THERE IS AN OPTION IN EXT. SERVICES FOR DATABASE MANAGER: CONFIGURING SETUPS FO
  1060. R DATABASES, WHICH HAS A "FONT" SETTING. BUT EVEN AFTER CHANGING AND SAVING TH
  1061. IS, WHEN RETURNING TO THE QUERY MANAGER THE FONTS ARE STILL PROPORTIONAL.
  1062.  
  1063. ----- OS2DBM CFORUM appended at 19:42:10 on 92/08/19 GMT (by VENDENA at DALVM41B)
  1064. Subject: QUERY MANAGER
  1065. Ref:     Append at 18:41:47 on 92/08/19 GMT (by WAK1015 at OS2CUST)
  1066.  
  1067. How much RAM is on your machine?  If other programs are using RAM,
  1068. try disabling them and then try running QM.
  1069.  
  1070. Dena Laterza
  1071.  
  1072. ----- OS2DBM CFORUM appended at 09:23:57 on 92/08/20 GMT (by VERSTEEG at UITVM1)
  1073. Subject: QUERY MANAGER MONOSPACED FONTS
  1074. Ref:     Append at 19:12:30 on 92/08/19 GMT (by WAK1015 at OS2CUST)
  1075.  
  1076. The QM proportional font cannot be changed. Sorry.
  1077.  
  1078. Anton Versteeg
  1079.  
  1080. ----- OS2DBM CFORUM appended at 09:25:30 on 92/08/20 GMT (by F17 at TELVM1) ---
  1081. Subject: Unsuccessful Logon using RDS with APPN
  1082.  
  1083. I am trying to set up a LAN with an OS2 DBM client and DBM Server
  1084. communicating via APPN links. One workstation is defined to Communication
  1085. manager as a Network Node and the other as an End Node. I succeeded to
  1086. execute a CPI-C demo between the two workstations so I am quite confident
  1087. that my CM configurator definitions are valid.
  1088. I then successfully perform local logons for USERID (with the identical
  1089. passwords) at both workstations and then execute STARTDBM at both
  1090. workstations.
  1091. MY problem arises when I issue START USING DATABASE DAVID where DAVID is
  1092. defined as a remote database at workstation DAVID.
  1093. UPM notifies me that I have an unsuccessful LOGON ATTEMPT at workstation
  1094. DAVID. THe help gives several possible explanations. I feel the most
  1095. likely possibility is "You are trying to access a remote workstation
  1096. that does not exist or has not been defined".
  1097. Here are my directory definitions on the client:
  1098. NODE DIRECTORY:
  1099. Workstation ALIAS = DAVID
  1100. PROTOCOL=APPN
  1101. NETWORK ID= ILIBM00
  1102. PARTNER LOGICAL UNIT=FTQCN03
  1103. Transmission SERVICE MODE =#BATCH
  1104.  
  1105.  Database Directory:
  1106. Database ALias = DAVID
  1107. DATABASE NAME =  SAMPLE
  1108. WORKSTATION ALIAS = DAVID
  1109. DATAbase TYPE     =OS2 DBM VER 3.00
  1110. Directory entry type = Remote
  1111.  
  1112. There is an SNA LINK defined between the two workstations. No TP
  1113. is defined for DATABASE MANAGER or UPM.
  1114. Can any offer any ideas or point me in the right direction.
  1115. Thank you
  1116.  
  1117. David Berk
  1118.  
  1119. ----- OS2DBM CFORUM appended at 11:18:52 on 92/08/20 GMT (by F17 at TELVM1) ---
  1120. Subject: Unsuccessful Logon using RDS with APPN
  1121. Ref:     Append at 09:25:30 on 92/08/20 GMT (by F17 at TELVM1)
  1122.  
  1123. I kept trying and made a bit of progress. I changed the node
  1124. directory definition by using the the CONNECTION_NETWORK name
  1125. of the server instead of the FQ_CP_NAME and apparently succeeded
  1126. to perform a successful LOGON but received a communication manager
  1127. error "0003-00000004" which "indicates that a conversation with
  1128. the database server could not be allocated". I assume that I am
  1129. missing some SNA configuration definitions so I repeat my request
  1130. for some help in this area.
  1131. Thanks
  1132. David Berk
  1133.  
  1134. ----- OS2DBM CFORUM appended at 13:34:51 on 92/08/20 GMT (by VERSTEEG at UITVM1)
  1135. ..... OS2DBM CFORUM modified at 15:03:50 on 92/08/20 GMT (by VERSTEEG at UITVM1)
  1136. Subject: Sytos for OS/2 2.0
  1137.  
  1138. Sytron just announced that their OS/2 2.0 version of Sytos
  1139. will be available the end of this month.
  1140. | PS. includes support for HPFS and EA's
  1141. | standard disclaimers apply. (no ties etc.)
  1142.  
  1143. Anton Versteeg - ESAT PWS CoC Uithoorn, NL  *** 1,000,000 OS/2 2.0 ***
  1144.  
  1145. ----- OS2DBM CFORUM appended at 13:53:50 on 92/08/20 GMT (by MCCAULEY at DALVM3)
  1146. Subject: DATABASE MGT TRAINING
  1147. Ref:     Append at 13:13:35 on 92/08/17 GMT (by IL61500 at OS2CUST)
  1148.  
  1149. Lou,
  1150.  
  1151. Skill Dynamics (the IBM Education Company) offers two courses on Database
  1152. Manager Programming:  P1048 and P1024.  P1048 uses OS/2 2.0 and Extended
  1153. Services.  Public classes are regularly scheduled for P1048, and private
  1154. classes (usually travelled to your location or your local IBM office)
  1155. can also be arranged.  P1024 uses Extended Edition 1.3, and is now only
  1156. available as a private class.
  1157.  
  1158. If you don't mind getting a few bits of information that you don't need,
  1159. and working with OS/2 2.0 for your Base Operating System in class, you
  1160. should probably just go ahead and take P1048, even if you are still
  1161. working with 1.3 right now.  Of course, if you have several people who
  1162. need to take the course, it might be worthwhile to look into setting up a
  1163. private class of either P1048 or P1024 for your company.
  1164.  
  1165. Here are the dates on which we currently have P1048 scheduled for the
  1166. rest of this year:  9/21-23, 10/12-14, and 11/11-13.  Of course, your
  1167. local IBM representative can help you with finding the most up-to-date
  1168. schedule, location, and price information, and arranging a private class.
  1169.  
  1170. Thanks,
  1171.  
  1172. Angie McCauley
  1173. Skill Dynamics(TM), an IBM Company
  1174. Personal Systems Segment - OS/2
  1175.  
  1176. ----- OS2DBM CFORUM appended at 22:44:36 on 92/08/20 GMT (by FCOC079 at OS2CUST)
  1177. Subject: Unsuccessful Logon using RDS with APPN
  1178. Ref: Append at 11:18:52 on 92/08/20 GMT (by F17 at TELVM1) ---
  1179.  
  1180. David,
  1181.  
  1182. I think you'll need a TP definition at the DBM server so that incoming
  1183. APPC attaches for DBM can be resolved.  In the .NDF file on your DB server,
  1184. add the following:
  1185.  
  1186.  DEFINE_TP  SNA_SERVICE_TP_NAME(X'07',6DB)
  1187.             DESCRIPTION(SQLAPPLA Profile for DBM-RDS)
  1188.             FILESPEC(C:\SQLLIB\SQLCIAA.EXE)
  1189.             CONVERSATION_TYPE(BASIC)
  1190.             CONV_SECURITY_RQD(YES)
  1191.             SYNC_LEVEL(NONE)
  1192.             TP_OPERATION(NONQUEUED_AM_STARTED)
  1193.             PROGRAM_TYPE(BACKGROUND)
  1194.             RECEIVE_ALLOCATE_TIMEOUT(100);
  1195.  
  1196.  DEFINE_TP  SNA_SERVICE_TP_NAME(X'07',6SN)
  1197.             DESCRIPTION(SQLSNMGR Profile for DBM-RDS)
  1198.             FILESPEC(C:\SQLLIB\SQLCNSM.EXE)
  1199.             CONVERSATION_TYPE(BASIC)
  1200.             CONV_SECURITY_RQD(YES)
  1201.             SYNC_LEVEL(NONE)
  1202.             TP_OPERATION(NONQUEUED_AM_STARTED)
  1203.             PROGRAM_TYPE(BACKGROUND)
  1204.             RECEIVE_ALLOCATE_TIMEOUT(100);
  1205.  
  1206. I think you'll also need to go into Comm. Mgr. configuration on the server
  1207. and set a conversation-security entry (under SNA feature profiles/SNA network
  1208. definitions ...) which tells Attach Manager to go to UPM for incoming attach
  1209. security checks.
  1210.  
  1211. Dave Boll
  1212.  
  1213. ----- OS2DBM CFORUM appended at 00:11:41 on 92/08/21 GMT (by UDSS013 at OS2CUST)
  1214. Subject: QUERY MANAGER
  1215.  
  1216. |  "SEGMENT COULD NOT DEMAND LOAD THE APPLICATION SEGMENT. QRWC->QRWQ IS IN  |
  1217. |  ETC."- SYS202.  WHAT COULD BE THE PROBLEM? IF YOU NEED ANY OTHER INFORMAT |
  1218. |  PLEASE LET ME KNOW.  I HAVE INSTALLED DATABASE MANAGER AND QUERY MANAGER  |
  1219. |  ER SYSTEMS BEFORE WITH NO PROBLEM.                                        |
  1220.  
  1221. This isn't much of an answer, but I got that error message ONCE.  I rebooted
  1222. and the problem did not recur.   Since I had no real diagnostics, I never
  1223.  
  1224. Gary Murphy
  1225.  
  1226. ----- OS2DBM CFORUM appended at 13:17:50 on 92/08/21 GMT (by WAK1015 at OS2CUST)
  1227. Subject: QUERY MANAGER
  1228.  
  1229. I REBOOTED MY MACHINE AND THE ERROR IS STILL THERE.  I HAVE 17 MEG OF MEMORY AN
  1230. D I AM RUNNING NOTHING ELSE EXCEPT QUERY MANAGER.
  1231.  
  1232. ----- OS2DBM CFORUM appended at 13:32:06 on 92/08/21 GMT (by VERSTEEG at UITVM1)
  1233. Subject: QUERY MANAGER
  1234. Ref:     Append at 13:17:50 on 92/08/21 GMT (by WAK1015 at OS2CUST)
  1235.  
  1236. Is SQLLIB\DLL in your LIBPATH in CONFIG.SYS?
  1237.  
  1238. Anton Versteeg - ESAT PWS CoC Uithoorn, NL  *** 1,000,000 OS/2 2.0 ***
  1239.  
  1240. ----- OS2DBM CFORUM appended at 15:09:25 on 92/08/21 GMT (by EEBERT at STUTVM3)
  1241. Subject: SQL1042N - Unexpected System Error
  1242. Ref:     Append at 01:45:30 on 92/08/06 GMT (by CHALTAIN at FSHVMFK1)
  1243. We have the SQL1042N failure on two machines. It started on HPFS formated
  1244. machines. At the first times we did formatting and reinstalling without
  1245. detailed checks. At the last occurences we did CHKDSK /F:3 due to errors
  1246. on SQL datasets and  OS2 log files. On one machine we could not fix the
  1247. logfiles i.e. all was fine after running it twice but booting OS/2 2.0
  1248. from the harddisk was already sufficient to cause allocation errors for
  1249. the OS2 log. In this case we had to format the boot partition. For the
  1250. other machine reinstalling OS/2, ES and all the application was sufficien
  1251. t. One of the recommendations we got was to use FAT. We did and again the
  1252. machine failed. CHKDSK does not display any errors. We exchanged net.acc
  1253. as suggested. We still cannot start DBM. Of course we don't like the idea
  1254. of formatting but what bothers more is that we do not understand what
  1255. causes this failure. We did this job in the last week 3 times for 2
  1256. machines. Since we have similar installations with no failure we assume
  1257. that the failure is related to the manner the machines are used. Both
  1258. machines are used in a marketing area. One of the tasks is to demonstrate
  1259. DBM with a User written GUI. Databases and tables are therefor created,
  1260. bound and dropped very often. We are looking for some suggestions how we
  1261. can prevent the failure. Up to now we got the failure only at STARTDBM
  1262. after a cold start, never for a running machine.
  1263. Who can help ?
  1264. Ekkehard Ebert
  1265.  
  1266. ----- OS2DBM CFORUM appended at 15:58:03 on 92/08/21 GMT (by DYEAGER at BCRVM1)
  1267. Subject: Database Mgr integrity if system crashes?
  1268.  
  1269. We are having an application developed for OS/2 that uses the database
  1270. mgr for storing results of measurements taken from lab instruments.
  1271. The app is being developed under OS/2 1.3 but will probably be used
  1272. under 2.0 as well.
  1273.  
  1274. This is important data.  How possible is it for OS/2 DBM to corrupt my
  1275. database files due to a power outage or some other unforeseen problem?
  1276. We are asking the developers to do a commit at various points during
  1277. the program execution, and I am willing to loose all data taken since
  1278. the last commit.  But, should I also be concerned that a system
  1279. problem could leave me with an unusable database?
  1280.  
  1281. Dave Yeager
  1282.  
  1283. ----- OS2DBM CFORUM appended at 17:10:46 on 92/08/21 GMT (by GBFORNEY at WASVMIC5)
  1284. ..... OS2DBM CFORUM modified at 17:33:14 on 92/08/21 GMT (by GBFORNEY at WASVMIC5)
  1285. Subject: Database Mgr integrity if system crashes?
  1286. Ref:     Append at 15:58:03 on 92/08/21 GMT (by DYEAGER at BCRVM1)
  1287.  
  1288. The only truly safe reply is to "Never say Never" and plan your
  1289. installation accordingly. You can postulate things from the sublime
  1290. to the ridiculous and evaluate the cost/benefit of protecting from
  1291. same. Suppose a meteor strikes the office with the DBM server and
  1292. reduces the machine to dust?
  1293.  
  1294. But coming back to earth, the presence of "bugs" or "design shortcomings"
  1295. (choice depends on your point of view!) has been studied alot in
  1296. the area of recovery from abrupt system outages. A Lot of very good work
  1297. has been done to harden the DBM from such problems. My professional interest
  1298. is in using the DBM to store Pharmaceutical production records under
  1299. FDA validation requirements and you can be sure that I applied alot
  1300. of paranoia to my investigation. I got alot of great help from the DBM
  1301. developers and the Boca lab both from OS/2 and PS/2 folks.
  1302.  
  1303. My checklists (remember my paranoia!):
  1304.  
  1305. 1) Use ES 1.0. (the latest and greatest keeps getting better and better)
  1306.  
  1307. 2) Use a UPS. This should go without saying if you are truly mission-
  1308.    critical.
  1309.  
  1310. 3) Use Forward recovery. Have the user exit back up the log files across
  1311.  a LAN to a remote machine (remember that meteor?).
  1312.  
  1313. At this point, I really think someone is approaching my level of hysteria
  1314. if they still feel uncomfortable, but short of relocating your machine to
  1315. Iron Mountain, here's some more precautions you can consider:
  1316.  
  1317. 4) Use a SCSI drive. They have a latency in their power-down that helps.
  1318.  
  1319. 5) Use a FAT partition of at least 128Mb. This best matches the DBM's
  1320.   data model to the file system.
  1321.  
  1322. 6) Use fixed length data. Avoid varchar *if* possible. Don't panic if
  1323.    not possible.
  1324.  
  1325. There are also many things I see people do, that I question whether
  1326. they understand what it is really buying them.
  1327.  
  1328. RAID disks protect only from a physical disk crash. It does not
  1329. protect from a system failure occurring elsewhere that catches the
  1330. DBM in a compromising position. Inconsistent data is Inconsistent
  1331. data. Same thing applies for disk mirroring. Mind you I have nothing
  1332. against either and if you can afford them, be my guest. But a really
  1333. safe system will use Forward recovery also making these two a convenience,
  1334. not a necessity.
  1335.  
  1336. Greg Forney  bigred@vnet.ibm.com
  1337.  
  1338. ----- OS2DBM CFORUM appended at 18:07:37 on 92/08/21 GMT (by DYEAGER at BCRVM1)
  1339. Subject: Database Mgr integrity if system crashes?
  1340. Ref:     Append at 17:10:46 on 92/08/21 GMT (by GBFORNEY at WASVMIC5)
  1341.  
  1342. Thanks for the tips.  Here's my level of paranoia...
  1343.  
  1344. 1.  I am willing to accept the risk of catastrophic failures due to fires
  1345.     and/or meteors, thus can accept that the backup system is actually to
  1346.     a duplicate hardfile on the SAME PS/2 (LAN not required).
  1347.  
  1348. 2.  Do I need a UPS?  The question in my mind becomes, "is there ANY time
  1349.     during normal ES/DBM operations that a power interrupt could result
  1350.     in a contaminated database?"  If so, then UPS is needed.  This brings
  1351.     to mind the comment from a Boca employee who was about to be moved
  1352.     from a window office and complained that if he couldn't see outside,
  1353.     he would have no way to predict when a storm was about to hit so
  1354.     wouldn't know how often to save up his VM file.
  1355.  
  1356. Dave Yeager
  1357.  
  1358. ----- OS2DBM CFORUM appended at 18:31:16 on 92/08/21 GMT (by GBFORNEY at WASVMIC5)
  1359. Subject: Database Mgr integrity if system crashes?
  1360. Ref:     Append at 18:07:37 on 92/08/21 GMT (by DYEAGER at BCRVM1)
  1361.  
  1362. You asked a fairly paranoid question in # 2 emphasizing ANY and using
  1363. "could" so the answer to you is yes. But before you go get a UPS,
  1364. consider that the odds of you getting bitten are similar to your
  1365. machine falling prey to a direct bolt from above. Assuming that
  1366. you have used Forward Recovery, you'll still be OK unless that
  1367. fails too. Now that you have convinced yourself that maybe a UPS
  1368. really isn't needed, go get one anyway. It's such a standard thing to
  1369. do for data safety, you'd be foolish not to.
  1370.  
  1371. Greg Forney  bigred@vnet.ibm.com
  1372. aka Chicken Little
  1373.  
  1374. ----- OS2DBM CFORUM appended at 18:54:29 on 92/08/21 GMT (by LFISCHER at BLDVM1)
  1375. Subject: Database Mgr Charting Facility
  1376.  
  1377. We had been developing an OS/2 application which provides a business
  1378. graphics charting facility for data stored in OS/2 Database Manager.
  1379. The application uses the capabilities of CHRTAPI from OS/2 Tools.
  1380. Work on our project has been stopped due to "changing business needs".
  1381. I have been asked to see if there is any interest in funding the
  1382. completion of this application.  Most but not all of the functions of
  1383. CHRTAPI have been implemented.  Approximately four person months of
  1384. effort is needed to complete the added functions and to develop a users'
  1385. guide.  If there is interest in funding such an effort please let me
  1386. know with a note direct to me - LFISCHER at BLDFE2.
  1387.  
  1388.                      Regards, Larry Fischer
  1389.  
  1390. ----- OS2DBM CFORUM appended at 19:59:11 on 92/08/21 GMT (by SRPIE05 at OS2CUST)
  1391. Subject: Book Manager Documentation for ES
  1392.  
  1393.     Does anyone know if there are softcopy pubs available for Extended
  1394. Services?  They were released for LAN Services but I have not seen them for
  1395. ES yet.  Thanks.
  1396.  
  1397. Thanks
  1398.  
  1399. Thane Smith - Salt River Project
  1400.  
  1401. ----- OS2DBM CFORUM appended at 09:47:31 on 92/08/23 GMT (by F17 at TELVM1) ---
  1402. Subject: Unsuccessful Logon using RDS with APPN
  1403. Ref:     Append at 22:44:36 on 92/08/20 GMT (by FCOC079 at OS2CUST)
  1404.  
  1405. DAVID THANK YOU FOR YOUR REPLY
  1406.  
  1407. David Berk
  1408.  
  1409. ----- OS2DBM CFORUM appended at 14:33:12 on 92/08/24 GMT (by MRHI at CHVM1) ---
  1410.  
  1411. Subject: SYS3175 error when creating an new database
  1412.  
  1413. I installed the extended services of OS2 V2.0. Now, whenever
  1414. I try to create a new database (using Query Manager or the
  1415. restore command) a system error occurs:
  1416.  
  1417. SYS3175: A program generated an access violation at xxxxxxx.
  1418. SQLC.DLL 0003
  1419.  
  1420. The error keeps persisting after several deinstallations and re-
  1421. installations of the database manager.
  1422.  
  1423. Is there anyone who has encountered the same problem?
  1424. Thanks,
  1425.          M. Rhiner, AD-Support Switzerland
  1426.  
  1427. ----- OS2DBM CFORUM appended at 17:26:12 on 92/08/24 GMT (by EEBERT at STUTVM3)
  1428. Subject: SQL1042N - Unexpected System Error
  1429. Ref:     Append at 15:09:25 on 92/08/21 GMT (by EEBERT at STUTVM3)
  1430. it happened once more... We now did a reinst to remove DBM from drive C:
  1431. and reinstalled DBM on drive D:. After booting STARTDBM already fails
  1432. this indicates the something very important muist have been left over
  1433. and not refreshed during the removal and reinstallation does this trigger
  1434. any help ?
  1435. Ekkehard Ebert
  1436.  
  1437. ----- OS2DBM CFORUM appended at 18:55:10 on 92/08/24 GMT (by EICHLER at FSHVMCC)
  1438. Subject: SQL-5122N ERROR
  1439. MY QUERY MANAGER CRASHED DURING A DEL FILE IMPORT AND AFTER A REBOOT
  1440. WOULD NOT ALLOW FOCUS TO BE BROUGHT TO THE LOGON PANEL.  I RELOADED
  1441. THE DATABASE MANAGER AND NOW NEED THE UNPROTECT PROGRAM TO USE MY
  1442. DATABASE FILES.  COULD SOMEONE PLEASE SEND A COPY OF THE UNPROTECT
  1443. PROGRAM TO A DESPERATE SOUL AT FSHVMCC(EICHLER)
  1444. THANK YOU!!
  1445.  
  1446. ----- OS2DBM CFORUM appended at 18:55:34 on 92/08/24 GMT (by CHALTAIN at FSHVMFK1)
  1447. ..... OS2DBM CFORUM modified at 14:15:49 on 92/08/25 GMT (by CHALTAIN at FSHVMFK1)
  1448. Subject:  sqlacall( SQLA_OPEN, .... using up file handles
  1449.  
  1450. || Changing the number of maximum open files in the database
  1451. || configuration panel did the trick.
  1452.  
  1453. | I had a thought!  Is it the case that whenever you do a "SELECT" from a
  1454. | new table, a file handle is opened?  If so, how can I close those
  1455. | handles or get more than 20 file handles out of Microsoft C 6.0?
  1456.  
  1457. I have found that the call
  1458.      sqlacall( SQLA_OPEN, 1, 0, 0, 0L);
  1459. uses up an available file handle that the call
  1460.      sqlacall( SQLA_CLOSE, 1, 0, 0, 0L);
  1461. does not free up!
  1462.  
  1463. I am using a set of functions provided to me by another programmer in C.
  1464. I tracked down the problem because as I loop around updating and
  1465. querying the database, I would use up all of my file handles.  The call
  1466. to fcloseall() does not free up the handles, and does not return an
  1467. error.  The call to strerror( errno), gives me the message  "No available
  1468. file handles."  (or something to that effect).  Shouldnt this resource
  1469. be freed up?
  1470.  
  1471. Please let me know if I could provide more information.  Unfortunately,
  1472. I am a bit ignorant of this Database Manager programming, and I am not
  1473. sure what information is pertinent!  Thanks!
  1474.  
  1475. Christopher J Chaltain
  1476.  
  1477. ----- OS2DBM CFORUM appended at 20:30:20 on 92/08/24 GMT (by GBFORNEY at WASVMIC5)
  1478. Subject: SQL-5122N ERROR
  1479. Ref:     Append at 18:55:10 on 92/08/24 GMT (by EICHLER at FSHVMCC)
  1480.  
  1481. It's part of the TARRR package on the internal use only disk OS2TOOLS.
  1482.  
  1483. Greg Forney  bigred@vnet.ibm.com
  1484.  
  1485. ----- OS2DBM CFORUM appended at 23:48:34 on 92/08/24 GMT (by KDROMREL at SFOVMIC1)
  1486. Subject: SQL1042N - Unexpected System Error
  1487. Ref:     Append at 17:26:12 on 92/08/24 GMT (by EEBERT at STUTVM3)
  1488.  
  1489. I believe I heard somewhere that SQL1042N's during a STARTDBM are
  1490. primarily due to problems in the NET.ACC file.  You may wish to restore
  1491. this from a previously backed up version, or use the one located in
  1492. IBMLAN/INSTALL (assuming you're using LAN Requester/Server).  The folks
  1493. in Defect Support can probably help make sure that you get the right
  1494. stuff.
  1495.  
  1496. Kelvin D. Romrell
  1497.  
  1498. ----- OS2DBM CFORUM appended at 00:01:40 on 92/08/25 GMT (by KDROMREL at SFOVMIC1)
  1499. Subject: Database manager crashing after maximizing
  1500. Ref:     Append at 16:30:13 on 92/08/03 GMT (by CGNA106 at OS2CUST)
  1501.  
  1502. I looked in the problem database, and it does look like there is a
  1503. problem similar to this.  I suggest you call Defect Support
  1504. (1-800-237-5511) to officially report the problem.  Also mention to
  1505. them that they might want to see if APAR JR06054 fixes the problem.
  1506. I'm not sure when this fix will be available on a CSD/Service Packet.
  1507.  
  1508. Kelvin D. Romrell
  1509.  
  1510. ----- OS2DBM CFORUM appended at 00:15:45 on 92/08/25 GMT (by KDROMREL at SFOVMIC1)
  1511. Subject: SQLCODE 1013
  1512. Ref:     Append at 20:33:48 on 92/08/05 GMT (by GSCHOI at RHQVM16)
  1513.  
  1514. I had a similar problem on OS/2 1.3.  If you have an OS/2 Window open
  1515. and are in directory SQL00001, then a Drop DB would fail and my catalog
  1516. structure would be messed up.  This problem has been fixed in OS/2 2.0.
  1517.  
  1518. Once we changed directories back to the root directory, we were able
  1519. to remove the directory (RMDIR) without any problem and I was then able
  1520. to create new DB's, etc.
  1521.  
  1522. Kelvin D. Romrell
  1523.  
  1524. ----- OS2DBM CFORUM appended at 00:24:55 on 92/08/25 GMT (by KDROMREL at SFOVMIC1)
  1525. Subject: SYS3175 error when creating an new database
  1526. Ref:     Append at 14:33:12 on 92/08/24 GMT (by MRHI at CHVM1)
  1527.  
  1528. My customer also got SYS3175's in SQLC.DLL, but it was on the STARTDBM
  1529. issued immediately after a STOPDBM.
  1530. In their case it was because they had NetBios flowing over TCP/IP and
  1531. the STOPDBM was not completing before the STARTDBM.  When they waited
  1532. 1 second between the STOPDBM and STARTDBM, then everything worked fine.
  1533.  
  1534. From the situation you describe, your problem sounds different.  Your
  1535. best bet is probably to get a Trace and call Defect Support
  1536. (1-800-237-5511).
  1537.  
  1538. Kelvin D. Romrell
  1539.  
  1540. ----- OS2DBM CFORUM appended at 00:29:34 on 92/08/25 GMT (by KDROMREL at SFOVMIC1)
  1541. Subject: SYTOS with ES/2 DBM
  1542. Ref:     Append at 16:38:13 on 92/08/14 GMT (by CHODGES at DETVMIC4)
  1543.  
  1544. DB Mgr supports Backup to Disk without problem.  If you want Backup
  1545. to Tape, it is supported by a User Exit.  3 Sample User exits are
  1546. provided with ES DBM including Sytos, Mountain, and Maynard.
  1547.  
  1548. Kelvin D. Romrell
  1549.  
  1550. ----- OS2DBM CFORUM appended at 01:22:05 on 92/08/25 GMT (by BCHI040 at OS2CUST)
  1551. Subject: DBM a Swapper *PIG*
  1552.  
  1553. From the beginning, I have an IBM PS/2 M-80 with 12Mb Ram I open DBM
  1554. and run a simple query like.
  1555.  
  1556. SELECT * from tablename  (with 5866 rows)
  1557.  
  1558. And the swap file jumps from 2mb to anyware from 6 to 9 Mb on a
  1559. simple query. And this is with no other applications running.  When
  1560. the swap file reaches around 8mb OS/2 will not allow me to open any
  1561. other applications and reports that it is out of memory. 25mb set
  1562. aside exclusively for the swap file)
  1563.  
  1564. Then I exit Query manager and the swap file stays at it's current
  1565. size, the only way that I have found to shrink the swap file is to
  1566. shutdown and then I'm back to the default 2mb swap file.
  1567.  
  1568. I should note that the only applications running are PULSE.EXE,
  1569. SWAPPER.EXE and the OS2 clock program and I have reserved a 25mb
  1570. partition for the swap file.
  1571.  
  1572. I have installed the kernal fix to reduce swap file size. Is there
  1573. anything else that can be done.
  1574.  
  1575. Jerry Hittle, Hawaii Medical Service Ass'n
  1576.  
  1577. ----- OS2DBM CFORUM appended at 07:16:17 on 92/08/25 GMT (by EEBERT at STUTVM3)
  1578. Subject: SQL1042C - Unexpected System Error
  1579. Ref:     Append at 17:26:12 on 92/08/24 GMT (by EEBERT at STUTVM3)
  1580. We have the solution for our case | We found it in a little booklet
  1581. which comes with the product. Its title: Product Supplemental Information
  1582. On page 13 are some possible causes for SQL1042C listed i.e. memory
  1583. swapper space and system date. In our case the user had a DOS program
  1584. which will only run if the system date is sometime last year. The user
  1585. installed DBM and databases for the current date and later they changed
  1586. the date to sometime last year. DBM will not start if the system date
  1587. is before the installation date|
  1588. Conclusion: before you blame OS/2 read the supplied info |
  1589. Ekkehard Ebert
  1590.  
  1591. ----- OS2DBM CFORUM appended at 10:55:06 on 92/08/25 GMT (by VERSTEEG at UITVM1)
  1592. Subject: DBM a Swapper *PIG*
  1593. Ref:     Append at 01:22:05 on 92/08/25 GMT (by BCHI040 at OS2CUST)
  1594.  
  1595. What are your SWAPPATH values in CONFIG.SYS?
  1596. My swapper file can grow over 10 MB without any problem.
  1597.  
  1598. Anton Versteeg - ESAT PWS CoC Uithoorn, NL  *** 1,000,000+ OS/2 2.0 ***
  1599.  
  1600. ----- OS2DBM CFORUM appended at 13:57:55 on 92/08/25 GMT (by XXCDSX26 at TORVMCOP)
  1601. Subject: DBM a Swapper *PIG*
  1602. Ref:     Append at 01:22:05 on 92/08/25 GMT (by BCHI040 at OS2CUST)
  1603.  
  1604. Jerry:
  1605.  
  1606. Yep, DBM+QM is a pig.  The last time I looked was 1.3EE, then this
  1607. combo to 6-8Mb to load on top of the operating system!
  1608.  
  1609. Michael Harper - Cdn Depository for Securities, Ltd
  1610.  
  1611. ----- OS2DBM CFORUM appended at 18:49:51 on 92/08/25 GMT (by BCHI040 at OS2CUST)
  1612. Subject: DBM a Swapper *PIG*
  1613. Ref: Append at 10:55:06 on 92/08/25 GMT (by VERSTEEG at UITVM1)
  1614.  
  1615. SWAPPATH=E:\ 4096 2048 (on a 25Mb partition dedicated for the swap
  1616. file)
  1617.  
  1618. I don't have any problem with space for the swap file it when I exit
  1619. DBM or try to run a DOS program while in DBM I run out of memory.
  1620.  
  1621. Also when I do exit DBM the swap file does not get any smaller only
  1622. rebooting will reduce the swap file and correct the out of memory
  1623. Problem.
  1624.  
  1625. I have had the swap file get as large as 16Mb while running DBM.
  1626.  
  1627. I don't have any problems running QM or DBM the problem
  1628. starts when I try to run other applications after DBM and I start getting
  1629. out of memory errors.
  1630.  
  1631. Jerry Hittle, Hawaii Medical Service Ass'n  P.O. Box 860 Hon Hi 96808
  1632.  
  1633. ----- OS2DBM CFORUM appended at 20:24:54 on 92/08/25 GMT (by KDROMREL at SFOVMIC1)
  1634. Subject: DBM a Swapper *PIG*
  1635. Ref:     Append at 18:49:51 on 92/08/25 GMT (by BCHI040 at OS2CUST)
  1636.  
  1637. I also have a Mod-80 w/ 12MB of memory.  DBM, CM and several other
  1638. apps do really bump up my swapper, but I have not had problems with
  1639. being out of memory and not being able to open any other applications.
  1640. Now that I have applied the Kernal fix, my swapper shrinks back down
  1641. when I finish a task also.
  1642.  
  1643. With CM up (2 3270 emulations running) and several of the productivity
  1644. applets running my Swapper is at 9M.  I then do a STARTDBM, START USING
  1645. DATABASE, SELECT * from DATABASE (1400 records with 63 rows each)
  1646. and my Swapper grows to 11M.
  1647. At this point I'm still able to open new applications (e.g.
  1648. Workframe/2) and my swapper grows to 12M.
  1649. When the Select is done, I do a STOP USING and a STOPDBM.
  1650. My Swapper shrinks back to 10M in less than 30 seconds.  It didn't go
  1651. back to 9M immediately, so there was probably some fragmentation
  1652. or something.
  1653.  
  1654. One this I noticed, was that while my Select was running, my CPU was
  1655. going solid at 100% (with a very occasional dip).  This would lead to
  1656. applications taking longer to load and start, but they should start
  1657. eventually.
  1658.  
  1659. Hope this info is helpful.
  1660.  
  1661. Kelvin D. Romrell
  1662.  
  1663. ----- OS2DBM CFORUM appended at 08:29:18 on 92/08/26 GMT (by NJOY at HVTVM) ---
  1664. Subject: DATABASE MGT TRAINING
  1665. Ref:     Append by IL61500 at OS2CUST at 13:13:35 on 92/08/17 GMT.
  1666. Hi,
  1667. I firstly read an IBM booklet "IBM OS/2 Extended Edition Version 1.3
  1668. Database Manager Structured Query Language (SQL) Concepts",
  1669. which told me most of what I needed to know. Then I attended a four day
  1670. course called "IBM OS/2 Database Manager Programming for IBM" run by
  1671. QA Training, Cecily Hill Castle, Cirencester, Gloucester, Gloucestershire
  1672. GL7 2EF. Tel (0285) 655888. Tutor Geoff Drake. Run at IBM Havant.
  1673.  
  1674. He taught me C too (a pre requesite for the course). He's good.
  1675. This gave me the knowledge to set up a Database (from scratch) for our
  1676. Failure analysis group, which is now proving very useful.
  1677.  
  1678. Check with your training dept.
  1679.  
  1680. Nick Joy.
  1681. Havant, England.
  1682.  
  1683. ----- OS2DBM CFORUM appended at 13:13:13 on 92/08/26 GMT (by VERSTEEG at UITVM1)
  1684. Subject: DBM a Swapper *PIG*
  1685. Ref:     Append at 20:24:54 on 92/08/25 GMT (by KDROMREL at SFOVMIC1)
  1686.  
  1687. I have exactly the same numbers as mentioned in the referenced append.
  1688.  
  1689. Just a couple of wild guesses:
  1690.  
  1691. 1. Are you sure 25MB is free? No hidden files?
  1692. 2. Are you using HPFS for the SWAPPER.DAT partition? (I am using FAT)
  1693.    Perhaps there are lost/damaged clusters?
  1694.    Did you try CHKDSK on this partition?
  1695.  
  1696. Anton Versteeg - ESAT PWS CoC Uithoorn, NL  *** 1,000,000+ OS/2 2.0 ***
  1697.  
  1698. ----- OS2DBM CFORUM appended at 09:41:19 on 92/08/27 GMT (by 83823530 at SPAVM1)
  1699. Subject:SQL1042C
  1700. My customer is running OS/2 2.0 and Extended Services 1.0.
  1701. He was trying to delete 5.000 rows when the log files got full. His
  1702. PS got hung so he started the PS again and increased the number of
  1703. secondary logs from 2 to 10. When he restarted the affected Data Base
  1704. he got a SQL1042C error. He was not using Forward Recovery and the
  1705. data are critical.How can I help him?.
  1706.  
  1707. Thanks in advance.
  1708.                    Ana Martinez (83823530 at SPAVM1)
  1709.  
  1710. ----- OS2DBM CFORUM appended at 12:38:49 on 92/08/27 GMT (by IL03484 at OS2CUST)
  1711. Subject: Limit on number of Insertions
  1712.  
  1713. Recently, I noticed a message (Subject: SYTOS with ES/2 DBM)
  1714. indicating there is a limit on the number of rows which can be
  1715. inserted. I would like to know more about this limit.  For example,
  1716. does the limit exist in OS/2 2.0?  Does the limit apply to one
  1717. transaction only?  The limit indicated was >200,000 rows.
  1718.  
  1719. Thanks
  1720.  
  1721. Tom Hobbs Bituminous Insurance Co.
  1722.  
  1723. ----- OS2DBM CFORUM appended at 14:49:24 on 92/08/27 GMT (by UBIQUITY at AUSVM1)
  1724. Subject: Limit on number of Insertions
  1725. Ref:     Append at 12:38:49 on 92/08/27 GMT (by IL03484 at OS2CUST)
  1726.  
  1727. There is no specific limit on insertions.  The maximum size of
  1728. a DBM table is 16,777,216 4K pages.  Thus, for row sizes between
  1729. 2003 and 4005 bytes, there can be no more than 16,777,216 rows.
  1730. Smaller row sizes will allow for more than one row per page, with
  1731. a suitably higher limit.  In any case, 200,000 is at least two
  1732. orders of magnitude too small.
  1733.  
  1734. Richard D. Hoffman
  1735.  
  1736. ----- OS2DBM CFORUM appended at 17:56:47 on 92/08/27 GMT (by KDROMREL at SFOVMIC1)
  1737. Subject: SQL1042C
  1738. Ref:     Append at 09:41:19 on 92/08/27 GMT (by 83823530 at SPAVM1)
  1739.  
  1740. There are several things that might cause this problem.  From what
  1741. you discussed, you most likely have some problem with your log files.
  1742. I'm aware of three things you can try that might fix you up.
  1743.  
  1744. 1)  Go into the config tool and MOVE the logs.  Then exit back out.
  1745.     Do a STOPDBM/STARTDBM (not sure if this is required).  Then try
  1746.     to open the DB.  Once things are working properly, you can move
  1747.     the logs back to their original directory.
  1748. 2)  If 1 doesn't work, try the RESETLOG command that comes with the
  1749.     TARRR package.  It's available on the OS2Tools disk.
  1750. 3)  If that doesn't work, you can try restoring your logs from a backup
  1751.     (if you have a backup of the files, rather than a backup of the DB).
  1752. 4)  If none of that works, then call Defect Support (1-800-237-5511)
  1753.     and see if they have any additional ideas.
  1754.  
  1755. Anybody else have some other ideas?  If you look back under previous
  1756. appends, I think you'll find several other people who have had the same
  1757. problem, and what they did to fix it.
  1758.  
  1759. Kelvin D. Romrell
  1760.  
  1761. ----- OS2DBM CFORUM appended at 21:02:01 on 92/08/27 GMT (by DINAHA at RALYDPD4)
  1762. Subject: RDS to OS/2 2.0 Server
  1763. Ref:     Append at 20:49:16 on 92/07/22 GMT (by ERWIN at RHQVM16)
  1764.  
  1765. I have put together a document on how to access a ES 1.0 OS/2 2.0
  1766. database server from both a ES 1.0 OS/2 2.0 client and a OS/2
  1767. 1.3 client.  I am using the defaults (NETBIOS from the 2.0 and
  1768. SQLLOO from the 1.3).  I will be glad to share that with you and
  1769. welcome any comments as to its worth.  Just drop me a line
  1770. if you would like this.  Thanks.
  1771.  
  1772. ----- OS2DBM CFORUM appended at 11:35:26 on 92/08/28 GMT (by FOREMAN at GDLVM7)
  1773. Subject: IMPORT
  1774.  
  1775. What does QM IMPORT look for in a date field?
  1776.  
  1777. I'm trying to import an ASC file with dates. I keep getting:
  1778.  
  1779.   SQL0180N the date/time string is not in the proper format.
  1780.  
  1781. I have tried YYMMDD, YY/MM/DD MM/DD/YY and YYYYMMDD, all to no avail.
  1782. I cannot find any documentation either on-line or hard-copy that
  1783. explain what the program is looking-for, or how to tell it what to
  1784. expect in the input.
  1785.  
  1786. D. J. Foreman
  1787.  
  1788. ----- OS2DBM CFORUM appended at 15:42:32 on 92/08/28 GMT (by VERSTEEG at UITVM1)
  1789. Subject: IMPORT
  1790. Ref:     Append at 11:35:26 on 92/08/28 GMT (by FOREMAN at GDLVM7)
  1791.  
  1792. These should all work with the default profile:
  1793.  
  1794. 12-31-1991
  1795. 1991-12-31
  1796. 12/31/1991
  1797.  
  1798. Anton Versteeg - ESAT PWS CoC Uithoorn, NL  *** 1,000,000+ OS/2 2.0 ***
  1799.  
  1800. ----- OS2DBM CFORUM appended at 19:26:14 on 92/08/28 GMT (by IL12431 at OS2CUST)
  1801. Subject: Evaluating contention performance
  1802.  
  1803. Does DBS log lock contention events and/or other resource access events?
  1804.  
  1805. I need a utility or function showing me the sum and average of record/table
  1806. lock request conflicts.  I have a business need for this information to
  1807. determine DBM configuration parameters for our product.
  1808.  
  1809. The current REXX functions at best show me current connections.  Is there
  1810. something available, either internally or on the market, that logs events
  1811. as they happen?
  1812.  
  1813. Dave Scheffer
  1814.  
  1815. ----- OS2DBM CFORUM appended at 23:53:09 on 92/08/28 GMT (by IL78568 at OS2CUST)
  1816. Subject: ES DBM Documentation
  1817.  
  1818. I have finally gotten around to trying to set up up ES 1.0 DBM and DDCS/2
  1819. to access DB2, and code some simple accesses from OS/2.  The amount of
  1820. documentation I received with ES was a little intimidating, so I just got
  1821. started this week.
  1822.  
  1823. Firstly, I would think that some (most?) of this documentation could have
  1824. been online.  But what I find REALLY irritating is that various places
  1825. in the documentation refer me to the ES 1.0 DBM Programming Guide and
  1826. Reference.  With all the other manuals that I doubt I will ever need to
  1827. look at, one of the most (if not the MOST) important manual needed
  1828. for using DBM is missing (an expensive extra cost item).
  1829.  
  1830. Could someone explain the rationale for this packaging decision?  I'm
  1831. so paranoid, sometimes I think these things happen just to irritate me<g>.
  1832.  
  1833. I did find a draft version from last year which was printed out locally
  1834. for those of us in the EEP, but I find the omission from the GA package
  1835. (misguided, irritating, parsimonious, incompetent, all of the above),
  1836. take your pick.
  1837.  
  1838. Brooks McNeely - Martin Marietta Energy Systems, Inc.
  1839.  
  1840. ----- OS2DBM CFORUM appended at 16:31:51 on 92/08/29 GMT (by TCSC086 at OS2CUST)
  1841. Subject: ES DBM Documentation
  1842. Ref: Append at 23:53:09 on 92/08/28 GMT (by IL78568 at OS2CUST)
  1843.  
  1844. Brooks,
  1845.  As a customer, I share your irritation. I also extend it to the
  1846. COMM mgr guides, admin guides, etc. I think a better idea would be
  1847. kits setup like:
  1848.  
  1849. OS/2 2.0: the Base package and docs (if you can call them docs!)
  1850. OS/2 2.0 AND Extended Services 1.0 END USER: All in one kit
  1851.  
  1852. OS/2 2.0 AND Extended Services 1.0 DEVELOPMENT: The programming guides,
  1853. the technical library, BBS numbers, EVERYTHING that is really needed when
  1854. you begin development.
  1855.  
  1856. OS/2 2.0 AND Admin Kit: Put Help Desk, Training materials, operation hints,
  1857. etc in this one.NOT the programming guides!
  1858.  
  1859. IBM has done a great job at spelling out the CUA User, Programmer, and
  1860. Designer MODELS. Now if they would SHIP their products in a manner that
  1861. conforms to those MODELS!!Instead I scan read.me, ipf,hlp, txt, ANYTHING
  1862. to make sure I have the latest, greatest, or most appropriate documentation.
  1863.  
  1864. Flame off.
  1865.  
  1866. Dan Lundy          Time Customer Service, Inc.                      Tampa, Fl
  1867.  
  1868. ----- OS2DBM CFORUM appended at 12:10:50 on 92/08/31 GMT (by FOREMAN at GDLVM7)
  1869. Subject: IMPORT
  1870. Ref:     Append at 15:42:32 on 92/08/28 GMT (by VERSTEEG at UITVM1)
  1871. Thanks Anton. Are these documented anywhere?
  1872.  
  1873. D. J. Foreman
  1874.  
  1875. ----- OS2DBM CFORUM appended at 16:14:19 on 92/08/31 GMT (by FOREMAN at GDLVM7)
  1876. Subject: handling tables
  1877.  
  1878. I've just created 2 tables and a view that includes all of both
  1879. tables (joined by a single column). What I have is:
  1880.  
  1881. TABLE-a                           TABLE-b
  1882. item# det1 det2 det3          item#      det1
  1883.  
  1884.                    VIEW-1
  1885.   item#   TABLE-b/det1      TABLE-a/det2 det3 ...
  1886.  
  1887. where det1 in TABLE-a is empty (due to my IMPORT actions).
  1888.  
  1889. Is there some way I can get the TABLE-b/det1 col combined or moved into
  1890. the TABLE-a/det1 such that the result is a true table, not a view?
  1891. (Or is there some way to save the view as a true table, so I can
  1892. delete TABLE-a and -b?)
  1893.  
  1894. D. J. Foreman
  1895.  
  1896. ----- OS2DBM CFORUM appended at 16:41:19 on 92/08/31 GMT (by VIEIRA at STLVM7)
  1897. Subject: QRW2272W-0014
  1898.  
  1899. Attempting to access a remote database, the error QRW2272W with a rc=14
  1900. is returned.  Both server and requester are running OS/2 2.0.  I've
  1901. referenced the related SQL30080N message and the Extended Services
  1902. READ.ME file.  I've increased the Maximum Sessions, Commands, and Names
  1903. on both the server and requester to 150, 150, and 100, respectively.
  1904. Still, the error persists.  The server is both a LAN server and
  1905. database server.
  1906.  
  1907. I can successfully access a database on another server, though, so the
  1908. problem would appear to be with the first server, not the requester.
  1909. Any help would be appreciated.
  1910.  
  1911. Davide B. Vieira
  1912.  
  1913. ----- OS2DBM CFORUM appended at 17:09:25 on 92/08/31 GMT (by UBIQUITY at AUSVM1)
  1914. Subject: handling tables
  1915. Ref:     Append at 16:14:19 on 92/08/31 GMT (by FOREMAN at GDLVM7)
  1916.  
  1917. Create a table_c that looks just like table_a.  Then:
  1918.  
  1919.    INSERT INTO TABLE_C (SELECT * FROM VIEW_1)
  1920.  
  1921. If you want, you can then delete all the rows in table_a,
  1922. insert the rows from table_c, and drop table_b and table_c.
  1923. (This will automatically drop view_1).
  1924.  
  1925. Richard D. Hoffman
  1926.  
  1927. ----- OS2DBM CFORUM appended at 18:20:47 on 92/08/31 GMT (by FOREMAN at GDLVM7)
  1928. Subject: handling tables
  1929. Ref:     Append at 17:09:25 on 92/08/31 GMT (by UBIQUITY at AUSVM1)
  1930.  
  1931. Thanks Richard! Is it possible to do the insert directly into
  1932. Table-a, from -b since the column with this data is empty?
  1933. DO the column names need to match? What do I do if they don't?
  1934.  
  1935. D. J. Foreman
  1936.  
  1937. ----- OS2DBM CFORUM appended at 19:00:46 on 92/08/31 GMT (by UBIQUITY at AUSVM1)
  1938. Subject: handling tables
  1939. Ref:     Append at 18:20:47 on 92/08/31 GMT (by FOREMAN at GDLVM7)
  1940.  
  1941. Sorry, but you can only insert from a subselect.  To do what you
  1942. want, you would need to be able to update from a subselect.  This
  1943. is a known requirement, but not something which will available
  1944. any time soon.
  1945.  
  1946. Richard D. Hoffman
  1947.  
  1948. ----- OS2DBM CFORUM appended at 19:02:57 on 92/08/31 GMT (by UBIQUITY at AUSVM1)
  1949. Subject: handling tables
  1950. Ref:     Append at 18:20:47 on 92/08/31 GMT (by FOREMAN at GDLVM7)
  1951.  
  1952. I forgot to answer your other question.  The column names don't
  1953. have to match.  The first column from the SELECT will be inserted
  1954. into the first column of the table, the second column into the
  1955. second, and so on.
  1956.  
  1957. Richard D. Hoffman
  1958.  
  1959. ----- OS2DBM CFORUM appended at 19:45:42 on 92/08/31 GMT (by FOREMAN at GDLVM7)
  1960. Subject: handling tables
  1961. Ref:     Append at 19:02:57 on 92/08/31 GMT (by UBIQUITY at AUSVM1)
  1962. Thanks again Richard. How can I write the SELECT so that the columns
  1963. don't have to line up. My example was, unfortunately, over-simplified.
  1964. The column I want to overlay is not the 1st column in Table-a, but it is
  1965. the 1st column in Table-b.
  1966.  
  1967. Also, is there some sort of syntax like:
  1968.  
  1969.  INSERT INTO col3 OF TABLE_A (SELECT col2 FROM TABLE_B)  ?
  1970.  
  1971. D. J. Foreman
  1972.  
  1973. ----- OS2DBM CFORUM appended at 20:48:36 on 92/08/31 GMT (by KDROMREL at SFOVMIC1)
  1974. Subject: QRW2272W-0014
  1975. Ref:     Append at 16:41:19 on 92/08/31 GMT (by VIEIRA at STLVM7)
  1976.  
  1977. I've seen at least two other causes of this error:
  1978.  
  1979. 1)  StartDBM has not been issued at the Server when Start Using is
  1980.     issued from the Client
  1981. 2)  The catalog structure was incorrect.  In our case, the Server nname
  1982.     that we included in our Catalog Workstation command did not match
  1983.     the actual nname at the server (this can be checked by bringing
  1984.     up the Config Tool on the Server, selecting Change Database
  1985.     Manager, and then checking the first parameter - Workstation name
  1986.     or nname.
  1987.  
  1988. Anybody else seen anything else?
  1989.  
  1990. Kelvin D. Romrell
  1991.  
  1992. ----- OS2DBM CFORUM appended at 21:57:55 on 92/08/31 GMT (by UBIQUITY at AUSVM1)
  1993. ..... OS2DBM CFORUM modified at 14:46:53 on 92/09/01 GMT (by UBIQUITY at AUSVM1)
  1994. Subject: handling tables
  1995. Ref:     Append at 19:45:42 on 92/08/31 GMT (by FOREMAN at GDLVM7)
  1996.  
  1997. The syntax for insert from subselect is:
  1998.  
  1999.    INSERT INTO <table> (<col>, <col>, ...) (<select stmt>)
  2000.  
  2001. If the columns in the select list match those in <table>, you may
  2002. omit the list of columns.  For example:  I have tables X (A, B, C)
  2003. and Y (C, A, B) and want to copy Y into X.  I can either:
  2004.  
  2005.    INSERT INTO X (C, A, B) (SELECT * FROM Y)                 |oops
  2006.  
  2007. or
  2008.  
  2009.    INSERT INTO X (SELECT A, B, C FROM Y)
  2010.  
  2011. The parentheses around the select statement may be optional, but I
  2012. always put them in (that way I don't have to remember when they are
  2013. optional).
  2014.  
  2015. Richard D. Hoffman
  2016.  
  2017. ----- OS2DBM CFORUM appended at 08:56:45 on 92/09/01 GMT (by EDWARDG at ASICVM1)
  2018. Subject:  1.3 EE requestor talking to 1.3 ES server
  2019. I am having trouble getting RDS working between a requestor running OS/2
  2020. 1.3 EE and a server running os/2 1.3 ES.  I believe this configuration
  2021. is possible?  I am deep up LU's and PU's and whether the server should
  2022. be an End-Node or a Network-Node ?  Has anyone got any configuration
  2023. files for this setup they could send me?
  2024.               Thanks
  2025.                          Gabrielle Edwardes
  2026.  
  2027. ----- OS2DBM CFORUM appended at 11:48:30 on 92/09/01 GMT (by FOREMAN at GDLVM7)
  2028. Subject: handling tables
  2029. Ref:     Append at 21:57:55 on 92/08/31 GMT (by UBIQUITY at AUSVM1)
  2030.  
  2031. So, if I interpret this correctly, I could:
  2032.  
  2033.     INSERT INTO X (A, B, C) (SELECT M, N, O FROM Y)
  2034.  
  2035. D. J. Foreman
  2036.  
  2037. ----- OS2DBM CFORUM appended at 14:47:32 on 92/09/01 GMT (by UBIQUITY at AUSVM1)
  2038. Subject: handling tables
  2039. Ref:     Append at 11:48:30 on 92/09/01 GMT (by FOREMAN at GDLVM7)
  2040.  
  2041. Right!
  2042.  
  2043. Richard D. Hoffman
  2044.  
  2045. ----- OS2DBM CFORUM appended at 15:06:42 on 92/09/01 GMT (by VENDENA at DALVM41B)
  2046. Subject: QRW2272W-0014
  2047. Ref:     Append at 16:41:19 on 92/08/31 GMT (by VIEIRA at STLVM7)
  2048.  
  2049. Did you increase SESSION, NAMES, and COMMANDS on both the client and
  2050. the server?  If the request seems to be getting to the server (takes
  2051. a little time, server's hard drive light blinks), then the client's
  2052. NETBIOS resources are probably ok, but the server's need to be
  2053. increased.
  2054.  
  2055. Hope this helps.
  2056. Dena Laterza - OS/2 Application Assistance Center, Dallas
  2057.  
  2058. ----- OS2DBM CFORUM appended at 15:13:51 on 92/09/01 GMT (by FMMARTI at CHGVMIC1)
  2059. Client Application Enablers
  2060.  
  2061. Does anybody have a list of front end tools that will work with these
  2062. enablers in a DOS or Windows e3nvironment?
  2063.  
  2064. Also, does anyone know if there is better documentation dor the use of
  2065. these enablers than:
  2066. Guide to Database Manager Client Application Enablers (S04G-1114)
  2067.  
  2068. If anyone can help please contact me at:
  2069.  
  2070. 8/261-5142
  2071. FMMARTI at CHGVMIC1
  2072.  
  2073. Thanks-   Frank Martin
  2074.  
  2075. ----- OS2DBM CFORUM appended at 15:48:39 on 92/09/01 GMT (by FOREMAN at GDLVM7)
  2076. ..... OS2DBM CFORUM modified at 11:27:14 on 92/09/29 GMT (by FOREMAN at GDLVM7)
  2077. Subject: handling tables
  2078. Ref:     Append at 14:47:32 on 92/09/01 GMT (by UBIQUITY at AUSVM1)
  2079.  
  2080. Thanks Richard. That helps a lot. I now have a working table, with
  2081. everything in it that I need.
  2082. | Additional comments deleted by appender.
  2083.  
  2084. D. J. Foreman
  2085.  
  2086. ----- OS2DBM CFORUM appended at 20:22:30 on 92/09/01 GMT (by TCC3824 at OS2CUST)
  2087. Subject: Unsuccessful Logon using RDS with APPN
  2088. Ref: Append at 22:44:36 on 92/08/20 GMT (by FCOC079 at OS2CUST)
  2089.  
  2090. Where did you find the doc on how to set up the TP for
  2091. RDS and APPN?
  2092.  
  2093. Kevin McConnell   512-338-7457  Continuum    Austin Tx
  2094.  
  2095. ----- OS2DBM CFORUM appended at 20:28:32 on 92/09/01 GMT (by TCC3824 at OS2CUST)
  2096. Subject: Limit on number of Insertions
  2097. Ref: Append at 12:38:49 on 92/08/27 GMT (by IL03484 at OS2CUST)
  2098.  
  2099. There is a problem with ES DBM when inserting > 190,000 rows into a
  2100. table.  I reported the problem 2 month ago and I am still waiting for
  2101. the fix.  It is problem #4x632 if you want to get on the interested
  2102. parties list.
  2103.  
  2104. Kevin McConnell   512-338-7457  Continuum    Austin Tx
  2105.  
  2106. ----- OS2DBM CFORUM appended at 20:41:17 on 92/09/01 GMT (by TCC3824 at OS2CUST)
  2107. Subject: ARI and C SET/2
  2108.  
  2109. FYI!!
  2110.  
  2111. As of 9/1/92 there is a bug with DBM ARI and C SET/2.
  2112. The following PTR is being worked on by IBM.
  2113.  
  2114.  R: We have determined that there is a problem with DBM. Currently
  2115.  there is a PTR 4N00077 opened with development to provide a fix.
  2116.  Please contact your local IBM Support office and they will send out
  2117.  the fix as soon as it is ready.
  2118.  
  2119. Kevin McConnell   512-338-7457  Continuum    Austin Tx
  2120.  
  2121. ----- OS2DBM CFORUM appended at 01:03:17 on 92/09/02 GMT (by SJENNING at DETVMIC4)
  2122. Subject:  Problems with binding to a local database
  2123.  
  2124. My customer is having a problem binding a bind file to a local database.
  2125. When the SQLBIND command is issued, a message is written indicating
  2126. the bind process has occurred.  After this, the system locks up -
  2127. No commands can be entered by the keyboard.  The system must be
  2128. rebooted.
  2129.  
  2130. Has anyone experienced this problem?
  2131.  
  2132. Thanks
  2133.  
  2134. Suzanne Jennings
  2135. IBM - SE Detroit
  2136.  
  2137. ----- OS2DBM CFORUM appended at 03:46:59 on 92/09/03 GMT (by AUWHENRY at HKGVM8)
  2138.                     Subject: Importing non-del ASCII to DB via DBM
  2139. I encountered the following error message when importing a non-delimited
  2140. ASCII file into an OS/2 ES database table using the DBM SQL command:
  2141.  
  2142. DBM IMPORT TO edp FROM c:\test\test.dat OF ASC REPLACE INTO test
  2143. MESSAGES c:\test\dbm.msg
  2144.  
  2145. Error message : SQL3400N.
  2146.  
  2147. The error message indicates that I need to specify the column location.
  2148.  
  2149. Can anyone tell me how I can specify the location using the DBM IMPORT
  2150. command without writing any C or REXX program ? Thanks.
  2151.  
  2152. ----- OS2DBM CFORUM appended at 12:24:39 on 92/09/03 GMT (by TGILES at HVTVM) -
  2153. Subject: Changing ENTIRE Database Code Page
  2154. Ref:     None
  2155.  
  2156. I have to ask this again since IT'S AN URGENT REQUIREMENT and previous
  2157. answers aren't completely satisfactory.
  2158.  
  2159. I have a database on one machine with codepage 437 and wish to change
  2160. it to codepage 850. I know about Import/Export, but haven't found how
  2161. to specify FORCEIN, and the OS/2 2.0 SELECT Parameter restricts the
  2162. operation to tables. What I need to do is convert THE ENTIRE DATABASE.
  2163.  
  2164. Could someone outline the steps necessary to perform this task.
  2165.  
  2166. Trevor Giles,  Havant Site x4245
  2167.  
  2168. ----- OS2DBM CFORUM appended at 13:52:09 on 92/09/03 GMT (by MOODY at BLDVMA) -
  2169. Subject: Resetting DBM Logon Password
  2170.  
  2171. Can anybody out there tell me how I can reset the Logon Password
  2172. so that I can get to the existing databases?
  2173.  
  2174. Jim Moody  BLDVMA(MOODY) Tie 263-9228 Boulder, Co
  2175.  
  2176. ----- OS2DBM CFORUM appended at 18:32:46 on 92/09/03 GMT (by FOREMAN at GDLVM7)
  2177. Subject: Resetting DBM Logon Password
  2178. Ref:     Append at 13:52:09 on 92/09/03 GMT (by MOODY at BLDVMA)
  2179. Try logging on as:  userid=USERID
  2180.                   password=PASSWORD
  2181. assuming you haven't deleted it already.
  2182. D. J. Foreman
  2183.  
  2184. ----- OS2DBM CFORUM appended at 19:23:13 on 92/09/03 GMT (by ROBERT at TOROLAB4)
  2185. Subject: IMPORT
  2186. Ref:     Append at 12:10:50 on 92/08/31 GMT (by FOREMAN at GDLVM7)
  2187.  
  2188. A detailed description is contained in the SQL Reference, under
  2189. the heading 'Data Types', pages 18 through 22.  Note that table
  2190. 3 on page 22, lists valid and default date formats for your country.
  2191. The formats are described in table 1 on page 20.
  2192.  
  2193. Robert Begg
  2194.  
  2195. ----- OS2DBM CFORUM appended at 19:32:28 on 92/09/03 GMT (by ILLP099 at OS2CUST)
  2196. Subject: Packed Decimal
  2197.  
  2198. What compiled languages available for OS/2 2.0 have a data type which is
  2199. compatible with the DECIMAL data type of Database Manager?
  2200.  
  2201. Are there any extensions to IBM "C" which will accomodate DECIMAL?
  2202.  
  2203. ----- OS2DBM CFORUM appended at 19:35:20 on 92/09/03 GMT (by ROBERT at TOROLAB4)
  2204. Subject: ES DBM Documentation
  2205. Ref:     Append at 16:31:51 on 92/08/29 GMT (by TCSC086 at OS2CUST)
  2206.  
  2207. Hi,
  2208. I'm a writer for the next release of the OS/2 Database Manager.
  2209. We have been following this forum, and thought it was time to
  2210. say hello.
  2211.  
  2212. I would like to thank the submitters of the two referenced appends
  2213. for taking the time to express there opinions/fustrations about
  2214. ES DBM Documentation.  Your comments are well noted, and we
  2215. encourage all readers of this forum to comment on the documentation.
  2216.  
  2217. Robert Begg
  2218. Toronto Laboratory
  2219.  
  2220. ----- OS2DBM CFORUM appended at 20:22:51 on 92/09/03 GMT (by FOREMAN at GDLVM7)
  2221. ..... OS2DBM CFORUM modified at 11:14:58 on 92/09/04 GMT (by FOREMAN at GDLVM7)
  2222. Subject: IMPORT
  2223. Ref:     Append at 19:23:13 on 92/09/03 GMT (by ROBERT at TOROLAB4)
  2224.  
  2225. Thanks Robert. That'l help me next time.
  2226.  
  2227. D. J. Foreman
  2228.  
  2229. ----- OS2DBM CFORUM appended at 21:19:29 on 92/09/03 GMT (by FMMARTI at CHGVMIC1)
  2230. Subject: Client Application Enablers
  2231.  
  2232. Hello all-
  2233.  
  2234. I was wondering if anyone has used the Client application enablers
  2235. that are available for ES 1.0. I am trying to demo to the customer
  2236. that ES supports these environments, however, all I have found is a
  2237. very small document about how to use these enablers.
  2238. Is there anyone that has any info to share? Is there any better
  2239. documentation?
  2240. Also, does anyone have the DOS or WINDOWS code that is required to
  2241. catalog the databases? If you are running OS/2 (with DOS and WINDOWS)
  2242. do you even need this code(since you can catalog a database with QM)?
  2243. When I logon to the database with the SQLLOGON2 command, it will except
  2244. anything that I enter, and when I try to run the STARTDRQ command
  2245. I get a SQL1042C error. Any suggestions?
  2246.  
  2247. If anyone has anything to share please contact me at:
  2248. 8/261-5142 or
  2249. FMMARTI at CHGVMIC1
  2250.  
  2251. Thanks -
  2252. Frank Martin
  2253.  
  2254. ----- OS2DBM CFORUM appended at 06:48:38 on 92/09/04 GMT (by NURMELA at HEKVM)
  2255. Subject: Unsuccessful Logon using RDS with APPN
  2256. Ref:     Append at 20:22:30 on 92/09/01 GMT (by TCC3824 at OS2CUST)
  2257.  
  2258. I want to know the answer, too.  I have been looking for that
  2259. information in all the OS/2 manuals I have (about 1.5 shelf meters).
  2260.  
  2261. Jouni Nurmela
  2262. Finland
  2263.  
  2264. ----- OS2DBM CFORUM appended at 06:53:10 on 92/09/04 GMT (by NURMELA at HEKVM)
  2265. Subject: 1.3 EE requestor talking to 1.3 ES server
  2266. Ref:     Append at 08:56:45 on 92/09/01 GMT (by EDWARDG at ASICVM1)
  2267.  
  2268. After a long struggle I got ES to ES APPC connection working (adding
  2269. the TP definitions in the server did the trick).  I am still out
  2270. of luck with EE to ES APPC connection.  If somebody has got it
  2271. working, please, share your knowledge with the rest of us.
  2272.  
  2273. Jouni Nurmela
  2274. Finland
  2275.  
  2276. ----- OS2DBM CFORUM appended at 10:51:50 on 92/09/04 GMT (by VERSTEEG at UITVM1)
  2277. Subject: IMPORT
  2278. Ref:     Append at 20:22:51 on 92/09/03 GMT (by FOREMAN at GDLVM7)
  2279.  
  2280. It might not be that obvious but
  2281. the import utility is a DBM utility, not a QM utility.
  2282. All QM provides is a front-end to that utility.
  2283. Any checking, converting, etc. happens in DBM components.
  2284.  
  2285. This is one of the reasons why REXX is such a good language to invoke
  2286. these utilities, as any REXX overhead, as compared to compiled code,
  2287. will be minimal, because 99% of the time is spent within DBM.
  2288.  
  2289. A Master index would be nice though, I agree.
  2290. Robert?
  2291.  
  2292. Anton Versteeg - ESAT PWS CoC Uithoorn, NL  *** 1,000,000+ OS/2 2.0 ***
  2293.  
  2294. ----- OS2DBM CFORUM appended at 16:11:32 on 92/09/04 GMT (by 62493274 at EHONE)
  2295. Subject: SQL1042 Error and Data Change
  2296.  
  2297. Hello,
  2298.  
  2299. My customer has installed OS/2 DBM and its production databases without
  2300. configuring the OS/2 system date. When we set the correct date, DBM
  2301. failed with SQL1042 errors (it took us hours to find how why - until I
  2302. came back to my office and looked in this forum. I now see it's in the
  2303. manual 'Product Supplemental Information' - but who will look into this
  2304. manual ? Shouldn't it be instead with the online message information ??)
  2305.  
  2306. We corrected the situation by going back to the default date - which in
  2307. fact is the year 2000. The customer however wants to set the correct
  2308. date.
  2309.  
  2310. How can we set the date to 1992 without losing DBM and its databases ?
  2311. (we already tried to  remove and reinstall DBM, but it's not enough)
  2312.  
  2313. Best regards,  Pierre Willems - IBM Belgium
  2314.  
  2315. ----- OS2DBM CFORUM appended at 18:47:49 on 92/09/04 GMT (by XXNOVA24 at TORVMCOP)
  2316. Subject: ES DBM Documentation
  2317. Ref:     Append at 19:35:20 on 92/09/03 GMT (by ROBERT at TOROLAB4)
  2318.  
  2319. Robert,
  2320. DBM from Toronto?
  2321. I taught it is comming from somewhere Austin.Anyway,
  2322. Will we get a nice PM installation , Query manager for the next release?
  2323. When will it be 32 bit (incl performance and API calls?)
  2324. Can we get  a few   PM-C/set2 , some REXX and some SOM examples
  2325. in the Toolkit for calling the DBM ?
  2326.  
  2327. Regards,
  2328. Geza Szivos
  2329. NOVACOR Chemicals (403)-290-6583
  2330. NHO-32 801-7th Ave Calgary, Alberta, CANADA  T2P 2N6
  2331.  
  2332. ----- OS2DBM CFORUM appended at 21:38:10 on 92/09/04 GMT (by NAAO3IY at OS2CUST)
  2333. Subject: Packed Decimal
  2334. Ref: Append at 19:32:28 on 92/09/03 GMT (by ILLP099 at OS2CUST)
  2335.  
  2336. SQL and the DBM can automatically perform the conversion for you,
  2337. so you can just make the DECIMAL fields double or long double in
  2338. C.  That introduces a small possibility of a rounding error,
  2339. but of course that would be true whether you were using DBM
  2340. or not.
  2341.  
  2342. I believe MicroFocus COBOL (which is IBM's official choice of
  2343. COBOL for OS/2) should support DBM SQL DECIMAL.
  2344.  
  2345. There is supposed to be an IBM PL/I compiler for OS/2, based on the
  2346. same technology as the C-Set/2 compiler, announced during the month
  2347. of September.  That should probably have decimal support, and
  2348. when DBM gets around to supporting it (maybe sooner, maybe later,
  2349. maybe it's already there and undocumented -- I don't know), that
  2350. should work.
  2351.  
  2352. I'm not an IBMer, though.
  2353.  
  2354. John Kennedy -- Hoechst Celanese, Bridgewater, NJ
  2355.  
  2356. ----- OS2DBM CFORUM appended at 14:09:36 on 92/09/08 GMT (by ROBERT at TOROLAB4)
  2357. Subject: ES DBM Documentation & Future Releases
  2358. Ref:     Append at 18:47:49 on 92/09/04 GMT (by XXNOVA24 at TORVMCOP)
  2359.  
  2360. Geza,
  2361. Yep, OS/2 DBM is now owned by Toronto, recently moved from Austin.
  2362. (We also own SQL/DS, the VM database)
  2363.  
  2364. Please don't ask any questions about the future!!  I can't answer
  2365. them, ... but
  2366. Please tell me what you think should be in future releases, all
  2367. will be considered when making decisions.
  2368.  
  2369. RE: Examples,
  2370. this is a known requirement.  I suggest that you bug your IBM Rep,
  2371. for any example sets that may be available internally ( There are
  2372. lots of good REXX ones).
  2373. There is an OS2DEV forum on Compuserve, with a growing DBM section,
  2374. examples may appear there also.
  2375.  
  2376. ***  I would like to hear from anyone reading this forum, how you
  2377. ***  are using DBM and what types of examples would be most useful.
  2378. ***  Reply directly to me if there is no added value for this forum.
  2379. Robert Begg
  2380.  
  2381. ----- OS2DBM CFORUM appended at 14:22:06 on 92/09/08 GMT (by ROBERT at TOROLAB4)
  2382. Subject: Packed Decimal
  2383. Ref:     Append at 21:38:10 on 92/09/04 GMT (by NAAO3IY at OS2CUST)
  2384.  
  2385. The DBM Programming Guide & Reference contains a "Supported SQL
  2386. Data Types" section for each Host language chapter.
  2387.  
  2388. Robert Begg
  2389.  
  2390. ----- OS2DBM CFORUM appended at 19:40:12 on 92/09/08 GMT (by NBLKCY0 at OS2CUST)
  2391. Subject: Import/Export QM Objects?
  2392.  
  2393. In Query Manager there are facilities to import and export objects
  2394. such as panels, forms, queries.  This leads me to believe there is
  2395. an API available for performing these functions.  I have found nothing
  2396. in any documentation that indicates how this can be done through REXX or
  2397. a C program.
  2398.  
  2399. Has anyone done this or found a utility that will do this?
  2400.  
  2401. My need is to migrate objects from a test database to a production
  2402. database without a lot of manual work.
  2403.  
  2404. John Wilson - Citizens Fidelity Bank
  2405.  
  2406. ----- OS2DBM CFORUM appended at 20:07:56 on 92/09/08 GMT (by GBFORNEY at WASVMIC5)
  2407. Subject: Import/Export QM Objects?
  2408. Ref:     Append at 19:40:12 on 92/09/08 GMT (by NBLKCY0 at OS2CUST)
  2409.  
  2410. What you don't see from Query Manager is the table called
  2411.  
  2412. QRWSYS.QRWSYS_OBJECT
  2413.  
  2414. You can export and import this one table from either C or REXX. Everything
  2415. defined within QueryManager is contained with-in it.
  2416.  
  2417. Greg Forney  bigred@vnet.ibm.com
  2418.  
  2419. ----- OS2DBM CFORUM appended at 01:56:53 on 92/09/09 GMT (by KDROMREL at SFOVMIC1)
  2420. Subject: Changing ENTIRE Database Code Page
  2421. Ref:     Append at 12:24:39 on 92/09/03 GMT (by TGILES at HVTVM)
  2422.  
  2423. Try this:
  2424.       - Create a new database with cp 850
  2425.       - Access your old DB using QM under cp 437
  2426.       - Export all tables to IXF format.
  2427.       - If you have QM objects also export QRWSYS.QRWSYS_OBJECT
  2428.         from the QM command line.
  2429.       - CHCP 850
  2430.       - Start QM and open the new database
  2431.       - Select Profiles from the main menu and set
  2432.         'Compare code page on import' to No.
  2433.       - Save and activate the profile.
  2434.       - Import all tables
  2435. It's worked for me.
  2436.  
  2437. Kelvin D. Romrell
  2438.  
  2439. ----- OS2DBM CFORUM appended at 10:36:32 on 92/09/09 GMT (by 86495750 at EHONE)
  2440. Subject: Porting of mainframe reports and queries
  2441.   I have a customer starting out on the downsizing road.  He likes
  2442. DBM very much but complains that one of his main requirements is
  2443. the porting of his existing QMF reports and queries to QM.
  2444.   Is it really such a hastle to do this porting? and are there
  2445. not perhaps tools available to help out?
  2446.  
  2447. Jonathan
  2448.  
  2449. ----- OS2DBM CFORUM appended at 12:54:28 on 92/09/09 GMT (by DINAHA at RALYDPD4)
  2450. Subject: Resetting DBM Logon Password
  2451. Ref:     Append at 13:52:09 on 92/09/03 GMT (by MOODY at BLDVMA)
  2452.  
  2453. I got this from ASKQ on HONE.  We tried once and it worked successfully.
  2454. Of course, this was with OS/2 1.3.  I am now at OS/2 2.0 and ES 1.0
  2455. and have not had an occasion to use.
  2456. Perhaps this will help.  Better than recreating a large database.
  2457.  
  2458. ---------- ---------- ---------- --------- ---------- ----------
  2459. We were able to reset the workstation UPM default id by rebuilding
  2460. the MUGLIB directory. We booted the workstation with the install
  2461. the MUGLIB directory. We booted the workstation with the install
  2462. diskette, ESC to the a:> prompt, changed drive and set MUGLIB as the
  2463. default directory. We deleted all the files except SYSLEVEL.MUG,
  2464. copied UNPACK.EXE from diskette 1, and unpacked the UPM, MUG & LOG
  2465. files from diskette 6. The files that were not in the original
  2466. group of 13 in the MUGLIB directory were erased and the workstation
  2467. was booted. When we tried to access OS/2 Database Manager, we used
  2468. the default USERID/PASSWORD combination and it worked this time.
  2469. We could get to the databases with no problem and did not loose any
  2470. access privileges. We were also able to sign on to the LAN Requester
  2471. with the different LAN id/password and all worked well.
  2472.  
  2473. ----- OS2DBM CFORUM appended at 22:06:08 on 92/09/09 GMT (by MBCSQ11 at OS2CUST)
  2474. Subject: 1.3 EE requestor talking to 1.3 ES server
  2475. Ref: Append at 08:56:45 on 92/09/01 GMT (by EDWARDG at ASICVM1)
  2476.  
  2477.  Do you have this working yet?  We are running a CASE tool, Excelerator Series
  2478.  II, which uses a Database Manager database on a server for concurrent data
  2479.  access. We have a mixture of just about every combination of 1.3EE, 2.0,
  2480.  1.0ES, etc...  Not having any manuals or training classes available at the
  2481.  time I needed to do this, I simply set up the simply like this:
  2482.  
  2483.  Configure the database server with 1.3EE and 1.0ES. As part of this process,
  2484.  you will be defining a CM configuration file which includes the "old" RDS
  2485.  method - namely, the LU1, LU2, SQLLOO method.  Then apply 1.0ES. The install
  2486.  process will remove the EE component but will migrate the configuration file
  2487.  so that support for implicit lu partners looking for LU2 and transmission
  2488.  service mode SQLLOO will succeed. Now you will have covered the EE requesters.
  2489.  As for the ES requesters, we set up a server machine as a network node to
  2490.  do the intelligent APPN routing stuff. We defined each ES requester to that
  2491.  server and got an active CM link going. (We also had to define each ES
  2492.  requester as END-NODE with NETWORK-NODE server to get the requester link up).
  2493.  Have your database server also as an end-node to the network-node. Now you
  2494.  should be able to support the ES requesters also!!
  2495.  
  2496. Brian Treptow   Senior Technical Analyst, Miller Brewing Company
  2497.  
  2498. ----- OS2DBM CFORUM appended at 20:29:17 on 92/09/10 GMT (by IL71329 at OS2CUST)
  2499. Subject: es 1.0 database backup fails
  2500.  
  2501. I'm using a userexit called from DBM to backup databases. If the backup fails
  2502. because a tape is not mounted or someone is logged on, etc the backup pending f
  2503. lag is set. Is there a way to turn off this flag without completing another bac
  2504. kup?
  2505.  
  2506. Becky Epping   Country Companies Ins.  Bloomington, IL
  2507.  
  2508. ----- OS2DBM CFORUM appended at 09:35:24 on 92/09/11 GMT (by 62449439 at EHONE)
  2509. Subject: How to change country code for a Database
  2510. Is it possible to change the country code or to backup and restore
  2511. this database with another country code. The database was created
  2512. on a PS/2 with country code=044 but we have now to use it on
  2513. other PS/2 with country code=032.
  2514. I know that the DB country code information is kept in the SQLCON
  2515. file but I don't know how to change the information.
  2516.  
  2517. ----- OS2DBM CFORUM appended at 09:37:11 on 92/09/11 GMT (by 62425865 at EHONE)
  2518. Subject: Query Manager for GRAPHIC
  2519.  
  2520. Using the Database Manager under OS/2 V2, I tried to display a graphic
  2521. after execution of a query.
  2522. The installation is OS/2 V2 & Extend. Serv. (no tools or anything else)
  2523. I got the following message (no message number)
  2524.          'The system could not load the graphics program'
  2525.          'or the graphics interface module because it is not'
  2526.          'installed correctly.'
  2527.  
  2528. Do I need a complementary program/interface .... ?
  2529.  
  2530. Could somebody explain what do I need to do to solve this problem ?
  2531. Thanks in advance for any help.
  2532. P. de Theux (DETHEUX @ BRUVMIS1)
  2533.  
  2534. ----- OS2DBM CFORUM appended at 09:38:13 on 92/09/11 GMT (by ADAMSK at DUBVM1)
  2535. SUBJECT: Dos Remote W/S - Link Errors
  2536. I am currently recompiling some OS/2 SQL C code for running under DOS,
  2537. accessing a remote OS/2 ES DBM server via Netbios connection,
  2538. but I am having problems with the PCDRSTAT.LIB file. I am using IBMC/2
  2539. ver 1.1. When linking, I include the PCDRSTAT.LIB file and LLIBCE.LIB
  2540. which comes with IBMC/2. Initially I got a lot of Link errors, (Symbols
  2541. defined more than once), and I am asked for LLIBCA.LIB, which I do not
  2542. have. If I specify the Link Option /NOD (No default Libraries), I get
  2543. 12 unresolved externals, for the PCDRSTAT.LIB file. It looks like I need
  2544. the LLIBCA.LIB file, but that is not installed with C2. Has anyone any
  2545. suggestions, or answers to my problem. If more information is needed
  2546. please ask.
  2547. Best regards, Kevin Adams (adamsk at dubvm1)
  2548.  
  2549. ----- OS2DBM CFORUM appended at 09:40:50 on 92/09/11 GMT (by 62449439 at EHONE)
  2550. Subject: How to get data from the DB in an query manager procedure ?
  2551. Is there a way to get a variable from the DB and assign his value
  2552. to a local or global variable without using a panel and without using
  2553. a REXX program, only using the query manager features ?
  2554.  
  2555. ----- OS2DBM CFORUM appended at 11:20:29 on 92/09/11 GMT (by JBRAUER at STUTVM3)
  2556. ..... OS2DBM CFORUM modified at 11:35:58 on 92/09/11 GMT (by JBRAUER at STUTVM3)
  2557. Subject: Query Manager for GRAPHIC
  2558. Ref:     Append at 09:37:11 on 92/09/11 GMT (by 62425865 at EHONE)
  2559.  
  2560. | Note: The original author of this Q+A is Anton Versteeg.
  2561.  
  2562. *** QUESTION ***
  2563.    How can I enable the 'Graph' option on a report in Query Manager?
  2564. *** ANSWER ***
  2565.    The Graph Option isn't supported by Query Manager directly. Vendors
  2566.    can develop an adequate SW product and link it to Query Manager
  2567.    under QM's Graph menu item.
  2568.    Thus, this Vendor Graph product has to be purchased separately.
  2569.  
  2570.    The only package currently available is
  2571.    Perspective for OS/2 by Three D Graphics.
  2572.    phone: (213) 459-7949
  2573.    For more info see the Personal Systems Developer, Summer 1989 issue.
  2574. ____________________________________________________________
  2575. Joachim Brauer, IBM I/S Applications M&S, Ehningen (Germany)
  2576.  
  2577. ----- OS2DBM CFORUM appended at 11:34:52 on 92/09/11 GMT (by JBRAUER at STUTVM3)
  2578. Subject: How to get data from the DB in an query manager procedure ?
  2579. Ref:     Append at 09:40:50 on 92/09/11 GMT (by 62449439 at EHONE)
  2580.  
  2581. The following example, originally an answer to another problem, but
  2582. also retrieving data from a table into a procedure variable, should
  2583. give you an idea how to do it in QM. Pitfall: A panel is a prereq to
  2584. achieve it in QM.
  2585. Note: The original author of this Q+A is Anton Versteeg.
  2586.  
  2587. *** QUESTION ***
  2588.    How can I add records to a table using QM panels and
  2589.    automatically sequence numbers?
  2590. *** ANSWER ***
  2591.    That should be possible using QM panels and procedures:
  2592.    Suppose we have a column SEQNO in TABLE TAB1.
  2593.  
  2594.    /* Main procedure */
  2595.    'RUN QUERY MAX (REPORT=NO'   /* SELECT MAX(SEQNO) FROM TAB1 */
  2596.    'SAVE DATA AS TEMP (CONFIRM=NO REPLACE=YES'
  2597.    'RUN PANEL MAXTEMP (MODE=CHANGE'  /* GET MAX INTO GLOBAL VAR */
  2598.    'RUN PANEL ENTRY (MODE=ADD'    /* DO THE ACTUAL DATA ENTRY */
  2599.  
  2600.    Panel MAXTEMP is defined on the temporary table TEMP created
  2601.    by save data. Use the Default panel definition and add an initial
  2602.    search query name that points to a query that does a
  2603.    SELECT * FROM TEMP
  2604.    In the panel rules add a procedure for change.
  2605.    This procedure is called before the panel is displayed
  2606.    and should do:
  2607.    /*  TEMP proc */
  2608.    'GET CURRENT (N=FIELD1'
  2609.    'SET GLOBAL (NEXT=N'
  2610.    'QUIT PANEL'
  2611.  
  2612.    Panel ENTRY is defined on the table TAB1.
  2613.    It should have an initial procedure for Add (in panel rules).
  2614.    This procedure will get control before the panel is displayed:
  2615.    /* Add instance rule */
  2616.    'GET GLOBAL (N=NEXT'
  2617.    N=N+1
  2618.    'SET GLOBAL (NEXT=N'
  2619.    'SET CURRENT (FIELD2=N'
  2620.  
  2621.    Note: This works only in a single user environment.
  2622.          In a multi-user environment, you cannot save the
  2623.          sequence number in a global variable.
  2624. ____________________________________________________________
  2625. Joachim Brauer, IBM I/S Applications M&S, Ehningen (Germany)
  2626.  
  2627. ----- OS2DBM CFORUM appended at 13:17:38 on 92/09/15 GMT (by TCSC121 at OS2CUST)
  2628. Subject: C/Set 2 and Database Manager
  2629. Ref: Append at 21:33:55 on 92/06/02 GMT (by VENDENA at DALVM41B)
  2630.  
  2631. Is there something undocumented ?  I thought I was progressing but now I
  2632. am confused.  I'm willing to look at anything at this point.
  2633. Other than ES32TO16 are there more special stuff for C/set 2 and DBM ?
  2634.  
  2635. Dave Lauta  Time Customer Service
  2636.  
  2637. ----- OS2DBM CFORUM appended at 14:18:35 on 92/09/15 GMT (by FCOC079 at OS2CUST)
  2638. Subject: C/Set 2 and Database Manager
  2639. Ref: Append at 13:17:38 on 92/09/15 GMT (by TCSC121 at OS2CUST)
  2640.  
  2641. Following is one way to invoke the C-Set/2 compiler for a program which has SQL
  2642. statements in it and makes DBM API calls:
  2643.  
  2644. ICC.EXE /DES32TO16 /O /Ge- /Gt /C .\$*.c
  2645.  
  2646. The "/Gt" is for tiled memory (keeps memory objects from crossing 64-k bound-
  2647. aries.  Also, if you're making DBM API calls (other than those generated by
  2648. SQLPREP), make sure that pointers passed to DBM are of type "_Seg16".  I did
  2649. have trouble with the migration libraries, so I didn't use them, but did a
  2650.  
  2651. #define far FAR
  2652.  
  2653. after including the headers to make things compile ok.
  2654.  
  2655. Dave Boll
  2656.  
  2657. ----- OS2DBM CFORUM appended at 19:23:35 on 92/09/16 GMT (by KUSTERER at MANVM1)
  2658. Subject: Dos Remote W/S - Link Errors
  2659. Ref:     Append at 09:38:13 on 92/09/11 GMT (by ADAMSK at DUBVM1)
  2660.  
  2661. Kevin,
  2662.     I think I know what your problem is and I don't think you'll
  2663. like the answer.  I was trying to do exactly the same thing that
  2664. you are, that is, generating C code for DOS with C/2.  The first
  2665. thing I ran into was the missing LLIBCA.LIB.  C/2 does contain
  2666. this library, you just have to specify using the Alternate floating
  2667. point stuff as opposed to the Emulated stuff (hence the A instead
  2668. of the E) when you build your combined libraries.  BUT...  this
  2669. still didn't fix the problems.  I still got the unresolved externals
  2670. in PCDRSTAT.LIB just like you did.  The only thing I found to fix
  2671. it was to use version 6 of the C compiler from Microsoft, like the
  2672. documentation says to, and, poof, everything works great.
  2673.  
  2674. Joe Kusterer  -----  TEAM OS/2 Northern VA  -----  FSC Manassas
  2675.  
  2676. ----- OS2DBM CFORUM appended at 13:56:15 on 92/09/17 GMT (by ERICKSON at TDCSYS3)
  2677. Subject: Database Mgr Performance
  2678. Ref:     Append at 13:40:11 on 92/06/02 GMT (by VERSTEEG at UITVM1)
  2679. Earlier in the referenced append, the "Comprehensive Database Performance
  2680. for OS/2 2.0's Extended Services" manual (ISBN 0-442-01325-6) was
  2681. referenced with an IBM publications number "G362-0012". This number
  2682. is not valid in the PUBORDER system within the USA. Was it omitted
  2683. from our system accidentally, have I waited too long and had the
  2684. publication go out of stock, or is there another number valid within
  2685. the USA?
  2686.  
  2687. Thanks,
  2688. Marc R. Erickson
  2689.  
  2690. ----- OS2DBM CFORUM appended at 14:29:55 on 92/09/17 GMT (by MALKEMUS at TOROLAB3)
  2691. Subject: Database Mgr Performance
  2692. Ref:     Append at 13:56:15 on 92/09/17 GMT (by ERICKSON at TDCSYS3)
  2693.  
  2694. None of the above!  It's not in print yet.  Due this month, last
  2695. I heard.  I don't know how long it will take for puborder to
  2696. have it, once the book is published.
  2697.  
  2698. Tim Malkemus, Toronto Lab
  2699.  
  2700. ----- OS2DBM CFORUM appended at 15:14:32 on 92/09/17 GMT (by F079128 at DCTVM3)
  2701. Subject: Computer Asset Inventory
  2702.  
  2703. Has anyone heard of an application, using OS/2 DBM, that allows
  2704. inventory management of a company computer assets ?
  2705. Thanks in advance,
  2706. Nicolas Polin - IBM France - (33) 1.49.05.61.51
  2707.  
  2708. ----- OS2DBM CFORUM appended at 15:53:31 on 92/09/17 GMT (by FRMLSPA at OS2CUST)
  2709. Subject: Limit on number of Insertions
  2710. Ref: Append at 20:28:32 on 92/09/01 GMT (by TCC3824 at OS2CUST)
  2711.  
  2712. Is this a problem of a limit to the number of insertions prior to a commit?
  2713. Is your app trapping?  I've run into a problem during imports where if
  2714. the logs fill, it traps.  Expanding the logs corrected the problem.  We've
  2715. run some pretty big imports.
  2716.  
  2717. Scott Atwell - Farmland Industries
  2718.  
  2719. ----- OS2DBM CFORUM appended at 16:03:19 on 92/09/17 GMT (by XXNOVA24 at TORVMCOP)
  2720. Subject: Computer Asset Inventory
  2721. Ref:     Append at 15:14:32 on 92/09/17 GMT (by F079128 at DCTVM3)
  2722.  
  2723. Nop. But we (I) have to create one in less than two months.<g>
  2724.  
  2725. Geza Szivos
  2726. NOVACOR Chemicals (403)-290-6583
  2727. NHO-32 801-7th Ave Calgary, Alberta, CANADA  T2P 2N6
  2728.  
  2729. ----- OS2DBM CFORUM appended at 16:32:18 on 92/09/17 GMT (by FRMLSPA at OS2CUST)
  2730. Subject: sqlacall( SQLA_OPEN, .... using up file handles
  2731. Ref: Append at 18:55:34 on 92/08/24 GMT (by CHALTAIN at FSHVMFK1)
  2732.  
  2733. I had this problem with my DBM programs using MS C 6.0's fopen() and fprintf()
  2734. functions.  My programs worked fine with EE 1.3, however, ES 1.0 seemed
  2735. to take a couple more file handles.  My problem was that when my app first
  2736. started, I could open and close files (to write messages to app log files),
  2737. however, after I performed a second commit (every 5000), DBM sucked up the
  2738. rest of the 20 available file handles.  I increased the DBM parameter for
  2739. file handles an app can have to no avail.  Then I searched Equal and found
  2740. this same problem.  The problem is that DBM uses close to or all of 20 file
  2741. handles.  MS' fopen() function can only work with 20 file handles.  There
  2742. is no way to set more than 20.  The recommendation was to use DosOpen()
  2743. instead of fopen() and DosWrite() instead of fprintf().  If you do this,
  2744. the default is 20, but you can perform a DosSetMaxFH() function at the
  2745. top of your code and set it to 40 or something prior to opening and closing
  2746. files.  This does work for me.  I just perfer fprintf() to DosWrite().
  2747.  
  2748. Scott Atwell - Farmland Industries
  2749.  
  2750. ----- OS2DBM CFORUM appended at 16:37:55 on 92/09/17 GMT (by TCC3824 at OS2CUST)
  2751. Subject: Limit on number of Insertions
  2752. Ref: Append at 15:53:31 on 92/09/17 GMT (by FRMLSPA at OS2CUST)
  2753.  
  2754. I blow up on running an insert job.  I commit every 1,000 rows.  It blows up
  2755. after about 190,000 rows. (table has 800,000 in a 1.3 table).  IBM says it is
  2756. an index bug.
  2757.  
  2758. Kevin McConnell   512-338-7457  Continuum    Austin Tx
  2759.  
  2760. ----- OS2DBM CFORUM appended at 17:02:46 on 92/09/17 GMT (by FRMLSPA at OS2CUST)
  2761. Subject: Limit on number of Insertions
  2762. Ref: Append at 16:37:55 on 92/09/17 GMT (by TCC3824 at OS2CUST)
  2763.  
  2764. Can you drop the index and re-add it after the import?  We have some tables
  2765. of that size and haven't encountered any problems except the logs filling.
  2766. We also got a trap when an insert attempted to put a larger value into
  2767. a column than the column was defined for (somebody interpreted 8,3 as PIC(8.3))
  2768.  
  2769. Scott Atwell - Farmland Industries
  2770.  
  2771. ----- OS2DBM CFORUM appended at 17:11:06 on 92/09/17 GMT (by FRMLSPA at OS2CUST)
  2772. Subject: Import/Export QM Objects?
  2773. Ref: Append at 19:40:12 on 92/09/08 GMT (by NBLKCY0 at OS2CUST)
  2774.  
  2775. Not only can you export and import the QRWSYS.QRWSYS_OBJECT to backup and/or
  2776. move all of the QM objects from one DB to another, we've been able to "merge"
  2777. some or all of the QM objects from one DB with another.  You can merge the
  2778. entire set of QM objects by importing the exported QRWSYS_OBJECT table with
  2779. APPEND into the target DB.  You can merge selected pieces by writing a query
  2780. to insert into a temp table only those objects matching criteria specified
  2781. with a where clause.  Then export the temp table and import with append.
  2782. You can also move objects from one qualifier to another by either updating
  2783. the exported temp table changing the qualifier and then import with append, or
  2784. (IBM doesn't recommend this one because users could be in it) perform an update
  2785. directly on the QRWSYS_OBJECT table changing the qualifier.  All of these
  2786. scenarios have worked for us.
  2787.  
  2788. Scott Atwell - Farmland Industries
  2789.  
  2790. ----- OS2DBM CFORUM appended at 20:02:39 on 92/09/17 GMT (by FMMARTI at CHGVMIC1)
  2791. Subject: September issue of PC Magazine
  2792.  
  2793. Hello all-
  2794.  
  2795. Has anyone read or been approached about the September issue of PC
  2796. Magazine? There is a comparison of workstation databases, and the OS/2
  2797. DBM does not look all that great. Does anyone know of where I could find
  2798. some information that would help me answer customer concerns over this
  2799. article.
  2800.  
  2801. Thanks
  2802.  
  2803. Frank Martin           8/261-5142              FMMARTI at CHGVMIC1
  2804.  
  2805. ----- OS2DBM CFORUM appended at 18:02:52 on 92/09/18 GMT (by IL78568 at OS2CUST)
  2806. Subject: EXPLAIN Tool
  2807.  
  2808. I have seen several references concerning the use of the EXPLAIN tool,
  2809. which end with the admonition to "be sure to use the July version of the
  2810. EXPLAIN tool".
  2811.  
  2812. The last time I saw this was on IBMLink during the last two days.
  2813.  
  2814. Is there a later version of the tool than the ES 1.0 GA version, or is this a
  2815. reference to July 1991 before EXPLAIN was included in ES?
  2816.  
  2817. If there is an updated version, could it be included for download here?
  2818.  
  2819. Brooks McNeely - Martin Marietta Energy Systems, Inc.
  2820.  
  2821. ----- OS2DBM CFORUM appended at 23:15:53 on 92/09/19 GMT (by HNDERSON at AUSVM8)
  2822. ..... OS2DBM CFORUM modified at 21:06:07 on 92/09/28 GMT (by HNDERSON at AUSVM8)
  2823. Subject: EXPLAIN Tool
  2824. Ref:     Append at 18:02:52 on 92/09/18 GMT (by IL78568 at OS2CUST)
  2825. Brooks, I will check with one of the authors of this package who is
  2826. in Austin, if she gives her okay, we will attempt to make it down-
  2827. loadable from this BBS.
  2828. |
  2829. |The EXPLAIN package is included with the EXTENDED SERVICES diskettes
  2830. |
  2831. |
  2832.  
  2833.  __   __      ___      __  __   _   _
  2834. |  |_|  |    /   \    |  \|  | | |./ / Hank Henderson HNDERSON at AUSVM8
  2835. |   _   |   / _~_ \  Sincerely |  . < Staff OSS to OS/2 BBS (TEAMOS2)
  2836. |__| |__|  /_/   \_\  |__|\__| |_| \_\ Tie:8-793-8647  Austin, Texas
  2837.                                        LNK1SM7 @ IBMLINK - OS/2 BBS
  2838.  
  2839. ----- OS2DBM CFORUM appended at 03:53:23 on 92/09/20 GMT (by XXNOVA24 at TORVMCOP)
  2840. Subject: EXPLAIN Tool
  2841. Ref:     Append at 23:15:53 on 92/09/19 GMT (by HNDERSON at AUSVM8)
  2842.  
  2843. Thanks, Hank.
  2844. Couls you do the same thing with the SnapDump/2 ?
  2845. (it was on FTN before and it's in OS/2 dev now ).
  2846.  
  2847. Geza Szivos
  2848. NOVACOR Chemicals (403)-290-6583
  2849. NHO-32 801-7th Ave Calgary, Alberta, CANADA  T2P 2N6
  2850.  
  2851. ----- OS2DBM CFORUM appended at 21:29:39 on 92/09/20 GMT (by HNDERSON at AUSVM8)
  2852. Subject: EXPLAIN Tool
  2853. Ref:     Append at 03:53:23 on 92/09/20 GMT (by XXNOVA24 at TORVMCOP)
  2854. Geza, and All, I'll see if it is available and post it if ok.
  2855.  __   __      ___      __  __   _   _
  2856. |  |_|  |    /   \    |  \|  | | |./ / Hank Henderson HNDERSON at AUSVM8
  2857. |   _   |   / _~_ \  Sincerely |  . < Staff OSS to OS/2 BBS (TEAMOS2)
  2858. |__| |__|  /_/   \_\  |__|\__| |_| \_\ Tie:8-793-8647  Austin, Texas
  2859.                                        LNK1SM7 @ IBMLINK - OS/2 BBS
  2860.  
  2861. ----- OS2DBM CFORUM appended at 02:17:16 on 92/09/21 GMT (by JWILK at SYDVM1) -
  2862. Subject: ES DBM Access from DOS VDM on same OS/2 V2 Workstation
  2863. I am trying ever so hard to get a DOS application to access
  2864. an ES Database, which resides on the same workstation. I am however
  2865. unsure as to wether I have the appropriate S/W and/or H/W.....
  2866.  
  2867. Question 1) Do I need to have ES with Database Server to get this
  2868.             to work at all ??
  2869. Question 2) Do I need to be physically on a LAN to get this to
  2870.             to work, even when I am physically going to the same
  2871.             workstation ??
  2872.             I guess I'm asking how NETBIOS operates in this environment,
  2873.             ie from a DOS VDM through to an OS/2 process. Does the
  2874.             DOS Netbios VDD go out on a 'real' LAN adapter ???
  2875.  
  2876. Question 3) This is related to question 2), but how should I code
  2877.             up the DB catalog function, local or remote ???
  2878. Question 4) This is also related to question 2), what should I use
  2879.             as my netbios workstation names, for DOS requestor and
  2880.             OS/2 server, these have to be unique but how to I route
  2881.             my netbios to the 'same' workstation ???
  2882.  
  2883. Thanks for any help......
  2884. John Wilkinson
  2885. IBM New Zealand
  2886.  
  2887. ----- OS2DBM CFORUM appended at 12:54:47 on 92/09/21 GMT (by ROBERT at TOROLAB4)
  2888. Subject: ES DBM Access from DOS VDM on same OS/2 V2 Workstation
  2889. Ref:     Append at 02:17:16 on 92/09/21 GMT (by JWILK at SYDVM1)
  2890.  
  2891. Your question has been partially answered in an internal forum.
  2892. I will answer what I know, and will post your question there,
  2893. and a full answer here. (unless someone beats me to it).
  2894.  
  2895. Yes, what you ask is possible. (I'm going to try it myself)
  2896. The OS/2 DBM must be a server, and physically on a lan.
  2897. The request from the DOS session will be sent out on the lan, and
  2898. the OS/2 server will receive them.
  2899. Yes, catalog the database on DOS as remote. (Actually on DOS the
  2900. type is ignored on the catalog call since it has to be remote).
  2901.  
  2902. What I am unsure about is how you set up the DOS NETBIOS Name etc.
  2903. Better answer to follow.
  2904.  
  2905. Robert Begg
  2906.  
  2907. ----- OS2DBM CFORUM appended at 16:39:38 on 92/09/21 GMT (by TCSC086 at OS2CUST)
  2908. Subject: VARCHAR confusion in C
  2909.  
  2910. All,
  2911.  After tromping through the ES Host Language ref for DBM, I came out
  2912. more confused about type (460,461) VARCHAR than I was BEFORE I read the
  2913. manual.(Chapter 4 - C Language is my source)
  2914.  
  2915. If a TABLE has a column defined VARCHAR(n), then is the value
  2916. returned to the host variable null terminated? (460,461)
  2917.  
  2918. If a TABLE has a column defined CHAR(n), is the returned value
  2919. null terminated? (452,453)
  2920.  
  2921. If you use the SQLDA struct, is the value NULL terminated for either?
  2922.  
  2923. It does not seem to make any difference if host var declarations are
  2924. array or pointer. Does it?
  2925.  
  2926. Dan Lundy          Time Customer Service, Inc.                      Tampa, Fl
  2927.  
  2928. ----- OS2DBM CFORUM appended at 18:29:27 on 92/09/21 GMT (by UBIQUITY at AUSVM1)
  2929. Subject: VARCHAR confusion in C
  2930. Ref:     Append at 16:39:38 on 92/09/21 GMT (by TCSC086 at OS2CUST)
  2931.  
  2932. The use of a C null-terminator is dependent on your host declaration,
  2933. not on the SQL data type of the source data.  If your variable is
  2934. declared as "char xìn┘" (hope you see square brackets there), the
  2935. result will be null-terminated unless n=1.  In an SQLDA, there are
  2936. specific data types (460 or 461) which indicate that a null-terminator
  2937. is desired, again irrespective of the source data.
  2938.  
  2939. The alternative to null-terminated data in C is the simulared varchar
  2940. host variable (a structure consisting of a short integer followed by
  2941. an array of char).  You can also use unterminated strings by specifying
  2942. data types 452 or 453 in an SQLDA.
  2943.  
  2944. Richard D. Hoffman
  2945.  
  2946. ----- OS2DBM CFORUM appended at 19:24:13 on 92/09/21 GMT (by JWILK at SYDVM1) -
  2947. Subject: ES DBM Access from DOS VDM on same OS/2 V2 Workstation
  2948. Thanks for the answer so far, I eagerly await the full success story....
  2949.  
  2950. John Wilkinson
  2951.  
  2952. ----- OS2DBM CFORUM appended at 19:45:58 on 92/09/21 GMT (by TCSC086 at OS2CUST)
  2953. Subject: VARCHAR confusion in C
  2954. Ref: Append at 18:29:27 on 92/09/21 GMT (by UBIQUITY at AUSVM1)
  2955.  
  2956. Richard,
  2957.  Thanks for the extremely clear replay. I needed it!
  2958.  
  2959.  (I hadn't evenlogged off yet!)
  2960.  
  2961. Dan Lundy          Time Customer Service, Inc.                      Tampa, Fl
  2962.  
  2963. ----- OS2DBM CFORUM appended at 19:55:13 on 92/09/21 GMT (by TCSC086 at OS2CUST)
  2964. Subject: VARCHAR confusion in C
  2965. Ref: Append at 18:29:27 on 92/09/21 GMT (by UBIQUITY at AUSVM1)
  2966.  
  2967. Richard,
  2968.  
  2969.  Not believing in Free Lunches, is there any downside or cost to
  2970. using VARCHAR that would make CHAR the better choice?
  2971.  
  2972. Thanks again!
  2973.  
  2974. Dan Lundy          Time Customer Service, Inc.                      Tampa, Fl
  2975.  
  2976. ----- OS2DBM CFORUM appended at 20:43:15 on 92/09/21 GMT (by UBIQUITY at AUSVM1)
  2977. ..... OS2DBM CFORUM modified at 18:11:53 on 92/09/22 GMT (by UBIQUITY at AUSVM1)
  2978. Subject: VARCHAR confusion in C
  2979. Ref:     Append at 19:55:13 on 92/09/21 GMT (by TCSC086 at OS2CUST)
  2980.  
  2981. VARCHAR costs four extra bytes per item.  This means that if the field  |
  2982. is really fixed length (e.g., social security number, phone number,
  2983. employee serial, etc.), VARCHAR will add unnecessary space.  If the
  2984. field is "close" to fixed length (e.g., radio station call letters --
  2985. always either three or four bytes long), it will still be cheaper to
  2986. use CHAR in terms of space, but deleterious in terms of programming.
  2987.  
  2988. As a database purist, I say that *only* truly fixed fields should be
  2989. CHAR, but I admit that this rule might be relaxed in the case of
  2990. severe space restrictions.
  2991.  
  2992. Richard D. Hoffman
  2993. | four, not two, extra bytes.  I knew that, really.
  2994.  
  2995. ----- OS2DBM CFORUM appended at 21:57:10 on 92/09/21 GMT (by TCSC086 at OS2CUST)
  2996. Subject: VARCHAR confusion in C
  2997. Ref: Append at 20:43:15 on 92/09/21 GMT (by UBIQUITY at AUSVM1)
  2998.  
  2999. Thanks again Richard! (Do you live on here too!<g>)
  3000.  
  3001. To summarize, VARCHAR is really a space conservation option when the
  3002. field length is *truly* unknown or vague. DECLARE section determines
  3003. how I will see it (or get it).
  3004.  
  3005. I **hate** >fluffing< arrays - pointers are just so *convenient*.
  3006.  
  3007. Lazy where I can be...thanks again...
  3008.  
  3009. Dan Lundy          Time Customer Service, Inc.                      Tampa, Fl
  3010.  
  3011. ----- OS2DBM CFORUM appended at 04:46:41 on 92/09/22 GMT (by JWILK at SYDVM1) -
  3012. Subject: ES DBM Access from DOS VDM on same OS/2 V2 Workstation
  3013. Hi again,
  3014.  I have now managed to get a database cataloged on my DOS requestor VDM.
  3015.  I am know having problems accessing that database, I'm getting a
  3016.  30080, signifying a comms error, I'm not sure what the reason code
  3017.  is, I need change my program to return that !!!
  3018.  I'm wondering if anyone has any pearls of wisdom as to what the common
  3019.  problems are....
  3020.  
  3021.  Thanks in advance
  3022.  John Wilkinson
  3023.  
  3024. ----- OS2DBM CFORUM appended at 13:02:12 on 92/09/22 GMT (by ROBERT at TOROLAB4)
  3025. Subject: ES DBM Access from DOS VDM on same OS/2 V2 Workstation
  3026. Ref:     Append at 02:17:16 on 92/09/21 GMT (by JWILK at SYDVM1)
  3027.  
  3028. The better answer
  3029. 1. Yes
  3030.  
  3031. 2. Yes, yes.
  3032.  
  3033. 3. The DOS DB Req. allows remote catalog only.
  3034.  
  3035. 4. Ensure that the DOS DB Req. name (DBDRQLIB.CFG) and
  3036.    OS/2 DBM server names are unique.  A conversation is
  3037.    established between these names, that just happen to
  3038.    reside on the same machine.
  3039.  
  3040. Lance Amundsen
  3041.  
  3042. |I am trying ever so hard to get a DOS application to access
  3043. |an ES Database, which resides on the same workstation. I am however
  3044. |unsure as to wether I have the appropriate S/W and/or H/W.....
  3045. |
  3046. |Question 1) Do I need to have ES with Database Server to get this
  3047. |            to work at all ??
  3048. |Question 2) Do I need to be physically on a LAN to get this to
  3049. |            to work, even when I am physically going to the same
  3050. |            workstation ??
  3051. |            I guess I'm asking how NETBIOS operates in this environment,
  3052. |            ie from a DOS VDM through to an OS/2 process. Does the
  3053. |            DOS Netbios VDD go out on a 'real' LAN adapter ???
  3054. |
  3055. |Question 3) This is related to question 2), but how should I code
  3056. |            up the DB catalog function, local or remote ???
  3057. |Question 4) This is also related to question 2), what should I use
  3058. |            as my netbios workstation names, for DOS requestor and
  3059. |            OS/2 server, these have to be unique but how to I route
  3060. |            my netbios to the 'same' workstation ???
  3061.  
  3062. Robert Begg
  3063.  
  3064. ----- OS2DBM CFORUM appended at 13:15:45 on 92/09/22 GMT (by ROBERT at TOROLAB4)
  3065. Subject: ES DBM Access from DOS VDM on same OS/2 V2 Workstation
  3066. Ref:     Append at 04:46:41 on 92/09/22 GMT (by JWILK at SYDVM1)
  3067.  
  3068. I spent some time yesterday looking into this (see the answer
  3069. I posted from your original append).  I had more problems getting the
  3070. correct math libraries than I did with the DBM part.
  3071.  
  3072. It sounds like you havn't got the netbios part setup correctly...
  3073. 1st, this topic is covered in the Guide to DBM Appendix H-2.
  3074.      Note this is specific to running Dos Req. from a os2-dos session.
  3075. 2nd, the netbios nodename you need to connect to is the NNAME specified
  3076.      with the configuration tool.
  3077.      Update the DBDRQLIB.CFG file like the manual says, the dos node
  3078.      name just needs to be unique.
  3079.      Ensure that you have netbios support installed.
  3080.      Try testing from another OS2 client if possible.
  3081.  
  3082. Robert Begg
  3083.  
  3084. ----- OS2DBM CFORUM appended at 14:34:03 on 92/09/22 GMT (by JASSALT at BETVMIC5)
  3085. Subject: Dos Client Help
  3086.  
  3087. Hi Everyone,
  3088.  
  3089. My Dos client Program has bad data coming back from the FETCH.
  3090. In my C program I do the Catalog Database successfully, then I open
  3091. The database (OK), then I declare Cursor (OK) then I open Cursor (OK)
  3092. and I do a fetch (OK) also I get the five records that I am expecting
  3093. however the data coming back to me is garbage. The selected smallints,
  3094. and decimal fields have Zeros, and the character selected fields have
  3095. garbage in them. I dont know what, I forgot to define/Configure and
  3096. the documentation leaves me stranded. I'm not sure if maybe its my
  3097. compile switches or what.  Any help at this point would be greatly
  3098. appreciated, from anyone out there.
  3099.  
  3100. Thanks ..... Thakur Jassal
  3101.  
  3102. ----- OS2DBM CFORUM appended at 06:41:38 on 92/09/23 GMT (by JWILK at SYDVM1) -
  3103. Subject: ES DBM Access from DOS VDM on same OS/2 V2 Workstation
  3104. Well, I'm now past the comms errors, or so it seems, I'm
  3105. now getting another error (and rather annoyed...). I'm now getting
  3106. the infamous 1042 error, on a start using DB. Everything on the
  3107. OS/2 side works fine (ie logging on, accessing the database etc).
  3108. When am I actually going to DBM, the speed at which this returns
  3109. implies it's not getting past the requestor code ???
  3110. I have now set this up on another PS/2, and have got to the same
  3111. point as on the other machine, up until my last attempt.... now on this
  3112. workstation I get a 1042 at the sqllogn2 point, I think I'm
  3113. about to go crazy here (or go to Gupta........)
  3114.  
  3115. John Wilkinson
  3116.  
  3117. ----- OS2DBM CFORUM appended at 12:16:32 on 92/09/23 GMT (by ROBERT at TOROLAB4)
  3118. Subject: ES DBM Access from DOS VDM on same OS/2 V2 Workstation
  3119. Ref:     Append at 06:41:38 on 92/09/23 GMT (by JWILK at SYDVM1)
  3120.  
  3121. Did you:
  3122. Update the DBDRQLIB.CFG file? (used a different nname than os2 dbm)
  3123. Catalog the database name and the nname of the OS/2 dbm?
  3124. Run startdrq?
  3125.  
  3126. Robert Begg
  3127.  
  3128. ----- OS2DBM CFORUM appended at 05:29:47 on 92/09/24 GMT (by NAAO3IY at OS2CUST)
  3129. Subject: VARCHAR confusion in C
  3130. Ref: Append at 21:57:10 on 92/09/21 GMT (by TCSC086 at OS2CUST)
  3131.  
  3132. Remember that VARCHAR is a necessity if you want expressions with
  3133. concatenations in them to come out right (assuming that varying-length
  3134. is "right" for the job).
  3135.  
  3136. John Kennedy -- Hoechst Celanese, Bridgewater, NJ
  3137.  
  3138. ----- OS2DBM CFORUM appended at 13:21:08 on 92/09/24 GMT (by MBCSQ11 at OS2CUST)
  3139. Subject: Computer Asset Inventory
  3140. Ref: Append at 15:14:32 on 92/09/17 GMT (by F079128 at DCTVM3)
  3141.  
  3142.  Yes and No. We created our own but also used LMU/2 for some:
  3143.  
  3144.  If you use Extended Services, there is a QMC.EXE program in the SNAPDUMP.ZIP
  3145.  file. QMC basically "dumps" our CMOS into a flat file. Originally we used
  3146.  this in conjunction with a REXX program to get information about each machine
  3147.  and load it into a DBM database. For DOS machines of course, other programs
  3148.  had to be used ...
  3149.  
  3150.  Since then, we started using Lan Management Utilities/2, which allows a LAN
  3151.  administrator to run a program ON a client workstation. One of the programs
  3152.  is a QUERYVPD which dumps out system information from DOS and OS/2 systems.
  3153.  Once installed on each client machine, we can use LMU/2 to run a command file
  3154.  from a shared drive on the LAN which executes the QUERYVPD. LMU/2 creates
  3155.  its own DBM database on a server. The queryvpd program running from each
  3156.  client workstation passes system information along via named pipes to the
  3157.  server which then inserts the data into a DBM database.
  3158.  
  3159.  We then built maintenance panels and reports in Query Manager. QM may be a
  3160.  bit crude in some points, but you can generate screens/reports in a very
  3161.  short amount of time ...
  3162.  
  3163. Brian Treptow - Miller Brewing Company, Milwaukee WI
  3164.  
  3165. ----- OS2DBM CFORUM appended at 14:32:14 on 92/09/24 GMT (by WJLUCAS at NYCVMIC1)
  3166. Subject: OS2 DB DB-Library compatability
  3167. Ref:     Append from Wjlucas at NYCVMIC1
  3168.  
  3169.   Has anyone looked at creating a set of DLL's for OS2 DBM that will
  3170. support the DB-Library API issued by many of the Windows 3.0 tools?
  3171. MicroDecisionware is currently doing this for DB2 in their Gateway
  3172. product.  This would allow all the Windows fron end tools that talk
  3173. to Microsoft's SQLServer to transparently access OS2DBM and by default
  3174. DDCS/2.
  3175.  
  3176. ----- OS2DBM CFORUM appended at 16:19:38 on 92/09/24 GMT (by UBIQUITY at AUSVM1)
  3177. Subject: VARCHAR confusion in C
  3178. Ref:     Append at 05:29:47 on 92/09/24 GMT (by NAAO3IY at OS2CUST)
  3179.  
  3180. Yeah.  Too bad DBM doesn't support concatenation.  :-)
  3181.  
  3182. Richard D. Hoffman
  3183.  
  3184. ----- OS2DBM CFORUM appended at 16:37:38 on 92/09/24 GMT (by IL03484 at OS2CUST)
  3185. Subject: A Clean Way to define SQL host vars globally across several C Pgms.
  3186.  
  3187. (no text entered)
  3188.  
  3189. ----- OS2DBM CFORUM appended at 18:31:53 on 92/09/24 GMT (by TCC3824 at OS2CUST)
  3190. Subject: Limit on number of Insertions
  3191. Ref: Append at 17:02:46 on 92/09/17 GMT (by FRMLSPA at OS2CUST)
  3192.  
  3193. I receive a fix 9/23/92 that was supposed to fix the problem but it did not
  3194. fix the problem.  Inserted 183,000 rows and the insert program locked up.
  3195. The index was about 10.5 meg when it stopped.  I'll try inserting to the table
  3196. without an index and then create it.  Will let you know.  How big are the
  3197. Indexes on your tables?  You are using ES database manager?
  3198.  
  3199. Kevin McConnell   512-338-7457  Continuum    Austin Tx
  3200.  
  3201. ----- OS2DBM CFORUM appended at 20:53:11 on 92/09/24 GMT (by JWILK at SYDVM1) -
  3202. Subject: ES DBM Access from DOS VDM on same OS/2 V2 Workstation
  3203. Robert, I thought I had appended a reply yesterday, but it appears
  3204. to have been lost ???
  3205. Yes we have ensured that the CFG is OK, we initially got NetBIOS errors
  3206. which we are now over (we increased SQLSIZE).
  3207. We are know at a point of
  3208. 1) On one machine we get a 1042 when we attempt to open a database
  3209.     (ie we have successfully logged on/started the client services
  3210.         and cataloged the database)
  3211. 2) On another machine I used to be able to at least log on and start
  3212.      the client services, but now I get a 1042 for everything I try
  3213.      and do !!!!
  3214. I will admit to fooling around with a sample windows DBM pgm I have
  3215.     and since then things have been astray.....
  3216.  
  3217. Can you explain a couple of things...
  3218. 1) When exactly does the DOS client services interact with DBM and
  3219.      UPM on the OS/2 side, logon ??? startup ?? catalog ?? ...
  3220.      START USING must obviously, but what interaction b4 this ??
  3221. 2) When I do a logon and startup in a DOS VDM is this just for this
  3222.    DOS session or all DOS sessions on the W/S. It appears to me
  3223.    that its for all sessions, cos when I started playing with
  3224.    my windows app, I appeared to be logged on already !!!
  3225. 3) Assuming I must logon and startup in a Windows session, how
  3226.    under WIN-OS2 do I startup SQLLOGN2 and STARTDRQ, I can't get to
  3227.    a DOS session under WIN-OS2, and when I try to run them from the
  3228.    command line under Windows Program Mgr, I get an error saying
  3229.    this must be run from a DOS or OS/2 cmd line !!!!
  3230.  
  3231. Thanks again for your help
  3232. John W
  3233.  
  3234. ----- OS2DBM CFORUM appended at 23:18:11 on 92/09/24 GMT (by SGKILPAT at NYCVMIC1)
  3235. Subject: Database Sizing Tool
  3236. Is there a tool available which will allow me to predict the hard disk
  3237. requirements for an OS/2 database?
  3238.  
  3239. Regards,
  3240. Sandy Kilpatrick
  3241.  
  3242. ----- OS2DBM CFORUM appended at 00:06:21 on 92/09/25 GMT (by IL78568 at OS2CUST)
  3243. Subject: VARCHAR confusion in C
  3244. Ref: Append at 05:29:47 on 92/09/24 GMT (by NAAO3IY at OS2CUST)
  3245.  
  3246. I think the proper way to handle this problem is by including some kind
  3247. of trim function (TRIM, LTRIM, RTRIM maybe) in the SQL implementation.
  3248. Then VARCHAR doesn't have to be used inappropriately.
  3249.  
  3250. Brooks McNeely - Martin Marietta Energy Systems, Inc.
  3251.  
  3252. ----- OS2DBM CFORUM appended at 03:27:00 on 92/09/25 GMT (by HOPKINS at AUSVM8)
  3253. Subject: Computer Asset Inventory Program coming...
  3254. Ref:     Append at 15:14:32 on 92/09/17 GMT (by F079128 at DCTVM3)
  3255. See the upcoming LMU/2 CFORUM when it's available (next week?)
  3256. Lan Managment Utilities for OS/2 . Works very well. We use it
  3257. here locally to track machines, types, adaptors, drives, RAM......
  3258. It's got it all. See your local Marketing Rep for more details on
  3259. the product announcement.
  3260. Ken Hopkins, OS/2 Software Service and Support.
  3261.  
  3262. ----- OS2DBM CFORUM appended at 16:49:39 on 92/09/25 GMT (by TCSC086 at OS2CUST)
  3263. Subject: DBM API pointers
  3264.  
  3265. The DBM Routine GET NEXT DATABASE DIRECTORY ENTRY states that:
  3266. (C syntax):
  3267.  
  3268. "Pointer to the address of the database directory entry info buffer.
  3269. The address of the buffer is returned in this variable."
  3270.  
  3271. The parm is defined :
  3272.  
  3273. struct sqledinfo **buffer_address;
  3274.  
  3275. So the who call is
  3276.  
  3277. short sqledgne( unsigned short handle,
  3278.                 struct sqledinfo **buffer_address,
  3279.                 struct sqlca *sqlca)
  3280.  
  3281. I take this to mean that > I < should declare:
  3282.  
  3283. struct sqledinfo *myPointer and pass the call &myPointer (Pointer to Pointer)
  3284.  
  3285. I have tried this every way I can, including explicit use of SQL_POINTER
  3286. (alias _Seg16). I am aware of the ES32TO16conventions and linkage. I make
  3287. other Routine calls and they are successful (such as Open Dir Scan). I can't
  3288. get it to work for this call. What am I missing or doing wrong! Help!
  3289.  
  3290. Dan Lundy          Time Customer Service, Inc.                      Tampa, Fl
  3291.  
  3292. ----- OS2DBM CFORUM appended at 18:35:50 on 92/09/25 GMT (by XXRBNKB2 at TORVMCOP)
  3293. Subject: DBM API pointers
  3294. Ref:     Append at 16:49:39 on 92/09/25 GMT (by TCSC086 at OS2CUST)
  3295.  
  3296. Dan: I have a program that does what you are trying to do. Like you,
  3297. we have USHORT Handle,
  3298.                Count;
  3299.         struct sqledinfo *Info;
  3300.  
  3301.  sqledops('0',
  3302.             &Handle, &Count, &sqlca );
  3303. while ( i < Count && sqlca.sqlcode == 0)
  3304.  
  3305.   sqledgne ( Handle,       /* note no & symbol */
  3306.              &Info, &sqlca );
  3307.   strncpy ( chzAlias, Info->alias, 8);
  3308.  
  3309. Hope this helps.
  3310.  
  3311. Mark Christmas
  3312. Royal Bank of Canada
  3313. (416) 348-5147
  3314.  
  3315. ----- OS2DBM CFORUM appended at 19:04:55 on 92/09/25 GMT (by TCSC086 at OS2CUST)
  3316. Subject: DBM API pointers
  3317. Ref: Append at 18:35:50 on 92/09/25 GMT (by XXRBNKB2 at TORVMCOP)
  3318.  
  3319. Mark,
  3320.  
  3321.  Thanks for replying. Your code sample is functionally the same as my
  3322. code. However, in my case, I do not receive back an initialized structure.
  3323. Rather, the pointer is set to an invalid address.
  3324.  
  3325. Are you linking with the Migration libraries by any chance? I am using
  3326. the recommended compile options and ES32TO16 define. My library linkgroup is
  3327. SQL_DYN + DDE4MBS + OS2386.
  3328.  
  3329. If you could post your make options (anyone!) it would help me track
  3330. this down. Your code clearly demonstrated exactly how I thought the
  3331. Routine worked. Now I hunt through my comp&link options.
  3332.  
  3333. Thanks again,
  3334.  
  3335. Dan Lundy          Time Customer Service, Inc.                      Tampa, Fl
  3336.  
  3337. ----- OS2DBM CFORUM appended at 12:47:42 on 92/09/28 GMT (by JHAGAN at CLTVMF)
  3338.  
  3339. Subject: SQL1022C error message using RDS.
  3340.  
  3341. Environment: Client machine is running OS/2 2.0 with ES 1.0.
  3342.              Server is running OS/2 1.3 (latest CSD) with ES 1.0.
  3343.              Connection is NETBIOS.
  3344.  
  3345. I have created a table with the following columns defined:
  3346.       COL1 INTEGER NOT NULL,
  3347.       COL2 SMALLINT NOT NULL,
  3348.       COL3 CHAR(10),
  3349.       COL4 CHAR(10),
  3350.       COL5 CHAR(10),
  3351.       COL6 INTEGER,
  3352.       COL7 INTEGER,
  3353.       COL8 INTEGER,
  3354.       COL9 CHAR(4),
  3355.       COL10 VARCHAR(40),
  3356.       COL11 LONG VARCHAR,
  3357.       COL12 LONG VARCHAR,
  3358.       COL13 LONG VARCHAR,
  3359.       COL14 LONG VARCHAR,
  3360.       COL15 LONG VARCHAR,
  3361.       COL16 LONG VARCHAR,
  3362.       COL17 DECIMAL(10,2) NOT NULL.
  3363.  
  3364. When I issue the statement 'SELECT * FROM TABLE' I receive the
  3365. subject error message in response. However, if I remove one of
  3366. the LONG VARCHAR columns the select statement will work. I also
  3367. know that if I create this table locally on the client machine
  3368. that the select works, and if I issue the select at the server
  3369. machine it also works. I only get the error when the database is
  3370. on the server and I issue the select from the client. Because of
  3371. this I assumed that the problem is in the Database Configuration
  3372. at either the client machine or the server machine, but nothing
  3373. I've tried has worked.
  3374.  
  3375. Does anyone have any idea what I need to change to get this to
  3376. work. (Not having all six LONG VARCHAR columns is not an option,
  3377. the "customer" actually wants COL10 to also be a LONG VARCHAR
  3378. column.)
  3379.  
  3380. Thanks,
  3381.  
  3382. John Hagan
  3383.  
  3384. ----- OS2DBM CFORUM appended at 13:52:44 on 92/09/28 GMT (by BILLMC at LEXVM2)
  3385. Subject: Rollback or Commit after softcrash?
  3386.  
  3387. OS/2 2.0 Database manager now does a COMMIT
  3388. to the database if an error(softcrash)occurs.
  3389. 1.3 would remove the data from the database
  3390. when DBM was re-initialization. It appears
  3391. that ROLLBACK code upon error doesn't work
  3392. Is 2.0 supposed to rollback?
  3393.  
  3394. ----- OS2DBM CFORUM appended at 14:27:40 on 92/09/28 GMT (by IL03484 at OS2CUST)
  3395. Subject: SQL DECLARE CURSOR FAILING
  3396.  
  3397. We are encountering a problem consistently, which is DECLARE CURSOR failing.
  3398. This happens despite the syntax for DECLARE CURSOR being correct. This seems
  3399. to occur in a sort of unpredictable and random manner. In the process of
  3400. our determining what caused the error and to overcome we added a EXEC SQL
  3401. COMMIT WORK statement just prior to DECLARE CURSOR statement and found
  3402. DECLARE CURSOR statement worked. However, logically we are not in a position
  3403. to COMMIT the work at that point.
  3404.  
  3405. The SQLCA.SQLCODE returned was +100 with a SQLCA.SQLSTATE of 02000 when
  3406. DECLARE CURSOR failed. We could not attach any reasonable meaning to the
  3407. error messages in the context of what we have.
  3408.  
  3409. We would appreciate if somebody can throw any light on this.
  3410.  
  3411. Thanking You.
  3412.  
  3413. Perepa Bhargav
  3414.  
  3415. Perepa Bhargav
  3416.  
  3417. ----- OS2DBM CFORUM appended at 16:02:20 on 92/09/28 GMT (by MALKEMUS at TOROLAB3)
  3418. Subject: SQL DECLARE CURSOR FAILING
  3419. Ref:     Append at 14:27:40 on 92/09/28 GMT (by IL03484 at OS2CUST)
  3420.  
  3421. DECLARE CURSOR is not an executable statement.  Could it be that there
  3422. is a FETCH before the DECLARE, and an SQLCODEof +100 was left over
  3423. from the FETCH and tested after the "execution" of the DECLARE?
  3424. A COMMIT stuck in between would clear it back to zero.
  3425.  
  3426. Tim Malkemus, Toronto Lab
  3427.  
  3428. ----- OS2DBM CFORUM appended at 19:14:39 on 92/09/28 GMT (by ROBERT at TOROLAB4)
  3429. Subject: DBM API pointers
  3430. Ref:     Append at 19:04:55 on 92/09/25 GMT (by TCSC086 at OS2CUST)
  3431.  
  3432. Dan,
  3433.    I don't have a make file handy to post ( I have one at home ).
  3434.   But,  (I'll try the shotgun approach)
  3435.  
  3436.   are you using the /D compile option, or using a #define for
  3437.   ES32TO16 ?  Use /DES32TO16.
  3438.  
  3439.   If count is > 0, and the get next dir didn't return an error in
  3440.   SQLCODE (sqlca.sqlcode), then the pointer must be getting stomped
  3441.   on.  Maybe the handle (pushed last on stack when passed), is
  3442.   stomping the sqledinfo pointer?
  3443.  
  3444.   How did you conclude the pointer is garbage?
  3445.   Runtime error (storage violation), or garbage in structure?
  3446.   Are you dereferencing the structure correctly?
  3447.   (I spent too long looking at a bug where the SQLCODE in a
  3448.    printf overwrote the string pointer from the host variable.
  3449.    I saw garbage, and assumed the pointer was invalid.  It was
  3450.    valid when passed, but the printf %d should have been %ld ...)
  3451.  
  3452. Robert Begg
  3453.  
  3454. ----- OS2DBM CFORUM appended at 19:22:02 on 92/09/28 GMT (by ROBERT at TOROLAB4)
  3455. Subject: SQL1022C error message using RDS.
  3456. Ref:     Append at 12:47:42 on 92/09/28 GMT (by JHAGAN at CLTVMF)
  3457.  
  3458. The error indicates a memory shortage.
  3459. The cause and action indicate that a remote procedure variable
  3460. cannot exceed 4k.  Its unclear if remote means remote access or
  3461. an ARI procedure, but it seems that it hit a memory limit somewhere.
  3462. This is a limit for remote only, probably the blocking size.
  3463.  
  3464. So while I await a better answer, try increasing the block size
  3465. in the configuration.
  3466.  
  3467. Robert Begg
  3468.  
  3469. ----- OS2DBM CFORUM appended at 17:33:56 on 92/09/29 GMT (by EVANDROP at RIOVM1)
  3470. Subject: Borland C++ acessing DBM
  3471. Ref:     NO REF
  3472.  
  3473. Is there any way to access Database Manager using Borland's compiler?
  3474. I know that the libraries are binary incompatible with Borland OBJ files.
  3475. Should I use only Microsoft's compiler? I'm using Borland C++ 3.1.
  3476.  
  3477. Thanks in advance.
  3478.  
  3479. Evandro Paes dos Reis.
  3480.  
  3481. ----- OS2DBM CFORUM appended at 17:41:11 on 92/09/29 GMT (by KLIGERMN at TOROLAB3)
  3482. Subject  Workstation Database Manager FTN - 10-15-92
  3483.  
  3484. Passing on some information.
  3485.  
  3486. Gene Kligerman
  3487. =========================================================================
  3488.  
  3489. Wanted you all to know that the Toronto Lab will be presenting a Workstation
  3490. Database Trends & Directions on October 15, 1992. The Presentor will be
  3491. Jeff Fisher who many of you know from his earlier life at the Dallas Support
  3492. Center. Jeff will be talking about where IBM will be going with their plans
  3493. for both the OS/2 32 bit and AIX Database Managers. In addition, Jeff will
  3494. also be touching on the evolving DDCS/2 DRDA gateway.
  3495. This FTN session will be an open session....Both Customers & IBM'ers can attend
  3496. .....therefore you should assume that we will not be disclosing any
  3497. confidential information but we will be sending a message that Toronto is
  3498. proceeding ahead and forcefully with the development of the Workstation
  3499. DBM Products.
  3500.  
  3501. If you've had questions about IBM's committment to the OS/2 and AIX DBM's
  3502. this is the FTN that you need to be attending.........
  3503.  
  3504. Check your local FTN scheduling for the time & the place........
  3505.  
  3506. ----- OS2DBM CFORUM appended at 17:41:55 on 92/09/29 GMT (by XXRBNKB2 at TORVMCOP)
  3507. Subject: DBM API pointers
  3508. Ref:     Append at 19:04:55 on 92/09/25 GMT (by TCSC086 at OS2CUST)
  3509.  
  3510. Dan: I must confess that we produced our executable using MS C 6.0.
  3511. The libraries I linked in were os2 llibce sql_dyn and upm (for logon
  3512. purposes). Sorry this doesn't help you out with the C Set/2 stuff.
  3513.  
  3514. Mark Christmas
  3515. Royal Bank of Canada
  3516. (416) 348-5147
  3517.  
  3518. ----- OS2DBM CFORUM appended at 17:53:21 on 92/09/29 GMT (by IL65077 at OS2CUST)
  3519. Subject: Student Records Database
  3520.  
  3521. This question also posted on the ISTHERE forum.   Does anyone know of a student
  3522.  records and course registration database package that uses OS/2 database manag
  3523. er as its back end and which is accessable from OS/2 and DLR/Windows workstatio
  3524. ns?  We need to track course registration for up to 250 students enrolled in se
  3525. veral dozen courses.  PostScript printing a must.  Am I dreaming?  Thanks!
  3526.  
  3527. Bill Nelson, TIUA, Salem, OR
  3528.  
  3529. ----- OS2DBM CFORUM appended at 18:33:14 on 92/09/29 GMT (by XXNOVA24 at TORVMCOP)
  3530. Subject: Student Records Database
  3531. Ref:     Append at 17:53:21 on 92/09/29 GMT (by IL65077 at OS2CUST)
  3532.  
  3533. Bill,
  3534.    Did you considered to write one ala' Client-Server-Programming
  3535. book ?
  3536.  
  3537. Geza Szivos
  3538. NOVACOR Chemicals (403)-290-6583
  3539. NHO-32 801-7th Ave Calgary, Alberta, CANADA  T2P 2N6
  3540.  
  3541. ----- OS2DBM CFORUM appended at 18:35:20 on 92/09/29 GMT (by IL03484 at OS2CUST)
  3542. Subject: A Clean Way to define SQL host vars globally across SQC Pgms
  3543.  
  3544. Currently, we are in the process of developing an app involving GPF, PM, C and
  3545. DBM environments. GPF is a CASE tool to generate GUI front end screens for PM.
  3546. The underlying database is defined in DBM. To provide the actual application
  3547. functionality, we need to write in C (.SQC) language, programs which exit from
  3548. user screens and perform database related activities.
  3549.  
  3550. We intend defining the required host vars for all the database elements at one
  3551. place and refer (declare as externs) to these globals in all our SQC sources. I
  3552. am interested in knowing a clean way to achieve this. Currently we are doing
  3553. this in some inferior manner. The problems encountered are :
  3554. -   I am not able to include these host definitions in a header file 'cause I
  3555.     can not include statements EXEC SQL BEGIN DECLARATION SECTION, etc.
  3556. -   I am not able to include header files in the middle of EXEC statements
  3557.     either. in my SQC sources 'cause preprocessor can not do macro substitution
  3558. -   If I create a SQC source which defines all my host vars and compile this
  3559.     into an object and insert into an object library as an object module with
  3560.     an idea to resolve global hosts at link time, I am encountering a linker
  3561.     invalid module error.
  3562. Would appreciate if somebody has an idea. THANKS.
  3563.  
  3564. Perepa Bhargav
  3565.  
  3566. Perepa Bhargav
  3567.  
  3568. ----- OS2DBM CFORUM appended at 21:10:51 on 92/09/29 GMT (by ROBERT at TOROLAB4)
  3569. Subject: A Clean Way to define SQL host vars globally across SQC Pgms
  3570. Ref:     Append at 18:35:20 on 92/09/29 GMT (by IL03484 at OS2CUST)
  3571.  
  3572. I don't know if this help but,
  3573.  
  3574. It is usually suggested that you create another thread to perform all
  3575. DBM access, (and have only this thread access DBM data structures and
  3576. host variables).  This means sending messages from the Interface thread
  3577. to the DBM thread.  The message could include a pointer to a structure,
  3578. which contains info from fields.  The DBM thread could then copy this
  3579. data into the host variables (the Interface thread would block on the
  3580. sendmsg until this was complete).
  3581.  
  3582. This limits the required scope of the host variables, and also makes the
  3583. app more modular (and easier to test).
  3584.  
  3585. Another useful tidbit, is that host variables can be pointers to global
  3586. vars, thus the the global vars are used elsewhere in the code, and the
  3587. Host vars are only referenced in the .sqc files.  (Somewhere an init
  3588. routine sets the host vars to point to the global vars)
  3589. This isn't as modular though, and you must make sure that only one
  3590. thread is updating the variables at any one time.
  3591.  
  3592. In fact, you could expand this model by using a shared stack or pool, and
  3593. have the interface thread queue requests to the DBM thread.
  3594.  
  3595. Hope this helps somewhat, since it dosn't exactly answer the question.
  3596.  
  3597. ps, I'm the new writer for the DBM Programming book, and I am aware of a
  3598. lack of PM & DBM info.  I would like to hear from anyone writing PM DBM
  3599. apps.
  3600.  
  3601. Robert Begg
  3602.  
  3603. ----- OS2DBM CFORUM appended at 21:18:14 on 92/09/29 GMT (by UBIQUITY at AUSVM1)
  3604. Subject: A Clean Way to define SQL host vars globally across SQC Pgms
  3605. Ref:     Append at 21:10:51 on 92/09/29 GMT (by ROBERT at TOROLAB4)
  3606.  
  3607. If you *really* want an SQL include facility for C, you can use
  3608. #include and run the programs through the C preprocessor before
  3609. you run them through SQLPREP.
  3610.  
  3611. Richard D. Hoffman
  3612.  
  3613. ----- OS2DBM CFORUM appended at 21:32:41 on 92/09/29 GMT (by ROBERT at TOROLAB4)
  3614. Subject: A Clean Way to define SQL host vars globally across SQC Pgms
  3615. Ref:     Append at 21:18:14 on 92/09/29 GMT (by UBIQUITY at AUSVM1)
  3616.  
  3617. Yeah, and you could use ifdefs to avoid expanding unneeded header
  3618. files the first time through, this would avoid feeding the
  3619. SQL precompiler too much stuff.
  3620.  
  3621. Robert Begg
  3622.  
  3623. ----- OS2DBM CFORUM appended at 23:27:15 on 92/09/29 GMT (by 64937908 at TOROHON1)
  3624. Subject: -3010 SQL3010N - SQLGIMP - Urgent
  3625.  
  3626. Hello,
  3627.  
  3628. Is there someone out there who has tryed that API from DBM under
  3629. ES v1.0 ?
  3630.  
  3631. I have 3 programs which under 1.3 were working fine. Now I've got a
  3632. serious problem because they don't.
  3633.  
  3634. I have the proper 32to16 bit header and all the other fucntions of
  3635. my programs work.  I'm using Cset/2 (Latest fixs), workframe and ES
  3636. with Data base server.
  3637.  
  3638. I can't see why ? Name of columns are ok, size of the fields, etc
  3639. Is there someting in the structure which has changed ?
  3640. Any additionnal \0 or something like that... I've just experience that
  3641. with DCC/2 API's.
  3642.  
  3643. Thanks !
  3644.  
  3645. Customer install date is tomorow ..... we never check that part because
  3646. all the precompilation + compilation + link worked OK !
  3647. The other programs we running fine.. that was small programs.
  3648.  
  3649. Patrice Belanger
  3650. Torovm1(pbelange)
  3651. 514-938-7488 tie 848-7488
  3652.  
  3653. ----- OS2DBM CFORUM appended at 12:28:25 on 92/09/30 GMT (by ROBERT at TOROLAB4)
  3654. Subject: SQL1022C error message using RDS.
  3655. Ref:     Append at 19:22:02 on 92/09/28 GMT (by ROBERT at TOROLAB4)
  3656.  
  3657. It turns out that the config parm to change is the rsheapsz.
  3658. In this case increasing the value from 3 to 4 (on the server)
  3659. solved the problem.  The help for this parameter states that
  3660. one 4K buffer is used per application, which should probably
  3661. mean that at least one is used per application.
  3662.  
  3663. Robert Begg
  3664.  
  3665. ----- OS2DBM CFORUM appended at 12:51:09 on 92/09/30 GMT (by 75832092 at EHONE)
  3666. Subject:DBM Server throught Named Pipe
  3667.  
  3668. Is there anybody out there that have already developed a DBM Server
  3669. process connected to client process using named pipe ?
  3670. The client process is already connected to a database (Host) and needs
  3671. some data from another database (local) using transactions
  3672. over a named pipe to the server process and so for the way back.
  3673. I wouldn't like to spent a lot of effort doing thing already done.
  3674. Thanks in advance for any help and suggestion
  3675. Tiziano
  3676.  
  3677. ----- OS2DBM CFORUM appended at 17:42:24 on 92/09/30 GMT (by GALINM at POKVMCP2)
  3678. Subject: SQLQMF to download LONGVARCHAR
  3679. I WOULD LIKE TO DOWNLOAD AN SQL TABLE THAT CONTAINS A LONGVARCHAR COLUMN.
  3680. THIS COLUMN IS NEVER OVER 500 CHARS LONG. THE USERS' GUIDE SAYS THAT
  3681. SQLQMF DOES NOT SUPPORT LONGVARCHAR BUT WILL SUPPORT VARCHAR UP TO
  3682. 4000 CHARS. IS THERE A WAY TO CONVERT THE LONGVARCHAR TO A VARCHAR FOR
  3683. IMPORTING INTO THE OS2DBM USING SQLQMF????
  3684. THANKS IN ADVANCE
  3685. MANNY GALINDO  IBM CCP E. FISHKILL,NY.
  3686.  
  3687. ----- OS2DBM CFORUM appended at 13:54:59 on 92/10/01 GMT (by TCC3824 at OS2CUST)
  3688. Subject: Database Sizing Tool
  3689. Ref: Append at 23:18:11 on 92/09/24 GMT (by SGKILPAT at NYCVMIC1)
  3690.  
  3691. I don't know of any tool that exists by 3rd party that estimates database
  3692. size.  However, on page 6-57 of the OS/2 Parameter and Tuning Guide
  3693. g33f-9437-00it tells how to calculate it.  I just put the formulas in EXCEL
  3694. and use it to estimate DASD requirements.
  3695.  
  3696. Kevin McConnell   512-338-7457  Continuum    Austin Tx
  3697.  
  3698. ----- OS2DBM CFORUM appended at 15:19:27 on 92/10/01 GMT (by UBIQUITY at AUSVM1)
  3699. Subject: SQLQMF to download LONGVARCHAR
  3700. Ref:     Append at 17:42:24 on 92/09/30 GMT (by GALINM at POKVMCP2)
  3701.  
  3702. DB2 LONG VARCHAR fields are just VARCHAR fields in disguise.  I believe
  3703. you can copy the data to another DB2 table which has VARCHAR instead
  3704. of LONG VARCHAR, and then perform SQLQMF.
  3705.  
  3706. Richard D. Hoffman
  3707.  
  3708. ----- OS2DBM CFORUM appended at 22:36:39 on 92/10/01 GMT (by FRML075 at OS2CUST)
  3709. Subject: Windows query tools
  3710.  
  3711. I'd like to get a quick education on the available software products which
  3712. allow Windows users to do ad-hoc querying/reporting against OS/2 DBM.  Could
  3713. anyone offer their opinions of products they've seen?  A brief comparison
  3714. with OS/2 Query Manager might be helpful.
  3715.  
  3716. Thanks!
  3717.  
  3718. Louis Rios, Farmland Industries  816/459-6176
  3719.  
  3720. ----- OS2DBM CFORUM appended at 20:02:22 on 92/10/02 GMT (by FRMLSPA at OS2CUST)
  3721. Subject: A Clean Way to define SQL host vars globally across SQC Pgms
  3722. Ref: Append at 18:35:20 on 92/09/29 GMT (by IL03484 at OS2CUST)
  3723.  
  3724. We use Gpf and Database Manager in our shop.  Some of the limitations on
  3725. "clean" coding of the DECLARE SECTION for host variables are simply limitations
  3726. on the precompiler which doesn't really understand or interpret the language
  3727. of your app only inserts native code for the SQL functions.  This means that
  3728. you can't have FETCH statements referencing host variables that are not
  3729. previously declared in the same source file.  I've written a DBM app with
  3730. Gpf which consists of several different source files (4 of Gpf's and 4 of my
  3731. own user functions).  I use the same block of DECLARE SECTION host variables
  3732. in all of the source files.  I let Gpf send and receive hv's to entry fields
  3733. and such, so I initially let Gpf set up the DECLARE SECTION in its generated
  3734. source files and copied them over adding additional fields and tables as
  3735. needed.  Since the host variables have to be global, if the hv is defined
  3736. with the same name and type in multiple source files which are compiled and
  3737. linked together, accessing the HV populated by a FETCH from one source
  3738. file by another source file works okay.  By the way, I think Gpf works
  3739. really well.  The app I wrote is over 20K lines of code 4/5ths of which is
  3740. PM stuff Gpf generated.  70% of my code is just embedded SQL.
  3741.  
  3742. Scott Atwell - Farmland Industries
  3743.  
  3744. ----- OS2DBM CFORUM appended at 20:12:33 on 92/10/02 GMT (by FRMLSPA at OS2CUST)
  3745. Subject: Tuning spreadsheet for DBM
  3746.  
  3747. Is there or does IBM plan to produce, distribute, and maintain a spreadsheet
  3748. for tuning DBM server parameters like the LANTUNE.XLS file for LAN Server
  3749. which automatically calculates most of the parameters based upon some
  3750. entry fields and good rules of thumb.  I know the formulas are documented
  3751. in the admin guide and we could put them in a spreadsheet, but I would like
  3752. to see IBM own the spreadsheet and provide some good rules of thumb, tips,
  3753. etc.
  3754.  
  3755. Scott Atwell - Farmland Industries
  3756.  
  3757. ----- OS2DBM CFORUM appended at 12:49:22 on 92/10/05 GMT (by ELLENM at RALVM0)
  3758. ..... OS2DBM CFORUM modified at 15:11:00 on 92/10/05 GMT (by ELLENM at RALVM0)
  3759. Append deleted by appender (wrong forum)
  3760.  
  3761. ----- OS2DBM CFORUM appended at 14:54:17 on 92/10/05 GMT (by IL02075 at OS2CUST)
  3762. Subject: C Set/2 And DARI
  3763.  
  3764. I am migrating my applications from EE1.3 to ES2.0 using C Set/2.
  3765. Everything works fine except my calls to Application Remote Interface
  3766. (SQLGPROC) which allways returns -1111. The odd thing is that I ARI
  3767. will work if I run the application with the old DLL files (from
  3768. EE1.3 created with MSC 6.0).  I suspect that I am not compiling
  3769. or linking with the correct options.  I have the Client/Server for
  3770. 2.0 book by Orfali/Harkley and am using the same compile and link
  3771. options that are used in creating a ARI DLL in chapter 31 p805.
  3772.  e.g. icc /C /Ti+ /Q+ /Sp1 /Sm /Gs- /Gm+ /Ge- /Gd+ /DES32TO16
  3773.       LINK386 /ST:15000/SE:1024/CO/NOLOGO/NOI ...
  3774. One thing is that /NODEFAULT is not specified so the linker looks for
  3775. the default libraries to link with (other than sql_dyn), what libraries
  3776. should I be linking with to create a ARI DLL.
  3777. Note: The IBM ES 1.0 DBM Programming Guide (I only have the beta
  3778.             draft) says to use libcdll.lib but this is not part of C Set/2
  3779. and I really do not want to use MSC 6.0 any more.
  3780.  
  3781. Mike Rowan, Mainline Information Systems
  3782.  
  3783. ----- OS2DBM CFORUM appended at 19:14:22 on 92/10/05 GMT (by JHAGAN at CLTVMF)
  3784. Subject: DBM index question.
  3785.  
  3786. I have an application that uses the following SELECT statement
  3787. to get information from a DBM database:
  3788.  
  3789. SELECT A.AAA, BBB, CCC, DDD, EEE
  3790.    FROM A, C
  3791.    WHERE A.AAA IN
  3792.       (SELECT FFF FROM B
  3793.          WHERE GGG = 100 AND HHH=8)
  3794.       AND A.AAA = C.III
  3795.  
  3796. Table A has column AAA defined as a primary key, but the other
  3797. two tables do not have primary keys defined. All three of the
  3798. tables have about 8000 rows in them. On my PS/2 Model 80 this
  3799. select takes approx. 16 seconds to execute. I theorized that
  3800. if I created an index on column III of table C that it should
  3801. improve the performance of this SELECT since DBM would no longer
  3802. have to scan the entire table C.
  3803.  
  3804. HOWEVER, when I have this database on my Mod 80, creating this
  3805. index has little or no effect. But, if I move my database to
  3806. a Server machine to which I am connected creating this index
  3807. decreases the time for the SELECT from 16 seconds to less than
  3808. 4 seconds. My question is what could be different on the server
  3809. that allows it to use the index when it appears that DBM chooses
  3810. not to use it when the database is on my machine? Does one of the
  3811. Database Manager Configuration parameters control this somehow?
  3812.  
  3813. I have also moved the database to DB2 and creating the index doesn't
  3814. help there either. It only makes a difference when the database
  3815. is on the server machine.
  3816.  
  3817. Any suggestions would be appreciated.
  3818.  
  3819. Thanks,
  3820.  
  3821. John Hagan
  3822.  
  3823. ----- OS2DBM CFORUM appended at 20:38:31 on 92/10/05 GMT (by ROBERT at TOROLAB4)
  3824. Subject: C Set/2 And DARI
  3825. Ref:     Append at 14:54:17 on 92/10/05 GMT (by IL02075 at OS2CUST)
  3826.  
  3827. The manual states:
  3828. "The following compiler option is required for ARI server procedures.
  3829. - /Ms  (ensures linkage compatability)"
  3830.  
  3831. I'm the writer of the programming book for the next release, and would
  3832. like to hear back if this works.
  3833. I find problems like this are helpful in correcting the manual.
  3834. (like llibcdll.lib does not come with C /set 2)
  3835. The book also says to link to doscalls.lib
  3836. Robert Begg
  3837.  
  3838. ----- OS2DBM CFORUM appended at 21:58:52 on 92/10/05 GMT (by 64915273 at TOROHON1)
  3839. Subject:  access to a query variable from a qm procedure
  3840. Question 1. Does anyone know how I can get the values returned from
  3841. some queries to QM procedure vriables?
  3842. More precisely, I want to have a procedure that does the following:
  3843. 1. Select a1 from ta1
  3844. 2. Select b1 from tb1
  3845. 3. Store a1 in a procedure var.
  3846. 4. Store b1 in a procedure var.
  3847. 5. Do some validation on these variables
  3848. 6. Display a panel in ADD or Change mode using these variables.
  3849.  
  3850. Question 2.
  3851. Is there a way to display a field in a QM panel that is not
  3852. coming from a table. This field will be for example a procedure variable?
  3853.  
  3854. Thanks.
  3855.  
  3856. ----- OS2DBM CFORUM appended at 22:41:09 on 92/10/05 GMT (by VERSTEEG at UITVM1)
  3857. Subject: access to a query variable from a qm procedure
  3858. Ref:     Append at 21:58:52 on 92/10/05 GMT (by 64915273 at TOROHON1)
  3859.  
  3860. Q1: You can get query output fields into procedure variables as follows:
  3861. /* main proc */
  3862. 'RUN QUERY xxx (REPORT=NO'
  3863. 'SAVE DATA AS temp (REPLACE=YES CONFIRM=NO'
  3864. 'RUN PANEL xxx  (MODE=CHANGE'  /* GET INTO GLOBAL VAR */
  3865. 'RUN PANEL yyy (MODE=ADD'    /* DO THE ACTUAL DATA ENTRY */
  3866.  
  3867. Panel xxx is defined on the temporary table 'temp' created
  3868. by save data. Use the Default panel definition and add an initial
  3869. search query name that points to a query that does a
  3870. SELECT * FROM temp
  3871. In the panel rules add a procedure for change.
  3872. This procedure is called before the panel is displayed
  3873. and should do:
  3874. /*  TEMP proc */
  3875. 'GET CURRENT (N=FIELD1'
  3876. 'SET GLOBAL (A1=N'
  3877. 'QUIT PANEL'
  3878.  
  3879. Panel ENTRY is defined on the table TA1.
  3880. It should have an initial procedure for Add (in panel rules).
  3881. This procedure will get control before the panel is displayed:
  3882. /* Add instance rule */
  3883. 'GET GLOBAL (N=A1'
  3884. /* do some validation on 'N' */
  3885. 'SET CURRENT (FIELDx=N'  /* FIELDx is some field on your panel */
  3886.  
  3887. Q2: Except for calculated fields, all fields on your panel must
  3888. correspond with a table field.
  3889.  
  3890. Anton Versteeg - ESAT PWS CoC Uithoorn, Netherlands
  3891.  
  3892. ----- OS2DBM CFORUM appended at 00:43:55 on 92/10/06 GMT (by IL02075 at OS2CUST)
  3893. Subject: C Set/2 And DARI
  3894.  
  3895.    The /Ms Compiler option only declares all functions as system as
  3896. opposed to optlink. This is not desirable as I am porting this code
  3897. for a perfomance increase over EE1.3 and do not want all functions
  3898. to default to system linkage (which is slower than optlink).
  3899. I have considered this as a possible source of my error and
  3900. defined all of my 'server' routines as SHORT APIENTRY16 which
  3901. boils down to  'short _Far _Pascal' and SQLGPROC itself is taken
  3902. care of by the /DES32TO16, which provides a
  3903. #pragma linkage(SQLGPROC, far _seg16)
  3904. for it (#pragma directives over-ride compiler options such as /Ms).
  3905. The version of the IBM ES/2 V1.0 manual is from Sept 12 1991
  3906. by Lance Amundson (I am waiting on the new release) and it provides
  3907. no information on C Set/2 compiles for DARI. The OS/2 Client/Server
  3908. 2.0 book (chapter 31) provides incomplete information on how to create
  3909. DARI programs and dlls.
  3910.    What I need to know is:
  3911.    1. How 'Server' functions should be declared.
  3912.         (system, APIENTRY16, far pascal...)
  3913.    2. How to compile the 'Server' object module.
  3914.         (compiler options etc.)
  3915.    3. How to LINK386 the 'Server' object module into a DLL
  3916.          (LINK386 compiler options, link libraries)
  3917. 4. How to do all this with C Set/2
  3918.          (I know llibcdll is not included with C Set/2 but what is
  3919.           its replacement,.. should OS2286 be used instead of OS2386
  3920.           if it is a 16 bit DLL?
  3921.  
  3922. If anyone can help it would be greatly appreciated. I have migrated
  3923. all my code except DARI calls and have customers waiting anxiously.
  3924.  
  3925. Note: I am fairly sure the requester portion of this works
  3926.            because it functions properly with the old MSC 6.0
  3927.            'Server' DLL modules (if I rebind them of course)
  3928.  
  3929. Another question: Is IMPLIB necessary? I am under the assumption
  3930.      that it is not because my program never calls the ARI functions
  3931.      directly. Only the TP agent calls the ARI functions. Is this
  3932.      correct.
  3933.  
  3934. Mike Rowan, Mainline Information Systems
  3935.  
  3936. ----- OS2DBM CFORUM appended at 02:57:42 on 92/10/06 GMT (by HARKEY at SJEVM13)
  3937. Subject: C Set/2 And DARI
  3938. Ref:     Append at 00:43:55 on 92/10/06 GMT (by IL02075 at OS2CUST)
  3939.  
  3940. Mike, Have you made it to Chapter 33 yet?  An example of a server
  3941. DLL function starts on page 848.  The make file on page 805
  3942. depends on the compile flags to indicate the correct libraries
  3943. to the linker.  Tell the compiler what you want (in this case
  3944. a DLL using a multithreaded, dynamically linked runtime that allows
  3945. migration extensions) and the right libraries are pulled in.
  3946. IMPLIB is not needed as the only thing calling your DLL is
  3947. the database manger.
  3948.  
  3949. Dan Harkey
  3950.  
  3951. ----- OS2DBM CFORUM appended at 12:08:27 on 92/10/06 GMT (by DMCINNIS at TOROLAB3)
  3952. Subject: DBM index question.
  3953. Ref:     Append at 19:14:22 on 92/10/05 GMT (by JHAGAN at CLTVMF)
  3954.  
  3955. John
  3956. Just the fun of it, try issuing a RUNSTATS and rebind your application.
  3957. The optimizer may not be recognizing that the index exists, but doing a
  3958. runstats will update all of the control tables.
  3959.  
  3960. Dale McInnis / Toronto Canada  (:->)
  3961. Workstation Database Development
  3962. VM/PROFS: TOROLAB3(DMCINNIS)
  3963.  
  3964. ----- OS2DBM CFORUM appended at 12:54:31 on 92/10/06 GMT (by JHAGAN at CLTVMF)
  3965. Subject: DBM index question.
  3966. Ref:     Append at 12:08:27 on 92/10/06 GMT (by DMCINNIS at TOROLAB3)
  3967.  
  3968. Dale, I have tried running RUNSTATS, but it didn't help. The application
  3969. is written in Smalltalk/V PM using the Digitalk Database Interface
  3970. product which (I believe) does a dynamic bind each time you connect to
  3971. the database. Smalltalk DBI only supports dynamic SQL if that could have
  3972. anything to do with it.
  3973.  
  3974. John Hagan
  3975.  
  3976. ----- OS2DBM CFORUM appended at 14:45:31 on 92/10/06 GMT (by MALKEMUS at TOROLAB3)
  3977. Subject: DBM index question.
  3978. Ref:     Append at 19:14:22 on 92/10/05 GMT (by JHAGAN at CLTVMF)
  3979.  
  3980. John,
  3981.  
  3982. Are the stats for the tables involved identical on both systems?  Are
  3983. the buffer pools the same size?  Differences in any of these could
  3984. make a difference in the chosen access path.
  3985.  
  3986. Tim Malkemus, Toronto Lab
  3987.  
  3988. ----- OS2DBM CFORUM appended at 16:44:30 on 92/10/06 GMT (by TCC3824 at OS2CUST)
  3989. Subject: C Set/2 And DARI
  3990. Ref: Append at 14:54:17 on 92/10/05 GMT (by IL02075 at OS2CUST)
  3991.  
  3992. I have this same problem.  There is a bug with C SET/2 and DBM 2.0 ARI.
  3993.  
  3994. The IBM problem # is 926x9.  I will call today and get a status.
  3995.  
  3996. I have left all my DBM code in 16bit for right now but is running on 2.0
  3997.  
  3998. Kevin McConnell   512-338-7457  Continuum    Austin Tx
  3999.  
  4000. ----- OS2DBM CFORUM appended at 18:42:06 on 92/10/06 GMT (by JHAGAN at CLTVMF)
  4001. Subject: DBM index question.
  4002. Ref:     Append at 14:45:31 on 92/10/06 GMT (by MALKEMUS at TOROLAB3)
  4003.  
  4004. Tim,
  4005. The databases at both the server and on my machine have been REORGed
  4006. and had RUNSTATS run against them and since they contain identical
  4007. table definitions and data I would assume that the stats are the same,
  4008. but I don't know for sure. As for the buffer pools, initially they
  4009. were set to the defaults for client on my machine and server on the
  4010. server, I have tried changing my configuration to match the server's
  4011. configuration but it didn't help.
  4012.  
  4013. Is there a way that I can verify that the stats are identical?
  4014.  
  4015. Thanks,
  4016.  
  4017. John Hagan
  4018.  
  4019. ----- OS2DBM CFORUM appended at 20:11:06 on 92/10/06 GMT (by MALKEMUS at TOROLAB3)
  4020. Subject: DBM index question.
  4021. Ref:     Append at 18:42:06 on 92/10/06 GMT (by JHAGAN at CLTVMF)
  4022.  
  4023. Try the following queries on each system:
  4024.  
  4025.    select creator, name, card, npages, fpages, overflow
  4026.    from sysibm.systables
  4027.    where creator=user      /* or whatever the qualifier is */
  4028.      and name in ('A', 'B', 'C')
  4029.  
  4030.    select tbcreator, tbname, name, colcard, avgcollen
  4031.    from sysibm.syscolumns
  4032.    where tbcreator=user    /* or whatever the qualifier is */
  4033.      and tbname in ('A', 'B', 'C')
  4034.  
  4035.    select tbcreator tbname, creator, name,
  4036.           colnames, nleaf, nlevels, clusterratio
  4037.    from sysibm.sysindexes
  4038.    where tbcreator=user    /* or whatever the qualifier is */
  4039.      and tbname in ('A', 'B', 'C')
  4040.  
  4041. High2key and low2key in syscolumns aren't applicable in this case.
  4042.  
  4043. Tim Malkemus, Toronto Lab
  4044.  
  4045. ----- OS2DBM CFORUM appended at 13:08:32 on 92/10/07 GMT (by TCSC086 at HONE84)
  4046. Subject: C Set/2 And DARI
  4047. Ref: Append at 16:44:30 on 92/10/06 GMT (by TCC3824 at OS2CUST)
  4048.  
  4049. Kevin,
  4050.  
  4051.  I am in the midst of developing with ARI. What is the bug you encountered??
  4052.  
  4053. Dan Lundy  Time Customer Service  Tampa Fl
  4054.  
  4055. ----- OS2DBM CFORUM appended at 14:47:35 on 92/10/07 GMT (by JHAGAN at CLTVMF)
  4056. Subject: DBM index question.
  4057. Ref:     Append at 20:11:06 on 92/10/06 GMT (by MALKEMUS at TOROLAB3)
  4058.  
  4059. Tim,
  4060. I ran the three queries you suggested against each database and there
  4061. are some differences. In the SYSTABLES info the values for columns
  4062. NPAGES and FPAGES are 112 on my machine and 114 on the server. In
  4063. the SYSINDEXES information the value in NLEAF is 26 on my machine
  4064. and 29 on the server. In the SYSCOLUMNS information several of the
  4065. values in AVGCOLLEN are higher on my machine than on the server, but
  4066. neither one appear to me to be correct average lengths for the data
  4067. that is in those columns.
  4068.  
  4069. Are these differences the cause of problem? And if so what do I do
  4070. to correct them?
  4071.  
  4072. John Hagan
  4073.  
  4074. ----- OS2DBM CFORUM appended at 16:51:55 on 92/10/07 GMT (by MALKEMUS at TOROLAB3)
  4075. Subject: DBM index question.
  4076. Ref:     Append at 14:47:35 on 92/10/07 GMT (by JHAGAN at CLTVMF)
  4077.  
  4078. Were all the index definitions the same on both systems?  Did you
  4079. check the buffer pool sizes?  The small differences in the stats
  4080. that you mention probably aren't enough to alter the paths chosen,
  4081. but it's possible.  I'd be interested in seeing the Explain reports
  4082. for the two versions.  Can't do that with dynamic SQL, though, so
  4083. you'd have to put the queries in static SQL in a program and
  4084. precompile/bind it.
  4085.  
  4086. Something you might try is recoding the query to get the same
  4087. results:
  4088.  
  4089.    SELECT A.AAA, BBB, CCC, DDD, EEE
  4090.    FROM A, B, C
  4091.    WHERE  A.AAA = B.FFF
  4092.       AND B.GGG = 100 AND B.HHH=8
  4093.       AND A.AAA = C.III
  4094.  
  4095. This will be the same *only* if FFF is unique in table B, at least
  4096. after qualifying B rows on GGG and HHH.  If it isn't, you'll get
  4097. duplication of rows in the result that you didn't get with the
  4098. original.  (Or more duplication than you got.)  Use SELECT DISTINCT if
  4099. that's appropriate.
  4100.  
  4101. Tim Malkemus, Toronto Lab
  4102.  
  4103. ----- OS2DBM CFORUM appended at 20:21:42 on 92/10/07 GMT (by TCC3824 at OS2CUST)
  4104. Subject: CALL DBM -> ruturn code
  4105.  
  4106. How do I get a return code from the following?
  4107. /*  */
  4108. call dbm 'start using database'
  4109.  
  4110. rc does not give me the result.
  4111.  
  4112. If I look the trace it does display the return code.
  4113. How do I get it into a variable?
  4114.  
  4115. Kevin McConnell   512-338-7457  Continuum    Austin Tx
  4116.  
  4117. ----- OS2DBM CFORUM appended at 20:50:06 on 92/10/07 GMT (by FCOC079 at OS2CUST)
  4118. Subject: CALL DBM -> ruturn code
  4119. Ref: Append at 20:21:42 on 92/10/07 GMT (by TCC3824 at OS2CUST)
  4120.  
  4121. The SQLCODE should be in the Rexx variable called "RESULT".
  4122.  
  4123. Dave Boll
  4124.  
  4125. ----- OS2DBM CFORUM appended at 07:14:48 on 92/10/08 GMT (by IL02075 at OS2CUST)
  4126. Subject: C Set/2 And DARI
  4127.  
  4128.    Thank you Mr Harkey (Sorry I misspelled your name in my original
  4129. question). The bottom line is that the Server Dlls must be linked
  4130. with the migration libraries.
  4131.   Is there any way to use the standard libraries, or must I wait
  4132. until 32BIT ES is available?. And what are the implications of
  4133. this if I wanted to use DDCS or DRDA? Does DARI work with these?
  4134. I have some customers who would like to use say an AS/400 for
  4135. their server.
  4136.   For those of you wanting to use DARI with C Set/2 I am at
  4137. syslevel CS00000 on C Set and, other than the migration library
  4138. question, have had no problems with the DBM API.
  4139.  
  4140.   To Mr Harkey: thank you for your book it is invaluable.
  4141.   To Anyone Writing DBM code: BUY IT (....trust me)
  4142.  
  4143. Mike Rowan, Mainline Information Systems
  4144.  
  4145. ----- OS2DBM CFORUM appended at 13:21:48 on 92/10/08 GMT (by WZ00533 at LINK21)
  4146. Subject: DOS Embedded SQL Support
  4147. Ref: Append at 07:14:48 on 92/10/08 GMT (by IL02075 at OS2CUST)
  4148.  
  4149. I have some programmers who would like to write DOS Microfocus
  4150. COBOL programs to access an OS/2 Database running on an OS/2 server.
  4151.  
  4152. Can we do that?  If so what pieces are required.
  4153.  
  4154. Dave Ferrey - Bethlehem Steel Corp. Bethlehem PA.
  4155.  
  4156. ----- OS2DBM CFORUM appended at 21:25:01 on 92/10/08 GMT (by SDRYAN at DALVM3)
  4157. Subject: DDCS/2 To DB2 Distributed Education
  4158. DISTRIBUTED DATABASE - If you're interested in learning about DDCS/2 to
  4159. DB2 distributed database, AND you'd like plenty of hands on lab
  4160. experience, then U4120 is the course for you!
  4161.  
  4162. The course objectives for U4120 - Distributed Database Workshop, OS/2 to
  4163. DB2, are the following:
  4164.  
  4165.  -   Successfully install and configure SAA Distributed Database
  4166.      Connection Services/2 (DDCS/2)
  4167.  -   Assess DRDA requester and DRDA server communication definitions
  4168.      and DB2 communications database entries
  4169.  -   Configure NETBIOS and APPN clients
  4170.  -   Implement security between the server and the requester
  4171.  -   Explain application programming considerations in an OS/2 to DB2
  4172.      distributed environment
  4173.  -   Preprocess and bind an OS/2 application that accesses distributed
  4174.      relational data on the DB2 DRDA server.
  4175.  -   Discuss the tools available for DB2 to OS/2 distributed database
  4176.      problem determination
  4177.  
  4178.   SECTION    CLASS           START      END      START
  4179.   NUMBER    LOCATION         DATE       DATE     TIME   BUILDING
  4180.   ------- ---------------- --------   --------  ------  --------
  4181.    Y432   ARLINGTON, VA    11/10/92   11/13/92  08:30A  F18
  4182.    Y433   IRVING, TX       12/14/92   12/17/92  08:30A  F11
  4183.    Z153   SAN FRANCISCO    01/19/93   01/22/93  08:30A
  4184.    Z155   IRVING, TX       03/02/93   03/05/93  08:30A
  4185.  
  4186. Course duration:  4 days
  4187. Tuition:  $1600
  4188.  
  4189. Enroll today by calling 1-800-IBM-TEACh.  If you have questions
  4190. regarding course content, contact Sherry Ryan at 1-214-550-4282
  4191.  
  4192. ----- OS2DBM CFORUM appended at 22:37:25 on 92/10/08 GMT (by HARKEY at SJEVM13)
  4193. Subject: C Set/2 And DARI
  4194. Ref:     Append at 07:14:48 on 92/10/08 GMT (by IL02075 at OS2CUST)
  4195.  
  4196. Mike, Don't worry about the name.  You should see what can be
  4197. done with Orfali. :-)
  4198.  
  4199. I don't see why migration libraries are required if you don't code any
  4200. of the migration functions in your DLL?  You might check and see if
  4201. that is the case in your code.
  4202.  
  4203. Take a look at the part of Chapter 27 starting on page 651.  There is
  4204. a comparison of the various SAA DBMSs.  You'll find that DARI is
  4205. "an advanced construct that goes beyond SAA" and is available only
  4206. on OS/2.
  4207.  
  4208. Thanks for the endorsement.
  4209.  
  4210. Dan Harkey
  4211.  
  4212. ----- OS2DBM CFORUM appended at 00:18:16 on 92/10/09 GMT (by FSENSE at RALVMM)
  4213. Subject: Using a symbolic variable for a character string
  4214. The answer my question is probably in one of the OS/2 DBM manuals, but
  4215. our I/S group doesn't make them available so can someone please give me
  4216. a hand on this one?  I have an application using Query Manager that runs
  4217. a simple select like this:
  4218.  
  4219.       SELECT * FROM ORG WHERE NAME = &NAME
  4220.  
  4221. When this query is run from a menu, the user is prompted to enter the
  4222. value for &NAME and must enter it in the format: 'SMITH' including the
  4223. apostrophes.  It's easy to forget them and I'd like to be able to have
  4224. them enter just the name characters without the apostrophes.  Anyone have
  4225. a simple solution?  Second, is there some way to disable the case
  4226. sensitivity so that a name could be entered without the first letter in
  4227. caps and still get a hit on a column in the database containing that name
  4228. beginning with a capital letter?
  4229. Floyd Sense, Networking Systems, RTP  (FSENSE at RALVMM)
  4230.  
  4231. ----- OS2DBM CFORUM appended at 12:38:20 on 92/10/09 GMT (by JHAGAN at CLTVMF)
  4232. Subject: DBM index question.
  4233. Ref:     Append at 16:51:55 on 92/10/07 GMT (by MALKEMUS at TOROLAB3)
  4234.  
  4235. Tim, the latest thing I tried was to backup the server database
  4236. to diskette and restore it on my machine so that the databases are
  4237. identical. I ran the three selects that you gave me to verify that
  4238. the statistics were the same and they were. But I still get the big
  4239. difference in time between the server machine and my machine.
  4240.  
  4241. Next I will try putting the selects in a C program so I can run
  4242. Explain against them. I'm not exactly an expert C programmer so
  4243. it might take me a while to get it done. I'll send you the results
  4244. when I get them. Thanks for all of your help.
  4245.  
  4246. John Hagan
  4247.  
  4248. ----- OS2DBM CFORUM appended at 12:51:10 on 92/10/09 GMT (by DMCINNIS at TOROLAB3)
  4249. Subject: DBM index question.
  4250. Ref:     Append at 12:38:20 on 92/10/09 GMT (by JHAGAN at CLTVMF)
  4251.  
  4252. John
  4253. Is the hardware for the server the same as your machine?
  4254. The difference between SCSI and ESDI drives can account for a
  4255. large difference.  Is there anything else running on the systems?
  4256. Are you using cache on 1 but not the other?
  4257. If you backed up the database from the server onto your machine and
  4258. it is still slower then it is not the database which is slowing you
  4259. down.
  4260.  
  4261. Dale McInnis / Toronto Canada  (:->)
  4262. Workstation Database Development
  4263. VM/PROFS: TOROLAB3(DMCINNIS)
  4264.  
  4265. ----- OS2DBM CFORUM appended at 15:38:58 on 92/10/09 GMT (by PMS7508 at MARTLINK)
  4266. Subject: WorkFrame/2 Support
  4267.  
  4268. I would like to see the SQLPREP and SQLBIND commands enabled for the
  4269. WorkFrame/2 environment.  This includes the ability to invoke the
  4270. SQL preprocessor (SQLPREP) and SQL postprocessor (SQLBIND) from the Actions
  4271. selection of the WorkFrame/2 menu, and the ability to set default options for
  4272. the commands from the Configure selection of the WorkFrame/2 menu.
  4273.  
  4274. Are there any plans in place to provide these capabilities ?
  4275.  
  4276. John Baker, Policy Management Systems Corporation
  4277.  
  4278. ----- OS2DBM CFORUM appended at 15:53:06 on 92/10/09 GMT (by PMS7508 at MARTLINK)
  4279. Subject: SAA PL/I Package/2 Support
  4280.  
  4281. Will the Database Manager be enhanced to support embedded SQL in PL/I ?
  4282.  
  4283. John Baker, Policy Management Systems Corporation
  4284.  
  4285. ----- OS2DBM CFORUM appended at 15:57:19 on 92/10/09 GMT (by FCOC079 at OS2CUST)
  4286. Subject: DOS Embedded SQL Support
  4287. Ref: Append at 13:21:48 on 92/10/08 GMT (by WZ00533 at LINK21)
  4288.  
  4289. Yes you can write DOS MicroFocus Cobol programs which access an OS/2 DBM
  4290. database server.  It uses the standard DOS client support stuff (which is in
  4291. the \DBDRQLIB directory when you install DBM on the server, if you requested
  4292. DOS client support).  Your Cobol program has to do the 'Start Using Database'
  4293. (SQLGSTRD) and 'Stop Using Database' (SQLGSTPD) calls.
  4294. When calling DBM routines from MicroFocus Cobol programs, the parameter order
  4295. in Cobol is the reverse of what the DBM routines expect.  To remedy this, use
  4296. the Call-Convention feature of MF Cobol:
  4297.       /
  4298.        Environment Division.
  4299.        Special-Names.
  4300.            Call-Convention 3 Is OS2API.
  4301. You can then code your DBM routine calls with parameters listed in the same
  4302. order as they are documented in the DBM programming reference:
  4303.     Call OS2API 'SQLGSTRD' Using
  4304.                         By Value Loc-Spare1
  4305.                         By Value Loc-Dbase-Name-Len
  4306.                         By Value Loc-D-Use
  4307.                     By Reference SqlCa
  4308.                     By Reference Loc-Spare2
  4309.                     By Reference Loc-Dbase-Name
  4310. Once you've got your program coded and compiled (I'd use MicroFocus' SQL
  4311. precompiler, if you have at least release 2.5.51, or thereabouts, rather
  4312. than SQLPREP), you have to link your object code with PCDRSTAT.LIB and (last
  4313. I knew) certain 'C' runtime libraries.  These are static links (which can make
  4314. your .EXE pretty good sized).
  4315.  
  4316. Basically copy the whole \DBDRQLIB directory to your DOS client workstation.
  4317. In there, you have to do some setup to catalog the databases at your server.
  4318. And you have to setup the DBDRQLIB.CFG file to correctly reflect where the
  4319. DOS client support stuff was put.
  4320.  
  4321. RSVP if ?
  4322.  
  4323. Dave Boll
  4324.  
  4325. ----- OS2DBM CFORUM appended at 18:10:53 on 92/10/09 GMT (by FRMLSPA at HONE84)
  4326. Subject: DOS Embedded SQL Support
  4327. Ref: Append at 13:21:48 on 92/10/08 GMT (by WZ00533 at LINK21)
  4328.  
  4329. Yes you can.  You have to do the SQLPREP and SQLBIND from an OS/2 machine.
  4330. You probably want to refer to IBM's Personal Systems/Issue 4, 1991 which
  4331. has an article describing how to set this up and make it work.
  4332. It takes a fair amount of memory on the DOS workstation.
  4333.  
  4334. Scott Atwell - Analyst Programmer - Farmland Industries, Kansas City, MO
  4335.  
  4336. ----- OS2DBM CFORUM appended at 21:09:00 on 92/10/09 GMT (by KDROMREL at SFOVMIC1)
  4337. Subject: WorkFrame/2 Support
  4338. Ref:     Append at 15:38:58 on 92/10/09 GMT (by PMS7508 at MARTLINK)
  4339.  
  4340. I can not speak for official IBM direction on futures.
  4341. BUT, there was a flash released that explained how to add SQLPREP
  4342. (and SQLBIND ain't much different) as a tool under the WorkFrame.
  4343.  
  4344. Basic instructions are:
  4345. 1)  Select Configure
  4346. 2)  Select Tools, then NEW
  4347. 3)  Add Program Title = whatever you want
  4348.     Path and filename = x:\SQLLIB\SQLPREP.EXE (note the path is optional)
  4349.     Startup Directory = .
  4350.     Invocation string = %a%z /B (I also add /M=SQLPREP.MSG
  4351. 4)  You can prompt for the database name or put it in the invocation
  4352.     string.
  4353.  
  4354. Look at the SQLPREP and SQLBIND syntax diagrams to see if there are
  4355. other options you might wish to use.  You will need to select the
  4356. .SQC file and then select the Tool off of the Tools pull down menu.
  4357.  
  4358. You can tweak with the Command Prompt and Foreground and Background
  4359. options to see how you prefer it to work (whether a screen with the
  4360. output is left visible or not, etc).
  4361.  
  4362. Kelvin D. Romrell
  4363.  
  4364. ----- OS2DBM CFORUM appended at 00:34:10 on 92/10/10 GMT (by VCHOLUIG at SYDVM1)
  4365. Subject: A few questions
  4366.  
  4367. 1. Can we used REORG and RUNSTATS through RDS?
  4368.    Will the actual work be done on the Server or the Requester?
  4369. 2. REORG work file
  4370.       Using RDS, will the work file parameter relate to the client
  4371.       or the Server?
  4372. 3. What locks are taken by REORG? I expect a Table lock???
  4373. 4. Does Referencial integrity has any impact on REORG performance?
  4374. 5. What lock is taken by RUNSTATS?
  4375.    Can it impact a program running in parallel?
  4376. 6. What lock taken by SQLBIND?
  4377.    Can we re-bind a program while it is running?
  4378.  
  4379. Thanks,
  4380.    Gerard Holuigue
  4381.  
  4382. ----- OS2DBM CFORUM appended at 01:19:02 on 92/10/10 GMT (by IL02075 at OS2CUST)
  4383. Subject: Apostrophe in Query
  4384.  
  4385.    What does one do when an apostrophe is part of the search
  4386. criteria when doing dynamic SQL.
  4387. E.G. SELECT ID FROM PEOPLE WHERE LASTNAME = 'O'Malley'
  4388.    This returns sqlcode -104 An unexpected token "MALLEY" was
  4389. found following ...
  4390. any other machine?Every DARI call (SQLGPROC) returns -1109 which
  4391. means it cant find the DLL. I know forsure that the DLL's
  4392.  
  4393. Mike Rowan, Mainline Information Systems  Tallahassee Fl
  4394.  
  4395. ----- OS2DBM CFORUM appended at 18:53:50 on 92/10/11 GMT (by FCOC079 at OS2CUST)
  4396. Subject: Apostrophe in Query
  4397. Ref: Append at 01:19:02 on 92/10/10 GMT (by IL02075 at OS2CUST)
  4398.  
  4399. Just double up the instance of the delimiter, wherever it occurs:
  4400.  
  4401. SELECT * FROM PEOPLE WHERE NAME = 'O''MALLEY'
  4402.  
  4403. Dave Boll
  4404.  
  4405. ----- OS2DBM CFORUM appended at 09:20:10 on 92/10/12 GMT (by VERSTEEG at UITVM1)
  4406. Subject: Using a symbolic variable for a character string
  4407. Ref:     Append at 00:18:16 on 92/10/09 GMT (by FSENSE at RALVMM)
  4408.  
  4409. The answer to the first question is easy. Change the query to:
  4410.  
  4411.       SELECT * FROM ORG WHERE NAME = '&NAME'
  4412.  
  4413. To answer your second question. If you are using Extended Services
  4414. you can change the query to:
  4415.  
  4416.       SELECT * FROM ORG WHERE TRANSLATE(NAME) = '&NAME'
  4417.  
  4418. Note that this query will return 'smith', 'SMITH', 'Smith', 'sMITH' etc.
  4419.  
  4420. Anton Versteeg - ESAT PWS CoC Uithoorn, NL  *** 1,000,000+ OS/2 2.0 ***
  4421.  
  4422. ----- OS2DBM CFORUM appended at 11:57:48 on 92/10/12 GMT (by WZ00533 at LINK21)
  4423. Subject: DOS Embedded SQL Support
  4424. Ref: Append at 15:57:19 on 92/10/09 GMT (by FCOC079 at OS2CUST)
  4425.  
  4426. Thanks for your response.
  4427.  
  4428. Does the information in your response apply to Extened Servies
  4429. DBM only, or does it apply to OS/2 1.3 EE DBM?  We will be
  4430. moving to Extended Services, but... you know how these migrations
  4431. go, it may be awhile.
  4432.  
  4433. Thanks again
  4434.  
  4435. Dave Ferrey - Bethlehem Steel Corp. Bethlehem PA.
  4436.  
  4437. ----- OS2DBM CFORUM appended at 11:58:09 on 92/10/12 GMT (by WZ00533 at LINK21)
  4438. Subject: Forcing off users.
  4439. Ref: Append at 15:57:19 on 92/10/09 GMT (by FCOC079 at OS2CUST)
  4440.  
  4441. We ran into a problem the other day.
  4442. Scenerio:
  4443.  
  4444. User is logged on (using RDS) to a OS/2 1.3 EE DBM.  His PC
  4445. 'locks up' so he reboots.  He then logs on to DBM again.  He now
  4446. is now logged on to DBM twice!  The first logon has locks!!! and others
  4447. are being affected.
  4448.  
  4449. Is there a way to force a single user out of DBM.
  4450.  
  4451. Thanks,
  4452.  
  4453. Dave Ferrey - Bethlehem Steel Corp. Bethlehem PA.
  4454.  
  4455. ----- OS2DBM CFORUM appended at 17:10:27 on 92/10/12 GMT (by JBRAUER at STUTVM3)
  4456. Subject: Forcing off users.
  4457. Ref:     Append at 11:58:09 on 92/10/12 GMT (by WZ00533 at LINK21)
  4458.  
  4459. Dave,
  4460.    - sorry, under OS/2 EE 1.3 there is no official way to do this.
  4461.    - under ES 1.0, a new API is offered within DBM (SQLEKILL) which
  4462.      allows to kill the ENTIRE Database Manager on a system. This one
  4463.      could be utilized to reset a db server system (involving shutting
  4464.      off ALL users accessing this particular server) in cases of
  4465.      zombie locks.
  4466.      Ask your IBM representative to get the SQLEKILL documentation.
  4467.  
  4468. In case of you having configured the RDS connections to go via APPC (not
  4469. SQLLOO), you could maybe try to go into CM's (Communication Managers)
  4470. Subsystem Management -> Session Services and look whether you can
  4471. deactivate eventual zombie sessions resulting from a previous logon
  4472. attempt of the offending client workstation.
  4473. However, I don't know whether this one works...
  4474. ____________________________________________________________
  4475. Joachim Brauer, IBM I/S Applications M&S, Ehningen (Germany)
  4476.  
  4477. ----- OS2DBM CFORUM appended at 18:24:02 on 92/10/12 GMT (by FRMLSPA at HONE84)
  4478. Subject: Using a symbolic variable for a character string
  4479. Ref: Append at 00:18:16 on 92/10/09 GMT (by FSENSE at RALVMM)
  4480.  
  4481. Yes. Not that I'm aware of.  You can easily remedy your first delima by
  4482. putting tick marks around your variable:
  4483.  
  4484.   SELECT * FROM ORG WHERE NAME='&NAME'
  4485.  
  4486. DBM is case sensitive and I don't know a way around case sensitivity
  4487. at an SQL level only (not involving a program to do translation).
  4488.  
  4489. Scott Atwell - Analyst Programmer - Farmland Industries, Kansas City, MO
  4490.  
  4491. ----- OS2DBM CFORUM appended at 22:06:40 on 92/10/12 GMT (by MROACH at BOSTON)
  4492. Subject: Loading null data.
  4493.  
  4494. I am trying to load data that may be null into fields defined as smallint
  4495. and date.  It ain't working!  We are using the import/export facility
  4496. of DBM as well as inserting through the CLI.  Is there a way around this?
  4497. We don't want to corrupt the data just to get it loaded.  Any help would
  4498. be appreciated.
  4499.  
  4500. Mark Roach
  4501. Norwalk, CT
  4502.  
  4503. ----- OS2DBM CFORUM appended at 00:33:25 on 92/10/13 GMT (by WYATTDP at SYDVM1)
  4504. Subject: the meaning of beep
  4505.  
  4506. We have an applicatication that uses DBM. The application is not
  4507. behaving correctly on one particular machine. We notice that, on
  4508. this machine, we only get 1 beep when we STARTDBM instead of the
  4509. normal 3 beeps. DBM seems to be running. Can anyone tell me what is
  4510. the meaning of the beeps and what it means if you only get 1 of them?
  4511. Thanks in advance,
  4512.                                          - David Wyatt
  4513.  
  4514. ----- OS2DBM CFORUM appended at 07:02:51 on 92/10/13 GMT (by LX0037 at SYDVM1)
  4515. Subject: SQL0805N error on PREPARE via REXX - recovered database.
  4516. Folks
  4517. This is a repeat of an entry in the oS2SQL forum because this forum
  4518. seems more appropriate.
  4519. I have built a database on a standalone DBM machine - using os/2 2.0
  4520. and ES 1.0. Program interface is via REXX dynamic SQL and works fine.
  4521. Now have to instal the database and programs in the production machine
  4522. which was constructed from the same OS/2 2.0 and ES 1.0 but it does
  4523. have a comms manager component for 3270 access. This is the only
  4524. difference in configuration which is all defaults all the the way.
  4525.   I dumped the database to diskettes and restored up onto the
  4526. production machine. All OK and QM lets me see the tables and
  4527. SQL queries via QM all work fine.
  4528.    When I run the REXX program, the first attempt to invoke a
  4529. PREPARE via SQLEXEC results in an error SQL0805N saying that
  4530. package "NULLID.SQLAC1A0 not found". I used a QM query of
  4531. "SELECT * FROM SYSIBM.SYSPLAN" to look at the package names
  4532. in both systems and they are identical in every respect.
  4533.    There is a package SQLAC1A1 but no package called SQLAC1A0.
  4534. Questions :
  4535. 1. Why is the SQLEXEC looking for a different package now ?
  4536. 2. How do you relate the name of the package back to the bind options
  4537.     etc to see what it is that is different. Obviously SQLEXEC has some
  4538.     methodolgy but what is it ?
  4539. 3. Since REXX does not really need binding according to the good books
  4540.    how come it is so sensitive ?
  4541. 4. What OS/2 parameters get get involved in this ?  Code Page ?
  4542.    Isolation level (default assumes CS) ?????
  4543. 5. I am going to rebind the three REXX isolation level bind files
  4544.    but I would like to get the systems identical and need to understand
  4545.    what it is that I have to correct, even if it means a rebuild.
  4546.  
  4547. Ian Logan
  4548. Lexmark International  Sydney  Australia
  4549.  
  4550. ----- OS2DBM CFORUM appended at 11:05:53 on 92/10/13 GMT (by VCHOLUIG at SYDVM1)
  4551. Subject: EE 1.3 - Moving Database accross disk drives
  4552.  
  4553. Short of exporting every Database object, is there a simple way to
  4554. move a databse from the D: drive to the E: drive????
  4555.  
  4556. An surgent solution is required for a "critical situation".
  4557.  
  4558.  Gerard Holuigue
  4559.  
  4560. ----- OS2DBM CFORUM appended at 13:56:01 on 92/10/13 GMT (by EYERMAN at DALHQIC2)
  4561. Subject: the meaning of beep
  4562. Ref:     Append at 00:33:25 on 92/10/13 GMT (by WYATTDP at SYDVM1)
  4563.  
  4564.   The three beeps are for the activation of each DBM Netbios thread.
  4565. In order to use Netbios, all three threads need to be active.  I image
  4566. that there are not enough netbios resources defined on your machine.
  4567. The netbios resources can be increased by changing the sessions, NCBs,
  4568. and names parameters found in the NETBEUI_nif section of the
  4569. protocol.ini file.  The file is located in the ibmcom subdirectory.
  4570.  
  4571.   I do not know of any hard and fast rule for increasing the resources,
  4572. but there are my settings:
  4573.  
  4574.   sessions = 70   NCBs = 140   Names = 31
  4575.  
  4576.   HOWEVER, my machine is a database server and DDCS/2 gateway.  The
  4577. numbers will be lower for a client machine.
  4578.  
  4579. David Eyerman
  4580. Software Vendor Systems Center
  4581.  
  4582. ----- OS2DBM CFORUM appended at 13:58:24 on 92/10/13 GMT (by DMCINNIS at TOROLAB3)
  4583. Subject: EE 1.3 - Moving Database accross disk drives
  4584. Ref:     Append at 11:05:53 on 92/10/13 GMT (by VCHOLUIG at SYDVM1)
  4585.  
  4586. You can back it up, drop the original, then create a new database
  4587. on the drive of your choice and restore.
  4588.  
  4589. Dale McInnis / Toronto Canada  (:->)
  4590. Workstation Database Development
  4591. VM/PROFS: TOROLAB3(DMCINNIS)
  4592.  
  4593. ----- OS2DBM CFORUM appended at 07:04:56 on 92/10/14 GMT (by WYATTDP at SYDVM1)
  4594. Subject: the meaning of beep
  4595. Ref:     Append at 13:56:01 on 92/10/13 GMT (by EYERMAN at DALHQIC2)
  4596.  
  4597. Thanks David, we had checked these resources but will check again.
  4598.                      - David Wyatt
  4599.  
  4600. ----- OS2DBM CFORUM appended at 07:07:02 on 92/10/14 GMT (by JWILK at SYDVM1) -
  4601. Subject: Products supporting ES DBM from OS/2 Windows or DOS
  4602. Does anyone have a list of Products (& vendors) that support
  4603. ES DBM either from OS/2 itself or via DOS or Windows Requesters.
  4604. I'm interested in both End User and Programmer tools !!!!
  4605. Thanks
  4606. John Wilkinson
  4607.  
  4608. ----- OS2DBM CFORUM appended at 07:29:57 on 92/10/14 GMT (by LX0037 at SYDVM1)
  4609. OS2DBM CFORUM appended at 17:02:51 on 92/10/13 EST (by LX0037 at SYDVM1)
  4610. Subject: SQL0805N error on PREPARE via REXX - recovered database.
  4611. Folks
  4612. | Ran DBM BIND @SQLUBIND.LST TO DATABASE mydatabase and it created
  4613. | three additional package files SQLAC1A0 SQLAR1A0 SQLAU1A0 which
  4614. | match the SQLAC1A1 SQLAR1A1 and SQLAU1A1 I already have. Problem
  4615. | solved but how come my REXX program runs OK at home without the
  4616. | -0 suffix files ? What factor triggers the -0 suffix ?
  4617.  
  4618. This is a repeat of an entry in the oS2SQL forum because this forum
  4619. seems more appropriate.
  4620. I have built a database on a standalone DBM machine - using os/2 2.0
  4621. and ES 1.0. Program interface is via REXX dynamic SQL and works fine.
  4622. Now have to instal the database and programs in the production machine
  4623. which was constructed from the same OS/2 2.0 and ES 1.0 but it does
  4624. have a comms manager component for 3270 access. This is the only
  4625. difference in configuration which is all defaults all the the way.
  4626.   I dumped the database to diskettes and restored up onto the
  4627. production machine. All OK and QM lets me see the tables and
  4628. SQL queries via QM all work fine.
  4629.    When I run the REXX program, the first attempt to invoke a
  4630. PREPARE via SQLEXEC results in an error SQL0805N saying that
  4631. package "NULLID.SQLAC1A0 not found". I used a QM query of
  4632. "SELECT * FROM SYSIBM.SYSPLAN" to look at the package names
  4633. in both systems and they are identical in every respect.
  4634.    There is a package SQLAC1A1 but no package called SQLAC1A0.
  4635. Questions :
  4636. 1. Why is the SQLEXEC looking for a different package now ?
  4637. 2. How do you relate the name of the package back to the bind options
  4638.     etc to see what it is that is different. Obviously SQLEXEC has some
  4639.     methodolgy but what is it ?
  4640. 3. Since REXX does not really need binding according to the good books
  4641.    how come it is so sensitive ?
  4642. 4. What OS/2 parameters get get involved in this ?  Code Page ?
  4643.    Isolation level (default assumes CS) ?????
  4644. 5. I am going to rebind the three REXX isolation level bind files
  4645.    but I would like to get the systems identical and need to understand
  4646.    what it is that I have to correct, even if it means a rebuild.
  4647.  
  4648. Ian Logan
  4649. Lexmark International  Sydney  Australia
  4650.  
  4651. ----- OS2DBM CFORUM appended at 11:28:28 on 92/10/14 GMT (by 75832092 at EHONE)
  4652. Subject:Cloning a View definition from AS/400 to PS/2
  4653. I've a database on AS/400 with some views defined on it.
  4654. Is there any way to replicate these views on a PS/2 database
  4655. without redefine it any time they change ?
  4656. What i'm locking for is a way to get the view definition from AS/400
  4657. and replicate it on PS/2.
  4658. I'm using DDCS/2 on the PS/2 station.
  4659. I know that in the SYSVIEWS table i can find for each view some
  4660. records with the SQL CREATE command used to build the view.
  4661. If i EXPORT the view than data are coming down.
  4662. Any suggestion .........
  4663. Thanks
  4664. Tiziano
  4665.  
  4666. ----- OS2DBM CFORUM appended at 14:56:08 on 92/10/14 GMT (by MALKEMUS at TOROLAB3)
  4667. Subject: A few questions
  4668. Ref:     Append at 00:34:10 on 92/10/10 GMT (by VCHOLUIG at SYDVM1)
  4669.  
  4670. >1. Can we used REORG and RUNSTATS through RDS?
  4671. >   Will the actual work be done on the Server or the Requester?
  4672.  
  4673. Reorg, yes.  Runstats, I think so (anyone know for sure?).  The
  4674. work would be done on the server.
  4675.  
  4676. >2. REORG work file
  4677. >      Using RDS, will the work file parameter relate to the client
  4678. >      or the Server?
  4679.  
  4680. The server.
  4681.  
  4682. >3. What locks are taken by REORG? I expect a Table lock???
  4683.  
  4684. An exclusive table lock.  Nobody else may read the table.
  4685.  
  4686. >4. Does Referencial integrity has any impact on REORG performance?
  4687.  
  4688. No.  RI constraints are not checked or processed in any way
  4689. during a reog.
  4690.  
  4691. >5. What lock is taken by RUNSTATS?
  4692. >   Can it impact a program running in parallel?
  4693.  
  4694. The share level parameter controls this.  "Reference" gets a
  4695. shared table lock, allowing others to read the table but not change
  4696. anything.  "Change" gets an IS (intent shared) table lock, letting
  4697. others to read and change the table.  In the latter case, the
  4698. runstats utility will be getting row locks, so performance will
  4699. suffer.
  4700.  
  4701. >6. What lock taken by SQLBIND?
  4702. >   Can we re-bind a program while it is running?
  4703.  
  4704. Bind will get various locks on rows in the catalog, some shared (e.g.,
  4705. on SYSIBM.SYSTABLES rows for tables mentioned in the static SQL
  4706. statements), some exclusive (e.g., added or replaced rows in
  4707. SYSIBM.SYSPLANS).  While the program is running, the runner will be
  4708. holding shared locks on some of the rows the binder needs exclusively.
  4709. The binder will wait until all the current runners have committed.
  4710. Then the bind will proceed.  Those attempting to run the program
  4711. during this time will have to wait until the bind is done, so their
  4712. shared locks can be granted.
  4713.  
  4714. Tim Malkemus, Toronto Lab
  4715.  
  4716. ----- OS2DBM CFORUM appended at 15:20:23 on 92/10/14 GMT (by VERSTEEG at UITVM1)
  4717. Subject: A few questions
  4718. Ref:     Append at 14:56:08 on 92/10/14 GMT (by MALKEMUS at TOROLAB3)
  4719.  
  4720. Yes, RUNSTATS can be run remotely.
  4721.  
  4722. Anton Versteeg - ESAT PWS CoC Uithoorn, NL  *** 1,000,000+ OS/2 2.0 ***
  4723.  
  4724. ----- OS2DBM CFORUM appended at 17:43:38 on 92/10/14 GMT (by AMRI040 at OS2CUST)
  4725. Subject: Roll-forward problems
  4726.  
  4727. I am having a problem implementing roll-forward recovery.  I have created a
  4728. database and changed configuration to log_retain=yes and backup the database.
  4729.  
  4730. I then add several records and do another backup.  I then restore the first
  4731. backup and attempt to roll-forward to the end of the log files.  When I check
  4732. the database (through Query Mgr.) the records I added after the first backup
  4733. are not present.  Since Loghead is what was present at the first backup, and
  4734. all log files are present in the log path I should be able to apply all
  4735. committed changes.
  4736.  
  4737. Is there something I'm missing?  I have read the Guide to DBM section on
  4738. Recovering a Database several times now.
  4739.  
  4740. Bruce Clarke
  4741.  
  4742. ----- OS2DBM CFORUM appended at 10:15:40 on 92/10/15 GMT (by VERSTEEG at UITVM1)
  4743. Subject: Roll-forward problems
  4744. Ref:     Append at 17:43:38 on 92/10/14 GMT (by AMRI040 at OS2CUST)
  4745.  
  4746. Bruce,
  4747. It is working fine for me.
  4748. Are you sure your updates were committed?
  4749. Roll forward will leave the database in a consistent state, so any
  4750. transactions that were not complete (committed) will be rolled back.
  4751.  
  4752. Did the timestamp of the last committed transaction in the
  4753. Roll Forward status on the Recovery window indicate that your
  4754. updates were included?
  4755.  
  4756. Anton Versteeg - ESAT PWS CoC Uithoorn, NL  *** 1,000,000+ OS/2 2.0 ***
  4757.  
  4758. ----- OS2DBM CFORUM appended at 22:43:41 on 92/10/15 GMT (by LX0037 at SYDVM1)
  4759. Subject: SQL0805N error on PREPARE via REXX - recovered database.
  4760. OS2DBM CFORUM appended at 17:02:51 on 92/10/13 EST (by LX0037 at SYDVM1)
  4761. Folks
  4762. My problem has been resolved ( Thanks Anton). The supposedly identical
  4763. OS/2 installations were not in fact so. My base system at home was
  4764. pure GA 2.0 but the office production system had been bumped
  4765. up to the 2.01 beta ( 2.0 + patches). This caused the CSD level
  4766. as seen by SYSLEVEL to increment.
  4767. When the ES SQLEXEC constructs package names it uses the CSD level
  4768. in the formulation so as a result it looked for a different package
  4769. name to the one that I had restored from the backup of the 2.0 GA
  4770. system.
  4771. Bottom line : If you are dumping and restoring a database from one
  4772. machine to another, and you are using REXX it is advisable to
  4773. rebind the SQLEXEC REXX routines to create the required packages.
  4774.    DBM BIND @SQLUBIND.LST TO DATABASE xxxxxxx  where  xxxxx is your
  4775. database name. This builds the three isolation level packages for
  4776. CS RR and UR.
  4777.   Since we will see a formal 2.01 shortly this may be an issue for
  4778. more of us in future.
  4779.  
  4780. Ian Logan
  4781. c/- Lexmark International  Sydney Australia
  4782.  
  4783. ----- OS2DBM CFORUM appended at 13:49:53 on 92/10/16 GMT (by RUECKER at MUNIVM4)
  4784. Subject: Object Table Maintenance
  4785. Ref:     None
  4786.  
  4787. When in Query Manager, choosing Tools, there is an Option called:
  4788. 'Object Table Maintenance'.
  4789.  
  4790. Using Help, it states that you should run this once in a while.
  4791. We would like to do this remotely, using REXX SQL statements,
  4792. but we don't know which SYSIBM Tables are effected by this
  4793. 'Object Table Maintenance'
  4794.  
  4795. Does someone know which tables are meant ??
  4796.  
  4797. ----- OS2DBM CFORUM appended at 19:45:22 on 92/10/16 GMT (by NAAO3IY at HONE85)
  4798. Subject: Object Table Maintenance
  4799. Ref: Append at 13:49:53 on 92/10/16 GMT (by RUECKER at MUNIVM4)
  4800.  
  4801. Object Table Maintenance goes against the semi-undocumented
  4802. table with a funny name I can't remember offhandthat Query
  4803. Manager uses as a repository for its own objects (queries,
  4804. forms, procs....).  It just does a reorg, etc., against that table.
  4805.  
  4806. John Kennedy, Hoechst Celanese (The OS/2 Hobbit)
  4807.  
  4808. ----- OS2DBM CFORUM appended at 20:39:55 on 92/10/16 GMT (by 63146635 at RIOVM1)
  4809. Subject: Pruned lines..
  4810.     This CFORUM has just been pruned. Where can I find the pruned
  4811. lines ? Archived some place ? Maybe the forum header could tell..
  4812. Thanks for any help.
  4813.                                           A. Lomboglia
  4814.                                         IBM Brazil - FSC
  4815.                                         AD/Cycle Support
  4816.  
  4817. ----- OS2DBM CFORUM appended at 00:19:19 on 92/10/17 GMT (by VCHOLUIG at SYDVM1)
  4818. Subject: A few questions
  4819. Ref:     Append at 14:56:08 on 92/10/14 GMT (by MALKEMUS at TOROLAB3)
  4820.  
  4821. Thanks Tim.
  4822.  
  4823. About the bind locks..
  4824.  
  4825. Are the locks held by the running program held only while it starts?
  4826. Or  are they held while it is running?
  4827.  
  4828. I am dealing with a program which runs 7 days a week..
  4829.  
  4830. ----- OS2DBM CFORUM appended at 09:24:11 on 92/10/19 GMT (by VERSTEEG at UITVM1)
  4831. Subject: Object Table Maintenance
  4832. Ref:     Append at 19:45:22 on 92/10/16 GMT (by NAAO3IY at HONE85)
  4833.  
  4834. That table is QRWSYS.QRWSYS_OBJECT.
  4835. It is possible to REORG this table (and RUNSTATS as well) remotely
  4836. via a REXX program for instance.
  4837.  
  4838. Anton Versteeg - ESAT PWS CoC Uithoorn, NL  *** 1,000,000+ OS/2 2.0 ***
  4839.  
  4840. ----- OS2DBM CFORUM appended at 12:18:39 on 92/10/19 GMT (by BDJESSUP at CLTVM3)
  4841. Subject: Dos Database Client support Documentation Help
  4842.  
  4843. Well, I have been playing around with this for about a week now
  4844. and have just about had enough. Is there a Red book or something
  4845. like it on the DOS Client support. The Docs for the database
  4846. manager leave you alittle short. I also noticed a few other people
  4847. trying to figure this out a while ago and they must have had help
  4848. off line as I never saw any real help on the forum. I have a P70
  4849. set up as a server with CLient support installed. I have another
  4850. PC with DOS 5.0, PCLP, and a DBDRQLIB directory. I have started
  4851. the database manager on the server and have no problems doing anything
  4852. on the server database. I get a 1042C when I run the STARTDRQ pgm
  4853. from the requester ??? I would love to talk to someone who made
  4854. their way through this successfully. Or even better I would love to
  4855. see a real step by step through the process of setup, catalog and
  4856. running a program from a DOS workstation.
  4857.  
  4858. Regards...
  4859. Brian Jessup Charlotte
  4860.  
  4861. ----- OS2DBM CFORUM appended at 17:00:09 on 92/10/19 GMT (by 70617676 at EHONE)
  4862. Subject: NUM-CHAR conversion for SQL DBM
  4863.  
  4864. Is there a solution to convert in CHAR a character string with
  4865. only numeric characters (example: var = '100') ?
  4866.  
  4867. My requirement is to be able to transfer a Data Host variable of a
  4868. SQLEXEC statement with only numeric characters in a Character(Fixed)
  4869. column of a DBM table. Currently, I have the following message :
  4870.  
  4871. SQL0301N  The value of a host variable in the EXECUTE or OPEN statement
  4872. cannot be used because of its data type.
  4873.  
  4874. Thank you for your help.
  4875.  
  4876. Michel Myc
  4877.  
  4878. ----- OS2DBM CFORUM appended at 17:31:14 on 92/10/19 GMT (by IL46290 at OS2CUST)
  4879. Subject: SQLPREP & DM authority
  4880.  
  4881. PROBLEM
  4882. The SQL precompile process using  Database  Services,  under
  4883. OS/2 Version 2 with Extended Services/2 is  not  recognizing
  4884. indirect (group) authorities.
  4885.  
  4886. BACKGROUND
  4887.  
  4888. We are developing  DB2  applications  on  OS/2  workstations
  4889. using AD/Cycle facilities and the OS/2 Database Manager (DBM
  4890. 2.0).  Our workstations are all OS/2 LAN  connected  and  we
  4891. use one machine as a remote database server.    We  use  the
  4892. Micro Focus COBOL/2 Workbench, which has  a  customized  SQL
  4893. precompiler,  to assist in writing compatible applications.
  4894. DETAIL
  4895.  
  4896. In order to simplify DBM security administration, we  choose
  4897. to grant table privileges (query, add,  change,  delete)  to
  4898. the  PUBLIC  group  ID.     However,   when   programs   are
  4899. precompiled, we get an SQL0551N error:  "<authid>  does  not
  4900. have the privilege to perform operation".    A  quick  check
  4901. proved that it  is  not  a  Micro  Focus  Workbench  problem
  4902. because we get the same error if we  use  the  OS/2  SQLPREP
  4903. command to precompile the program.  Our  only  solution,  so
  4904. far, has been to grant  direct  authority  to  each  of  our
  4905. application developers, but this is not a  desirable  option
  4906. because we are moving all of  our  developers  down  to  the
  4907. workstation platform.  So, has this  problem  been  reported
  4908. before?  Is there a quick fix, or will it have to  wait  for
  4909. the next release?  Is it in the next release?
  4910.  
  4911. Elizabeth Parker, University of Florida Information Systems
  4912.  
  4913. ----- OS2DBM CFORUM appended at 17:58:20 on 92/10/19 GMT (by BDJESSUP at CLTVM3)
  4914. Subject: Dos Database Client support Documentation Help
  4915.  
  4916. Well, I have been playing around with this for about a week now
  4917. and have just about had enough. Is there a Red book or something
  4918. like it on the DOS Client support. The Docs for the database
  4919. manager leave you alittle short. I also noticed a few other people
  4920. trying to figure this out a while ago and they must have had help
  4921. off line as I never saw any real help on the forum. I have a P70
  4922. set up as a server with CLient support installed. I have another
  4923. PC with DOS 5.0, PCLP, and a DBDRQLIB directory. I have started
  4924. the database manager on the server and have no problems doing anything
  4925. on the server database. I get a 1042C when I run the STARTDRQ pgm
  4926. from the requester ??? I would love to talk to someone who made
  4927. their way through this successfully. Or even better I would love to
  4928. see a real step by step through the process of setup, catalog and
  4929. running a program from a DOS workstation.
  4930.  
  4931. Regards...
  4932. Brian Jessup Charlotte
  4933.  
  4934. ----- OS2DBM CFORUM appended at 20:51:09 on 92/10/19 GMT (by HOPKINS at AUSVM8)
  4935. Subject: Pruned lines..
  4936. Ref:     Append at 20:39:55 on 92/10/16 GMT (by 63146635 at RIOVM1)
  4937. Soon to come; we're building the archival processor now; shouldn't
  4938. be too long before the header will reflect IBM Internal and External
  4939. access.
  4940. Ken Hopkins, OS/2 Software Service and Support
  4941.  
  4942. ----- OS2DBM CFORUM appended at 21:22:02 on 92/10/19 GMT (by RHARBUS at TOROLAB3)
  4943. Subject: Dos Database Client support Documentation Help
  4944. Ref:     Append at 17:58:20 on 92/10/19 GMT (by BDJESSUP at CLTVM3)
  4945.  
  4946. I am not sure which Database documents you have looked at ...
  4947.  
  4948. Have you looked at "IBM Extended Services for OS/2 - Guide to Database
  4949. Manager Client Application Enablers"?  It is document number
  4950. S04G-1114-00.
  4951.  
  4952. Bob Harbus
  4953.  
  4954. ----- OS2DBM CFORUM appended at 21:34:19 on 92/10/19 GMT (by MALKEMUS at TOROLAB3)
  4955. Subject: A few questions
  4956. Ref:     Append at 00:19:19 on 92/10/17 GMT (by VCHOLUIG at SYDVM1)
  4957.  
  4958. A running program will hold at least a shared lock on each row in
  4959. SYSPLANS for each plan it is using.  These locks will be released
  4960. at commit but reacquired on first use of each plan after commit.
  4961.  
  4962. Bind doesn't get along well with running applications.  My previous
  4963. append may have painted the picture a bit too rosy.  In theory,
  4964. with a simply, one-plan application that does frequent commits,
  4965. you should be OK.  But with complications, such as multiple plans,
  4966. unpredictable commits, etc., you could get into trouble.  Try
  4967. to do your binds during slow times, at least.
  4968.  
  4969. By the way, our lock manager is "fair" in its lock waiting/granting
  4970. method.  That means someone (the binder, in this case) asking for a
  4971. lock that's incompatible with existing locks will cause new requesters
  4972. of compatible (with existing) locks to wait.  So a steady stream of
  4973. S-lock holders and requesters will not cause a binder to wait forever.
  4974. An X-lock will be granted as soon as all the *current* holders of
  4975. S-locks have released them at commit time.
  4976.  
  4977. Tim Malkemus, Toronto Lab
  4978.  
  4979. ----- OS2DBM CFORUM appended at 13:59:45 on 92/10/20 GMT (by ROBERT at TOROLAB4)
  4980. ..... OS2DBM CFORUM modified at 16:45:39 on 92/10/20 GMT (by ROBERT at TOROLAB4)
  4981. Subject: Deleted append
  4982.  
  4983. ----- OS2DBM CFORUM appended at 14:26:54 on 92/10/20 GMT (by FCOC079 at OS2CUST)
  4984. Subject: SQLPREP & DM authority
  4985. Ref: Append at 17:31:14 on 92/10/19 GMT (by IL46290 at OS2CUST)
  4986.  
  4987. You are experiencing a "feature" of DBM:  it doesn't (seem) to honor group con-
  4988. nections at Precompile (or Bind) time.  That is, you're right, the prepper/
  4989. binder has to have explicit privileges on objects at prep/bind time, regardless
  4990. of what privileges may exist via group connections and group privileges.
  4991.  
  4992. Dave Boll
  4993.  
  4994. ----- OS2DBM CFORUM appended at 16:33:46 on 92/10/20 GMT (by IL02075 at OS2CUST)
  4995. Subject: DARI DLL Sharing
  4996.  
  4997. I have been having trouble using the SQLZ_HOLD_PROC return
  4998. code in ruturning from my ARI functions. It seems that if an
  4999. application calls an ARI procedure and returns using the
  5000. SQLZ_HOLD_PROC return code any other application trying to access
  5001. that ARI DLL module will crash (no sqlcode or message.. just CRASH).
  5002.    SQLZ_DISCONNECT_PROC on the other hand is 1. very slow for an
  5003. application that makes a number of calls to the ARI module.
  5004. 2. eventually returns sqlcode -1111 if an application makes a
  5005. number of calls in rapid succession to tha ARI module (say.. 175)
  5006.    Could this have something to do with the 16bit code segments
  5007. (or 16bit Data segments) not being shared. I have appends on both
  5008. the C/Set2 and Toolkt20 forums about the warnings I receive when
  5009. trying to link386 my ARI DLL modules. Is this the same problem??
  5010.    I have tried many combinations in my module definition file
  5011. in terms of SINGLE/MULTIPLE SHARED/NONSHARED data segments.
  5012. It seems that I am unfortunatly left with the grim choice
  5013. of by which method my applications can fail.
  5014.    Does anyone have their ARI code working under ES. (using C/Set2,
  5015. LINK386, OS/2 2.0)??
  5016.       This is urgent so please feel free to contact me:
  5017. Mike Rowan, Mainline Information Systems
  5018. (904) 422-0741 or (904) 599-4204
  5019.  
  5020. Mike Rowan, Mainline Information Systems  Tallahassee Fl
  5021.  
  5022. ----- OS2DBM CFORUM appended at 16:51:47 on 92/10/20 GMT (by ROBERT at TOROLAB4)
  5023. Subject: SQLPREP & DM authority
  5024. Ref:     Append at 17:31:14 on 92/10/19 GMT (by IL46290 at OS2CUST)
  5025.  
  5026. Try
  5027. GRANT BINDADD ON DATABASE TO authid
  5028. This will grant authid  (which may be a group or PUBLIC) bind and create
  5029. package privilege on the currently connected database.
  5030.  
  5031. This is described in the command reference pg 5-27.
  5032. I will verify that groups work as documented.
  5033.  
  5034. Robert Begg
  5035.  
  5036. ----- OS2DBM CFORUM appended at 17:22:52 on 92/10/20 GMT (by ROBERT at TOROLAB4)
  5037. Subject: SQLPREP & DM authority
  5038. Ref:     Append at 14:26:54 on 92/10/20 GMT (by FCOC079 at OS2CUST)
  5039.  
  5040. I verified that the grant bindadd command does work for groups.
  5041. (refer to my other append).
  5042.  
  5043. Sorry, this isn't a 'feature'.  but, ...
  5044. you get CONTROL authority also, which you keep, even if
  5045. BINDADD is revoked.
  5046.  
  5047. Robert Begg
  5048.  
  5049. ----- OS2DBM CFORUM appended at 22:40:18 on 92/10/20 GMT (by KUSTERER at MANVM1)
  5050. ..... OS2DBM CFORUM modified at 18:47:46 on 92/10/26 GMT (by KUSTERER at MANVM1)
  5051. Subject: Dos Database Client support Documentation Help
  5052. Ref:     Append at 17:58:20 on 92/10/19 GMT (by BDJESSUP at CLTVM3)
  5053.  
  5054. All right, you asked for a step by step procedure for getting DOS
  5055. DataBase clients up and running.  I just went through all the steps
  5056. on two clean machines (server & requester) and got everything to
  5057. work.  I wrote down everything that I just did and here's the
  5058. procedure.  WARNING: this is a long append, so if you don't care
  5059. about the DOS Clients, just skip on to the next one.
  5060.  
  5061. |added new step 11, renumbered steps, reordered STARTDRQ & LOGN,
  5062. |changed printf statement in TEST1.
  5063.  
  5064. ============  DOS DataBase Client Cookbook  ======================
  5065.  
  5066.         1.  Install Extended Services with DataBase Server.  Remember,
  5067.    there are two flavors of Extended Services, one with the server and one
  5068.    without.  Obviously, you need the one with.  When it asks for the
  5069.    Workstation Name, for our example here, we'll use AAAAAAAA.  You can put
  5070.    in whatever applies to your situation as long as it's unique.  Shutdown
  5071.    and reboot your machine once you're done installing.
  5072.  
  5073.         2.  Go into User Profile Management, logon with an adminstrator ID
  5074.    (for our example, we'll use the USERID/PASSWORD combination that is
  5075.    shipped as the default).  Add a regular user type ID/PASSWORD
  5076.    combination (we'll use JOEUSER/ZZZZZZZZ).
  5077.  
  5078.         3.  Start the DataBase Manager using the DBM Command Line
  5079.    Interface.  When it is starting, make sure that the machine beeps three
  5080.    times.  THIS IS VERY IMPORTANT.  If it doesn't beep, it means that there
  5081.    are not enough Names,Sessions,etc.  available for it to talk on the
  5082.    network.  The READ.ME file on the first ES diskette has instructions for
  5083.    fixing this in the section DATABASE MANAGER AND LAN RESOURCES.
  5084.  
  5085.         4.  Create the SAMPLE database by typing SQLSAMPL.  Once this
  5086.    completes, start using the database by entering the following:
  5087.  
  5088.         DBM START USING DATABASE SAMPLE
  5089.  
  5090.         5.  Create a small C program called TEST1.SQC containing the
  5091.    following:
  5092.  
  5093.         ===========  cut here  ===========
  5094. #include <stdio.h>
  5095. #include <string.h>
  5096. #include <sqlenv_.h>
  5097.  
  5098. EXEC SQL INCLUDE SQLCA;
  5099.  
  5100. EXEC SQL BEGIN DECLARE SECTION;
  5101.   char Statement[254];
  5102.   char Name[10];
  5103.   char Job[6];
  5104. EXEC SQL END DECLARE SECTION;
  5105.  
  5106. main()
  5107.   {
  5108.   char DataBase[9];
  5109.  
  5110.   strcpy(DataBase,"SAMPLE");
  5111.   printf("Connecting Database...");
  5112.   sqlestrd(DataBase,SQL_USE_SHR,&sqlca);
  5113.   printf("\nStart DB:  SQLCODE = %ld (%s)",SQLCODE,sqlca.sqlerrmc);
  5114.   if(SQLCODE == 0)
  5115.     {
  5116.     strcpy(Statement,"SELECT name,job FROM userid.staff");
  5117.     EXEC SQL PREPARE s1 FROM :Statement;
  5118.     printf("\nPrepare:  SQLCODE = %ld (%s)",SQLCODE,sqlca.sqlerrmc);
  5119.     EXEC SQL DECLARE c1 CURSOR FOR s1;
  5120.     printf("\nDeclare:  SQLCODE = %ld (%s)",SQLCODE,sqlca.sqlerrmc);
  5121.     EXEC SQL OPEN c1;
  5122.     printf("\nOpen   :  SQLCODE = %ld (%s)",SQLCODE,sqlca.sqlerrmc);
  5123.     while (SQLCODE == 0)
  5124.         {
  5125.         EXEC SQL FETCH c1 INTO :Name,:Job;
  5126.         if (SQLCODE == 0) printf("\n%s %s",Name,Job);
  5127.         }
  5128.     EXEC SQL CLOSE c1;
  5129.     printf("\nClose  :  SQLCODE = %ld (%s)",SQLCODE,sqlca.sqlerrmc);
  5130.     EXEC SQL COMMIT;
  5131.     printf("\nCommit :  SQLCODE = %ld (%s)",SQLCODE,sqlca.sqlerrmc);
  5132.     }
  5133.   }
  5134.         ===========  cut here  ===========
  5135.  
  5136.         6.  Prep, compile, & link the program by entering the following
  5137.    commands:
  5138.  
  5139.    sqlprep test1.sqc sample /p /b
  5140.    cl -c /AL /FPa /Zp test1.c
  5141.    link /NOD /NOE test1.obj,,,pcdrstat+llibcar+graphics;
  5142.  
  5143.         7.  Give our regular user the necessary privileges by entering the
  5144.    following commands:
  5145.  
  5146.    DBM GRANT CONNECT ON DATABASE TO JOEUSER
  5147.    DBM GRANT ALL PRIVILEGES ON TABLE ORG TO JOEUSER
  5148.    DBM GRANT ALL PRIVILEGES ON TABLE STAFF TO JOEUSER
  5149.    DBM GRANT EXECUTE ON PACKAGE TEST1 TO JOEUSER
  5150.  
  5151.         8.  Create another small C program called CATALOG.SQC containing
  5152.    the following:
  5153.  
  5154.         ===========  cut here  ===========
  5155. #include <stdio.h>
  5156. #include <string.h>
  5157. #include <sqlenv_.h>
  5158.  
  5159. EXEC SQL INCLUDE SQLCA;
  5160.  
  5161. main()
  5162.   {
  5163.   EXEC SQL BEGIN DECLARE SECTION;
  5164.     char Statement[80];
  5165.   EXEC SQL END DECLARE SECTION;
  5166.  
  5167.   char DataBase[9];
  5168.   char Alias[20];
  5169.   char DBType;
  5170.   char NodeName[9];
  5171.   char DBDrive;
  5172.   char DBComment[20];
  5173.   char CmtCodePage;
  5174.  
  5175.   strcpy(DataBase,"SAMPLE");
  5176.   strcpy(Alias,"");
  5177.   DBType = '1';
  5178.   strcpy(NodeName,"AAAAAAAA");
  5179.   DBDrive = '0';
  5180.   strcpy(DBComment,"");
  5181.   CmtCodePage = '\0';
  5182.  
  5183.   sqlecatd(&DataBase,&Alias,DBType,&NodeName,DBDrive,&DBComment,CmtCodePage,&sqlca);
  5184.   printf("\nCatalog Return Code:  SQLCODE = %ld",SQLCODE);
  5185.   }
  5186.         ===========  cut here  ===========
  5187.  
  5188.         9.  Prep, compile, & link the program by entering the following
  5189.    commands:
  5190.  
  5191.    sqlprep catalog.sqc sample /p /b
  5192.    cl -c /AL /FPa /Zp catalog.c
  5193.    link /NOD /NOE catalog.obj,,,pcdrstat+llibcar+graphics;
  5194.  
  5195.         10.  Now we leave the server machine and go to the requester
  5196.    machine that has the DOS Client Application Enabler stuff installed.
  5197.    Make the directory called DBDRQLIB the current directory.  Don't forget
  5198.    to bring along a copy of the CATALOG.EXE and TEST1.EXE files that we
  5199.    just created.
  5200.  
  5201.         11.  Make sure that NETBIOS is up and running on the requester
  5202.    machine.  For DOS machines, this means making sure that the device=
  5203.    dxm????? lines are present in the CONFIG.SYS (dxmt0mod.sys being
  5204.    the important one as it's the NETBIOS).  For OS/2 2.0 machines, the
  5205.    DOS VDMs must have the NETBIOS Virtual Device Driver (VDD) set up.
  5206.    To do this, make \IBMCOM the current directory and enter SETUPVDD.
  5207.    This will add the VDD lines to CONFIG.SYS.  Shutdown and reboot.
  5208.  
  5209.         12.  Edit the file DBDRQLIB.CFG and change the SQLNAME to equal our
  5210.    requester workstation name (we'll use BBBBBBBB).  Also make sure that
  5211.    SQLLIB points to the right drive letter.
  5212.  
  5213.         13.  To catalog the database, just run the catalog program we
  5214.    created by entering the following:
  5215.  
  5216.    catalog
  5217.  
  5218.         The displayed return code should be 0 meaning everything is ok.
  5219.    Also, a subdirectory called SQLDBDIR should have been created.
  5220.  
  5221.         14.  Logon by entering sqllogn2 and then entering JOEUSER for the
  5222.    ID and ZZZZZZZZ for the password.
  5223.  
  5224.         15.  Start the Database requester by entering startdrq.
  5225.  
  5226.         16.  Now, run our test program by entering TEST1 and you should see
  5227.    the names and jobs of everyone in the SAMPLE database scroll by on the
  5228.    screen.
  5229.  
  5230.         17.  That's all there is to it !!!
  5231.  
  5232. ============  End: DOS DataBase Client Cookbook  =================
  5233.  
  5234. Joe Kusterer  -----  TEAM OS/2 Northern VA  -----  FSC Manassas
  5235.  
  5236. ----- OS2DBM CFORUM appended at 14:09:25 on 92/10/21 GMT (by PHOONFCB at HKGVM8)
  5237. Subject: Cannot open database in os/2 DBM through the Query Manager
  5238. Everything works fine before today. However, now I get an error
  5239. QRW0384W from the Query Manager when I try to open a database.
  5240. The message indicates that the database is damaged and a recovery
  5241. is necessary. When I select "YES" to recover, it jumps to a
  5242. System Error SYS1943 and dumps me a list of register values.
  5243. What should I do? Thanks.
  5244. Franklin Phoon
  5245.  
  5246. ----- OS2DBM CFORUM appended at 03:55:11 on 92/10/22 GMT (by IL02075 at OS2CUST)
  5247. Subject: How did they Link
  5248.  
  5249.   What compiler and linker did TOROLAB use to write
  5250. ES 1.0?  Surely not LINK386 & C/Set.
  5251.   Where can I get it.
  5252.  
  5253. Mike Rowan, Mainline Information Systems  Tallahassee Fl
  5254.  
  5255. ----- OS2DBM CFORUM appended at 10:10:07 on 92/10/22 GMT (by 75824726 at EHONE)
  5256. Subject:sum(column) over 2 joined tables.
  5257.  
  5258. I'm developing a C program working with a complex database (more than
  5259. 40 tables ) (Obviously I work with a team )
  5260. As the database will reside over AS/400 and will be accessed through
  5261. DDCS/2, some columns have the data type DECIMAL(5,1).
  5262. DECIMAL type does not exist in C language, so i have employed 'double'
  5263. type host variable.
  5264. All is working fine but, debugging the program, i observe the following
  5265. bug.
  5266. I have the following SQL Statement imbedded in C code :
  5267.  
  5268. EXEC SQL SELECT SUM ( RTCTB ) INTO :H_VICPB
  5269.      FROM GRIDT01L,GCAFI02L
  5270.      WHERE ( (GCAFI02L.CFCFI = GRIDT01L.RTCFI) AND
  5271.              (GCAFI02L.CFTPC = 'PA' ) AND
  5272.              (GRIDT02L.RTNAV = 'SF1') ) ;
  5273.  
  5274. RTCTB has type DECIMAL(5.1),H_VICPB is double.
  5275. H_VICPB is then loaded in the column VICPB of the table GVIAG00f
  5276. whose type is still DECIMAL(5,1).
  5277. After the program has executed I observe that :
  5278. 1) if the table GRIDT01L has a little number of rows involved in the
  5279. join (e.g. less than 10 ) the sum is correct and the value retrieved from
  5280. GVIAG00F is right.
  5281.  
  5282. 2) if the table has 16 rows joined, the sum isn't right, but the
  5283. DBM seams forget a row, i.e. the value retrieved from GVIAG00F is
  5284. the right sum less the value of a row.
  5285.  
  5286. The strange thing is that the same query executed offline with CLI
  5287. yields the right values in both cases.
  5288. Another strange thing is that no SQL error arise nor from program
  5289. nor from CLI.
  5290.  
  5291. I do not know if this is a CSET/2 problem ( I have not installed the
  5292. fixes ) or a DBM problem.
  5293.  
  5294. Has anyone a suggestion ?
  5295.  
  5296.      Thanks|
  5297.  
  5298. ----- OS2DBM CFORUM appended at 11:01:05 on 92/10/22 GMT (by F080593 at ORYVM4)
  5299.  
  5300. Subject: About the format "SPECIAL DATA". Extended Services OS/2 v2.00.
  5301.  
  5302.          I created a column with the format "SPECIAL DATA".
  5303.  
  5304.          I want to know if it's possible to insert a variable length
  5305.     binary file ( an image file ) into this column ?
  5306.  
  5307.          F080593 at ORYVM4        LEFEBVRE,St{phane
  5308. =========================================================================
  5309.  
  5310. ----- OS2DBM CFORUM appended at 12:58:35 on 92/10/22 GMT (by VERSTEEG at UITVM1)
  5311. Subject: About the format "SPECIAL DATA". Extended Services OS/2 v2.00.
  5312. Ref:     Append at 11:01:05 on 92/10/22 GMT (by F080593 at ORYVM4)
  5313.  
  5314. Special Data, or LONG VARCHAR in DBM terms, can be used to store
  5315. binary data like image data. One field can contain up to 32K bytes,
  5316. but you can define more than one LONG VARCHAR per table, if you
  5317. want to store more than 32K in a row. The theoretical maximum is
  5318. somewhere between 100 and 200 LV columns per row.
  5319.  
  5320. Of course it is also possible to spread the image over multiple rows,
  5321. rather than columns, by adding some kind of sequence number to the
  5322. key. This would be a bit more open-ended and perhaps a bit faster,.
  5323. for large images.
  5324.  
  5325. A couple of restrictions apply to LV though.
  5326. QM doesn't support them. You would have to write a program to
  5327. load and retrieve them from the database. Or use a utility like
  5328. Import/Export. You cannot do any searches, joins etc. on LV data.
  5329.  
  5330. Anton Versteeg - ESAT PWS CoC Uithoorn, NL  *** 1,000,000+ OS/2 2.0 ***
  5331.  
  5332. ----- OS2DBM CFORUM appended at 14:04:02 on 92/10/22 GMT (by AMRI040 at OS2CUST)
  5333. Subject: Force user off
  5334.  
  5335. Does anyone know of a way to force users off of DBM to perform a backup.
  5336.  
  5337. There must be some way of doing this since BACKUP DATABASE will not run
  5338. with anyone attached to the database.  Any help is appreciated.
  5339.  
  5340. Thank You.
  5341.  
  5342. Bruce Clarke (American Re-Insurance)
  5343.  
  5344. ----- OS2DBM CFORUM appended at 14:16:51 on 92/10/22 GMT (by RHARBUS at TOROLAB3)
  5345. Subject: How did they Link
  5346. Ref:     Append at 03:55:11 on 92/10/22 GMT (by IL02075 at OS2CUST)
  5347. ------------------------------------------------------------------------
  5348.  
  5349. This is probably more that what you wanted, but here it is anyway:
  5350.  
  5351. 1. You are correct, for the ES1.0 database product set LINK386 and
  5352.    CSET/2 were not used.
  5353.  
  5354. 2. Here is the breakdown of which compilers/linkers/assemblers were
  5355.    used for the various products in the ES1/0 database family:
  5356.  
  5357.    Product              Compiler                Linker        Assembler
  5358.  ========================================================================
  5359.   Database Manager    IBM C/2 V1.1 16-bit   OS/2 Version 1.3    MASM/2
  5360.                       compiler.                                 MASM386
  5361.  
  5362.   Query Manager           same                    same          MASM/2
  5363.  
  5364.      DDCS/2               same                    same          MASM/2
  5365.  
  5366.   Database
  5367.   Administrator tools     same                    same          MASM/2
  5368.  
  5369.   PC DOS Requester    Microsoft 6.0         Microsoft 5.1       MASM/2
  5370.  
  5371. ------------------------------------------------------------------------
  5372. Bob Harbus             IBM Corporation Lab - Toronto
  5373.                       Workstation Database Development
  5374. ------------------------------------------------------------------------
  5375.  
  5376. ----- OS2DBM CFORUM appended at 14:41:35 on 92/10/22 GMT (by RDSMITH at AUSVM1)
  5377. Subject: How did they Link
  5378. Ref:     Append at 14:16:51 on 92/10/22 GMT (by RHARBUS at TOROLAB3)
  5379.  
  5380. ...and one minor :-) clarification.  It wasn't done in TOROLAB.  It was
  5381. done in the Austin Personal Systems Programming lab before the personal
  5382. systems database development mission was transferred to Toronto.
  5383.  
  5384. Roy Smith
  5385.  
  5386. ----- OS2DBM CFORUM appended at 16:24:29 on 92/10/22 GMT (by G3035 at HONE84) -
  5387. Subject: Dos Database Client support Documentation Help
  5388. Ref: Append at 22:40:18 on 92/10/20 GMT (by KUSTERER at MANVM1)
  5389.  
  5390. Joe,
  5391.  
  5392. Thank you very much for the instructions.  I am trying to use them to test
  5393. access from a DOS session on the same workstation as the database.
  5394.  
  5395. The machine name on the database server is T0000808.  My SQLNAME in
  5396. DBDRQLIB is P0000808.  When I execute STARTDRQ or SQLLOGN2, I get:
  5397.  
  5398.     SQL1042C  An unexpected system error occurred.
  5399.  
  5400. Do you (or any lurkers) have any ideas of what might be wrong?
  5401.  
  5402. Andy F. Miller, GPU Service Corporation
  5403.  
  5404. ----- OS2DBM CFORUM appended at 13:33:19 on 92/10/23 GMT (by KUSTERER at MANVM1)
  5405. Subject: Dos Database Client support Documentation Help
  5406. Ref:     Append at 16:24:29 on 92/10/22 GMT (by G3035 at HONE84)
  5407.  
  5408. Andy,
  5409.      I was just able to duplicate your problem (SQL1042C).  On
  5410. the machine I had set up as the server in my previous example, I
  5411. cataloged the SAMPLE database and tried running SQLLOGN2 and
  5412. STARTDRQ in a DOS VDM and got the same 1042 error.
  5413.  
  5414.      To fix it, it looks like I need another step in my procedure
  5415. something like the following:
  5416.  
  5417.      10a.  Make sure that NETBIOS is up and running on the requester
  5418. machine.  For DOS machines, this means making sure that the device=
  5419. dxm????? lines are present in the CONFIG.SYS (dxmt0mod.sys being
  5420. the important one as it's the NETBIOS).  For OS/2 2.0 machines, the
  5421. DOS VDMs must have the NETBIOS Virtual Device Driver (VDD) set up.
  5422. To do this, make \IBMCOM the current directory and enter SETUPVDD.
  5423. This will add the VDD lines to CONFIG.SYS.  Shutdown and reboot.
  5424.  
  5425.      Once I ran the SETUPVDD and rebooted, I was able to successfully
  5426. complete the rest of my procedure.
  5427.  
  5428. Joe Kusterer  -----  TEAM OS/2 Northern VA  -----  FSC Manassas
  5429.  
  5430. ps. If this fixes the problem for you, append back here letting me
  5431. know and I'll update the "procedure" append to add step 10a.
  5432.  
  5433. ----- OS2DBM CFORUM appended at 15:04:06 on 92/10/23 GMT (by MDBC020 at OS2CUST)
  5434. Subject: QRW2273W ERROR MESSAGE IN QUERY MANAGER
  5435.  
  5436. I'M getting a QRW2273W when I am running a query in query manager on a local
  5437. database. The message is "The disk is full. Clear some space on the 'C'
  5438. drive or specify a query that results in less data. The database is on the
  5439. E: drive which has 300m free, the C: drive is the system drive and only has
  5440. about 10M free. Why would running a query that is a select fill up the C:
  5441. drive, and how do I redirect it to another drive so I won't fill up the C:
  5442. drive. The query is not that big of a query!
  5443. Thanks.
  5444.  
  5445. KIRK KNESS
  5446.  
  5447. ----- OS2DBM CFORUM appended at 15:53:00 on 92/10/23 GMT (by F010753 at MOPVMA)
  5448.  Is there anyway to execute an OS2 command file from SQL procedure
  5449. under an OS2 2.0 DBM environment?
  5450.  Example under host VM environment it could be:
  5451.  
  5452.                        'CMS myexec ...'
  5453.  
  5454. anyone got an idea|
  5455. Thanks
  5456. Alain Tremolet (TREMOLET at MOPPROFS)
  5457.  
  5458. ----- OS2DBM CFORUM appended at 16:32:40 on 92/10/23 GMT (by GCHIN at NYCVMIC1)
  5459. Subject: Visual Basic Interface
  5460. Ref:     Append at 15:04:06 on 92/10/23 GMT (by MDBC020 at OS2CUST)
  5461.  
  5462. Doe anyone know if there is an Visual Basic Interface to
  5463. DBM.
  5464.  
  5465. ----- OS2DBM CFORUM appended at 16:44:18 on 92/10/23 GMT (by FRML075 at OS2CUST)
  5466. Subject: Force user off
  5467. Ref: Append at 14:04:02 on 92/10/22 GMT (by AMRI040 at OS2CUST)
  5468.  
  5469. We obtained a package from IBM's OS2TOOLS disk called KILLDBM2.  It contains
  5470. a program (KILLDBM2.EXE) which disconnects all users from all databases on
  5471. the server, then performs a STOPDBM.  We use this program to do just what
  5472. you describe:  forcibly disconnect all users so that backups can be taken.
  5473.  
  5474. According the accompanying documentation, KILLDBM2 requires Extended Services
  5475. and it uses an undocumented, unsupported API call called SQLEKILL.
  5476.  
  5477. Louis Rios, Farmland Industries  816/459-6176
  5478.  
  5479. ----- OS2DBM CFORUM appended at 19:08:42 on 92/10/23 GMT (by SC025203 at AUSVM8)
  5480. Subject: QRW2273W ERROR MESSAGE IN QUERY MANAGER
  5481. Ref:     Append at 15:04:06 on 92/10/23 GMT (by MDBC020 at OS2CUST)
  5482.  
  5483. Kirk,
  5484.  
  5485.   Perhaps your Database log files are being placed on "C". See the
  5486. "Guide to Database Manager" (S04G-1013-00), Chapter 9 for Database
  5487. Configuration Parameters, specifically the "logpath" and "newlogpath"
  5488. parameters to check where the log files are going and how to change
  5489. if it you need to.
  5490.  
  5491. Hope this helps some.
  5492.  
  5493. Stephen Poole
  5494. OS/2 Service and Support - IBM Austin, TX
  5495.  
  5496. ----- OS2DBM CFORUM appended at 19:16:00 on 92/10/23 GMT (by SC025203 at AUSVM8)
  5497. Subject: Executing an OS/2 Command File from SQL
  5498. Ref:     Append at 15:53:00 on 92/10/23 GMT (by F010753 at MOPVMA)
  5499.  
  5500. Alain,
  5501.  
  5502.   Executing an OS/2 command file is not really a function of SQL
  5503. or the Database Manager. What language are you using? There is
  5504. probably a language construct or "system call" available to do
  5505. what you want. Are you using REXX, "C", COBOL, or FORTRAN?
  5506.  
  5507. Stephen Poole
  5508. OS/2 Service and Support - IBM Austin, TX
  5509.  
  5510. ----- OS2DBM CFORUM appended at 18:37:24 on 92/10/26 GMT (by KUSTERER at MANVM1)
  5511. Subject: Dos Database Client support Documentation Help
  5512. Ref:     Append at 16:31:22 on 92/10/26 GMT (by G3035 at HONE86)
  5513.  
  5514. That's great, Andy.  I've gone ahead and modified the "Cookbook"
  5515. to incorporate your suggestions.
  5516.  
  5517. Joe Kusterer  -----  TEAM OS/2 Northern VA  -----  FSC Manassas
  5518.  
  5519. ----- OS2DBM CFORUM appended at 20:13:51 on 92/10/26 GMT (by IL04688 at HONE85)
  5520. Subject: Query Manager Landscape-style Reports
  5521. Ref: Append at 18:37:24 on 92/10/26 GMT (by KUSTERER at MANVM1)
  5522.  
  5523. Has anyone been able to get Query Manager reports to come out in
  5524. landscape mode under OS/2 2.0 base, ES 1.0, LAN Requester 2.0,
  5525. with an IBM 4019 LAN-attached printer thru a 4033 connection ?
  5526.  
  5527. I thought I had read something along these lines, but a forum
  5528. search using "landscape" came up blank.
  5529.  
  5530. Thanks.
  5531.  
  5532. Leo Tornow, Northwest Pipeline, SLC UT
  5533.  
  5534. ----- OS2DBM CFORUM appended at 20:23:13 on 92/10/26 GMT (by MDBC020 at OS2CUST)
  5535. Subject: QRW2273W ERROR MESSAGE IN QUERY MANAGER
  5536. Ref: Append at 19:08:42 on 92/10/23 GMT (by SC025203 at AUSVM8)
  5537.  
  5538. The log files are on the E: drive, which has 300m free. Also , this is a read
  5539. only query, why would the log file fill up in thsi situation.
  5540. Thanks
  5541. Kirk
  5542.  
  5543. Kirk Kness
  5544.  
  5545. ----- OS2DBM CFORUM appended at 22:06:30 on 92/10/26 GMT (by NAAO3IY at HONE83)
  5546. Subject: Query Manager Landscape-style Reports
  5547. Ref: Append at 20:13:51 on 92/10/26 GMT (by IL04688 at HONE85)
  5548.  
  5549. Query Manager's printing support is abysmal.  "Print" to
  5550. disk and then do something with the result.
  5551.  
  5552. John Kennedy, Hoechst Celanese (The OS/2 Hobbit)
  5553.  
  5554. ----- OS2DBM CFORUM appended at 13:13:14 on 92/10/28 GMT (by UDSS013 at HONE82)
  5555. Subject: DDCS/2 To DB2 Distributed Education
  5556. Ref: Append at 21:25:01 on 92/10/08 GMT (by SDRYAN at DALVM3)
  5557.  
  5558. | The course objectives for U4120 - Distributed Database Workshop, OS/2 to
  5559. | DB2, are the following:
  5560.  
  5561. I attended one of the workshops in Irving last spring.  It was
  5562. taught by a very talented guy by the name of Rick Weaver.  If you
  5563. are doing DDCS, it will be money well-spent.  I highly recommend
  5564. it.
  5565.  
  5566. ----- OS2DBM CFORUM appended at 22:10:47 on 92/10/28 GMT (by ERICKSON at TDCSYS3)
  5567. Subject: No Clocky - No Talky ! SQL1042C
  5568.  
  5569. We ran into the SQL 1042 C Error problem in our lab yesterday. After
  5570. OS/2 R2.0 with ES/1 had been running our application for awhile, we
  5571. shut it down normally and also shut down OS/2 through the CTL-ALT-DEL
  5572. prompt.
  5573.  
  5574. When we restarted OS/2 and our application, we got an immediate
  5575. SQL1042C error. Attempts to contact DBM through Query Manager
  5576. failed in the same way.
  5577.  
  5578. I followed the advice to replace the NET.ACC files in \MUGLIB\ACCOUNTS
  5579. \IBMLAN\ACCOUNTS and \IBMLAN\INSTALL (it seems that they are interlinked
  5580. and must all be in sync) and still had the same error message.
  5581.  
  5582. We've been doing some hardware testing on this PS/2 80 8580-071 and
  5583. had recently cleared out the CMOS memory. Our developer forgot to reset
  5584. the clock, and we were running as if the platform were at 1/1/80.
  5585.  
  5586. When I reset the clock to today's date and time, QM ran like a champ
  5587. and we were able to bring our application back up after what appeared
  5588. to be some recovery activity.
  5589.  
  5590. Does a bogus clock end up killing DBM through invalid LOGs or some
  5591. other mechanism?
  5592.  
  5593. Would it be possible to give a more concise error message on this kind
  5594. of problem. SQL1042C doesn't lead you to anything except suggesting
  5595. a trace.
  5596.  
  5597. Marc R. Erickson
  5598.  
  5599. ----- OS2DBM CFORUM appended at 18:39:48 on 92/10/29 GMT (by WZ00885 at OS2CUST)
  5600. Subject: Database Mgr backup
  5601.  
  5602. I need to do an unattended backup of a database at night. If there is an existi
  5603. ng backup, running DBM BACKUP DATABASE DBNAME TO DRIVE prompts me if I want to
  5604. overwrite it. I would like to generate automatically the answer to the question
  5605. and proceed with the backup. I thought about using an input file but it does no
  5606. t seem to work probably because the actual backup is a subprocess of DBM BACKUP
  5607. p
  5608.  
  5609. BACKU
  5610. P. Does anyone know how to get around this ? Thanks
  5611.  
  5612. Charly Sorin. Applied ID and Information Systems
  5613.  
  5614. ----- OS2DBM CFORUM appended at 20:36:50 on 92/10/29 GMT (by UDSS013 at HONE83)
  5615. Subject: Loading null data.
  5616. Ref: Append at 22:06:40 on 92/10/12 GMT (by MROACH at BOSTON)
  5617.  
  5618. | I am trying to load data that may be null into fields defined as smallint
  5619. | and date.  It ain't working!  We are using the import/export facility
  5620. | of DBM as well as inserting through the CLI.  Is there a way around this?
  5621. | We don't want to corrupt the data just to get it loaded.  Any help would
  5622. | be appreciated.
  5623.  
  5624. I just got done doing a comma-delimited ASCII import of a table with NULL
  5625. data for both dates and smallints.  In the case where there was a NULL, the
  5626. imported file had two commas in a row.  For example:
  5627.  
  5628.      1,"A String",19921008
  5629.      2,,19921009
  5630.      3,"A String",
  5631.      ,"A String,19921010
  5632.  
  5633. shows NULL values for strings, dates, and smallints.  If you are doing
  5634. the data vis INSERTs from the CLI, use a value of NULL for the column
  5635. that contains the null value.
  5636.  
  5637.      INSERT (ID, STR, START_DATE) INTO TBL VALUES(NULL, "A String", "10-08-1992")
  5638.  
  5639. ----- OS2DBM CFORUM appended at 21:45:23 on 92/10/29 GMT (by KDROMREL at SFOVMIC1)
  5640. Subject: Changing OS/2 DBM Configuration
  5641. Ref:     Append at 16:18:04 on 92/10/26 GMT (by ZEGGERT at ENDVM1)
  5642.  
  5643. The only way you can change whether you're standalone, client, server,
  5644. etc. that I'm aware of us to use REINST (or Add or Remove Features in
  5645. your Extended Services Folder).  The reason for this, is you will
  5646. need different/additional code that wasn't loaded when you did your
  5647. initial installation/configuration.
  5648.  
  5649. You shouldn't lose anything when you do this.  DB Mgr keeps track of
  5650. your Databases, even across a reinst.  It's always wise to back up
  5651. your databases, though, just in case there is any problem.
  5652.  
  5653. Kelvin D. Romrell
  5654.  
  5655. ----- OS2DBM CFORUM appended at 22:07:43 on 92/10/29 GMT (by KDROMREL at SFOVMIC1)
  5656. Subject: Force user off
  5657. Ref:     Append at 16:44:18 on 92/10/23 GMT (by FRML075 at OS2CUST)
  5658.  
  5659. SQLEKILL is no longer undocumented nor unsupported.  To get the
  5660. documentation just send a note to:
  5661.  
  5662. Customer and Vendor Enablement
  5663. c/o IBM Canada Ltd.
  5664. 1 Park Centre
  5665. 895 Don Mill Road
  5666. North York, Ontario, CANADA
  5667. M3C 1W3
  5668.  
  5669. It is available to anybody upon request.  The only warning associated
  5670. with it, is that the function could change in future releases, which
  5671. could require programs using the SQLEKILL interface to be changed.
  5672.  
  5673. Kelvin D. Romrell
  5674.  
  5675.