home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / bind113b.zip / BindTool.txt < prev   
Text File  |  2002-03-25  |  24KB  |  526 lines

  1. $Id: BindTool.txt,v 1.6 2002/03/25 16:02:34 bird Exp $
  2.  
  3.  
  4.  
  5.   B i n d T o o l s  -  version 1.1.3 Beta
  6.   *****************************************
  7.  
  8.     (c) Copyright 1999-2002 knut st. osmundsen (bird@anduin.net)
  9.  
  10.  
  11.  
  12. 1.0 Introduction.
  13. -----------------
  14.  
  15. This a collection of tools to manipulate and make bindfiles. The primary
  16. motivation for writing them is that IBM nor my company (CSC, former MYND,
  17. former PMSC) provides tools which manipulates bind files as fast and
  18. secure as I need.
  19.  
  20.  
  21.  
  22. 1.1 OS2Tools
  23. ------------
  24.  
  25. This collection of bind tools are a part of the OS2Tools by Patrick Haller.
  26.  
  27. URL:    http://os2tools.netlabs.org
  28. CVS:    :pserver:guest@www.netlabs.org:/netlabs.cvs/os2tools
  29.         password: readonly
  30.  
  31.  
  32.  
  33. 2.0 The Tools
  34. -------------
  35.  
  36. Currently this the BindTools includes four tools:
  37.     BindPrep
  38.     BindIt
  39.     BindChk
  40.     BindSet
  41.  
  42.  
  43.  
  44. 2.1 BindPrep
  45. ------------
  46.  
  47. Replacement for sqlprep. By default this spawns a daemon process which does
  48. the actual precompiling. The daemon process dies after idling for 1 minutte.
  49. By using a daemon there are three main benefits:
  50.     - The database connection is opened once, for the first prep against the
  51.       database. Multiple precompiles will run faster since there is no need
  52.       to reconnect.
  53.     - Don't wait for database connection to close.
  54.     - Since the daemon is the same executable file as the client, the daemon
  55.       is a preload of it. Hence will invocation client be faster when the
  56.       daemon is running.
  57.  
  58. Another benefit is the detection of COBOL compiler. MicroFocus and IBM cobol
  59. compilers should be recognized if present in the environment. Which means
  60. you may precompile .cbl files without specifying target compiler.
  61.  
  62. Compared to SQLPREP.exe, this utility doesn't used DB2.EXE, it calles the
  63. DB2 APIs directly.
  64.  
  65. Note. This utility differs from the others in the way the commandline is
  66. parsed. It reads the entire commandline before staring the processing. The
  67. other tools will do processing during the parsing.
  68.  
  69.  
  70.  
  71. 2.2 BindIt
  72. ----------
  73.  
  74. This tool binds bind packages (.BND-files generated during precompilation) to
  75. databases. (Yes, multiple database could be specified in one run.) It in some
  76. ways similar to sqlbind, but superior in many ways:
  77.     - File patterns could be specified.
  78.     - It's intelligent, and checks the database if binding is strictly needed.
  79.       Bind is only performed if strictly needed. (Overiable with -e or -a)
  80.     - Commandline is processed while parsed, so you could bind agains several
  81.       databases in one run. All tools except BindPrep work this way.
  82.     - ++
  83.  
  84. This program contains bind files which will be automatically binded to the
  85. databases the program is used against. The packages are placed in the
  86. BINDTOOL collection.
  87.  
  88.  
  89.  
  90. 2.3 BindChk
  91. -----------
  92.  
  93. This tool compares bind packages, executables and database. Depeneding on
  94. which options you specify comparisions are performed.
  95.  
  96. This is a very useful tool when verifying releases and installations software.
  97.  
  98. This program contains bind files which will be automatically binded to the
  99. databases the program is used against. The packages are placed in the
  100. BINDTOOL collection.
  101.  
  102.  
  103.  
  104. 2.4 BindSet
  105. -----------
  106.  
  107. This tool manipulates bind packages and executables.
  108. In bind packages these entires are changable:
  109.     - Collection Id.        (not db2 1.x)
  110.     - Date time format.     (not db2 1.x)
  111.     - Creator Id.
  112.     - Isolation Level.      (not db2 1.x)
  113.     - Owner Id.             (not db2 1.x)
  114.     - Qualifier Id.         (not db2 1.x)
  115.     - Timestamp.            (yeah, I'm crazy ;-)
  116.  
  117. In executables these entries are changeable:
  118.     - Creator Id.
  119.     - Timestamp.            (yeah, I'm crazy ;-)
  120.  
  121. Note. Currently we don't support changes in executables compressed using the
  122.       EXEPACK:2 algorithm.
  123.  
  124.  
  125.  
  126. 3.0 Known Limitations
  127. ----------------------
  128.  
  129. These tools has been tested with:
  130.     - DB2 version 2.1 on OS/2.
  131.     - DB2 version 7.1 on OS/2.
  132.     - DB2 version 6.1 on OS/390 (MVS).
  133. The database queries checking bind packages aren't necessarily 100% correct for
  134. other versions. Please provide me with correct queries, and I'll add them.
  135.  
  136. They should work with bind files from all OS/2 DB2 versions, though some
  137. functions aren't supported for DB2 v1.x bind files and NE (16-bit) executables.
  138.  
  139.  
  140.  
  141. 3.1 Is there a Linux or a Window version?
  142. -----------------------------------------
  143.  
  144. It you wanna have one, I guess we could make one for each of the platforms
  145. mentioned. Porting will be done by implementing the OS/2 APIs I think, that
  146. was at least a very generic and simple way for FastDep.exe.
  147.  
  148.  
  149. 3.2 Micro Focus Cobol Issues
  150. -----------------------------
  151.  
  152. There are some issues with MF Cobol creating workingstorage at run-time.
  153. The problem arises if the DB2 precompiler is used instead of the builtin
  154. MF Cobol one.
  155.  
  156. Currently all know issues have been worked around for UDB 7.1.
  157. Workarounds could easily be provided for the other DB2 versions. All required
  158. is testcases, ie. .bnd and .exe/.dll files.
  159.  
  160.  
  161.  
  162. 4.0 The Author
  163. --------------
  164.  
  165. knut st. osmundsen (kosmunds@csc.com)
  166.  
  167. Also reachable on IRC:
  168.     network:    irc.openprojects.net
  169.     nick:       os2bird (or *bird)
  170.     channel:    #netlabs
  171.  
  172.  
  173.  
  174. 5.0 Disclaimer and Copyright
  175. ----------------------------
  176.  
  177. #include <UsualDisclaimer.h>
  178.  
  179. (c) Copyright 1999-2002 knut st. osmundsen (bird@anduin.net)
  180.  
  181.  
  182.  
  183. 5.1 Licence
  184. -----------
  185.                     GNU GENERAL PUBLIC LICENSE
  186.                        Version 2, June 1991
  187.  
  188.  Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  189.                        59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  190.  Everyone is permitted to copy and distribute verbatim copies
  191.  of this license document, but changing it is not allowed.
  192.  
  193.                             Preamble
  194.  
  195.   The licenses for most software are designed to take away your
  196. freedom to share and change it.  By contrast, the GNU General Public
  197. License is intended to guarantee your freedom to share and change free
  198. software--to make sure the software is free for all its users.  This
  199. General Public License applies to most of the Free Software
  200. Foundation's software and to any other program whose authors commit to
  201. using it.  (Some other Free Software Foundation software is covered by
  202. the GNU Library General Public License instead.)  You can apply it to
  203. your programs, too.
  204.  
  205.   When we speak of free software, we are referring to freedom, not
  206. price.  Our General Public Licenses are designed to make sure that you
  207. have the freedom to distribute copies of free software (and charge for
  208. this service if you wish), that you receive source code or can get it
  209. if you want it, that you can change the software or use pieces of it
  210. in new free programs; and that you know you can do these things.
  211.  
  212.   To protect your rights, we need to make restrictions that forbid
  213. anyone to deny you these rights or to ask you to surrender the rights.
  214. These restrictions translate to certain responsibilities for you if you
  215. distribute copies of the software, or if you modify it.
  216.  
  217.   For example, if you distribute copies of such a program, whether
  218. gratis or for a fee, you must give the recipients all the rights that
  219. you have.  You must make sure that they, too, receive or can get the
  220. source code.  And you must show them these terms so they know their
  221. rights.
  222.  
  223.   We protect your rights with two steps: (1) copyright the software, and
  224. (2) offer you this license which gives you legal permission to copy,
  225. distribute and/or modify the software.
  226.  
  227.   Also, for each author's protection and ours, we want to make certain
  228. that everyone understands that there is no warranty for this free
  229. software.  If the software is modified by someone else and passed on, we
  230. want its recipients to know that what they have is not the original, so
  231. that any problems introduced by others will not reflect on the original
  232. authors' reputations.
  233.  
  234.   Finally, any free program is threatened constantly by software
  235. patents.  We wish to avoid the danger that redistributors of a free
  236. program will individually obtain patent licenses, in effect making the
  237. program proprietary.  To prevent this, we have made it clear that any
  238. patent must be licensed for everyone's free use or not licensed at all.
  239.  
  240.   The precise terms and conditions for copying, distribution and
  241. modification follow.
  242.  
  243.                     GNU GENERAL PUBLIC LICENSE
  244.    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  245.  
  246.   0. This License applies to any program or other work which contains
  247. a notice placed by the copyright holder saying it may be distributed
  248. under the terms of this General Public License.  The "Program", below,
  249. refers to any such program or work, and a "work based on the Program"
  250. means either the Program or any derivative work under copyright law:
  251. that is to say, a work containing the Program or a portion of it,
  252. either verbatim or with modifications and/or translated into another
  253. language.  (Hereinafter, translation is included without limitation in
  254. the term "modification".)  Each licensee is addressed as "you".
  255.  
  256. Activities other than copying, distribution and modification are not
  257. covered by this License; they are outside its scope.  The act of
  258. running the Program is not restricted, and the output from the Program
  259. is covered only if its contents constitute a work based on the
  260. Program (independent of having been made by running the Program).
  261. Whether that is true depends on what the Program does.
  262.  
  263.   1. You may copy and distribute verbatim copies of the Program's
  264. source code as you receive it, in any medium, provided that you
  265. conspicuously and appropriately publish on each copy an appropriate
  266. copyright notice and disclaimer of warranty; keep intact all the
  267. notices that refer to this License and to the absence of any warranty;
  268. and give any other recipients of the Program a copy of this License
  269. along with the Program.
  270.  
  271. You may charge a fee for the physical act of transferring a copy, and
  272. you may at your option offer warranty protection in exchange for a fee.
  273.  
  274.   2. You may modify your copy or copies of the Program or any portion
  275. of it, thus forming a work based on the Program, and copy and
  276. distribute such modifications or work under the terms of Section 1
  277. above, provided that you also meet all of these conditions:
  278.  
  279.     a) You must cause the modified files to carry prominent notices
  280.     stating that you changed the files and the date of any change.
  281.  
  282.     b) You must cause any work that you distribute or publish, that in
  283.     whole or in part contains or is derived from the Program or any
  284.     part thereof, to be licensed as a whole at no charge to all third
  285.     parties under the terms of this License.
  286.  
  287.     c) If the modified program normally reads commands interactively
  288.     when run, you must cause it, when started running for such
  289.     interactive use in the most ordinary way, to print or display an
  290.     announcement including an appropriate copyright notice and a
  291.     notice that there is no warranty (or else, saying that you provide
  292.     a warranty) and that users may redistribute the program under
  293.     these conditions, and telling the user how to view a copy of this
  294.     License.  (Exception: if the Program itself is interactive but
  295.     does not normally print such an announcement, your work based on
  296.     the Program is not required to print an announcement.)
  297.  
  298. These requirements apply to the modified work as a whole.  If
  299. identifiable sections of that work are not derived from the Program,
  300. and can be reasonably considered independent and separate works in
  301. themselves, then this License, and its terms, do not apply to those
  302. sections when you distribute them as separate works.  But when you
  303. distribute the same sections as part of a whole which is a work based
  304. on the Program, the distribution of the whole must be on the terms of
  305. this License, whose permissions for other licensees extend to the
  306. entire whole, and thus to each and every part regardless of who wrote it.
  307.  
  308. Thus, it is not the intent of this section to claim rights or contest
  309. your rights to work written entirely by you; rather, the intent is to
  310. exercise the right to control the distribution of derivative or
  311. collective works based on the Program.
  312.  
  313. In addition, mere aggregation of another work not based on the Program
  314. with the Program (or with a work based on the Program) on a volume of
  315. a storage or distribution medium does not bring the other work under
  316. the scope of this License.
  317.  
  318.   3. You may copy and distribute the Program (or a work based on it,
  319. under Section 2) in object code or executable form under the terms of
  320. Sections 1 and 2 above provided that you also do one of the following:
  321.  
  322.     a) Accompany it with the complete corresponding machine-readable
  323.     source code, which must be distributed under the terms of Sections
  324.     1 and 2 above on a medium customarily used for software interchange; or,
  325.  
  326.     b) Accompany it with a written offer, valid for at least three
  327.     years, to give any third party, for a charge no more than your
  328.     cost of physically performing source distribution, a complete
  329.     machine-readable copy of the corresponding source code, to be
  330.     distributed under the terms of Sections 1 and 2 above on a medium
  331.     customarily used for software interchange; or,
  332.  
  333.     c) Accompany it with the information you received as to the offer
  334.     to distribute corresponding source code.  (This alternative is
  335.     allowed only for noncommercial distribution and only if you
  336.     received the program in object code or executable form with such
  337.     an offer, in accord with Subsection b above.)
  338.  
  339. The source code for a work means the preferred form of the work for
  340. making modifications to it.  For an executable work, complete source
  341. code means all the source code for all modules it contains, plus any
  342. associated interface definition files, plus the scripts used to
  343. control compilation and installation of the executable.  However, as a
  344. special exception, the source code distributed need not include
  345. anything that is normally distributed (in either source or binary
  346. form) with the major components (compiler, kernel, and so on) of the
  347. operating system on which the executable runs, unless that component
  348. itself accompanies the executable.
  349.  
  350. If distribution of executable or object code is made by offering
  351. access to copy from a designated place, then offering equivalent
  352. access to copy the source code from the same place counts as
  353. distribution of the source code, even though third parties are not
  354. compelled to copy the source along with the object code.
  355.  
  356.   4. You may not copy, modify, sublicense, or distribute the Program
  357. except as expressly provided under this License.  Any attempt
  358. otherwise to copy, modify, sublicense or distribute the Program is
  359. void, and will automatically terminate your rights under this License.
  360. However, parties who have received copies, or rights, from you under
  361. this License will not have their licenses terminated so long as such
  362. parties remain in full compliance.
  363.  
  364.   5. You are not required to accept this License, since you have not
  365. signed it.  However, nothing else grants you permission to modify or
  366. distribute the Program or its derivative works.  These actions are
  367. prohibited by law if you do not accept this License.  Therefore, by
  368. modifying or distributing the Program (or any work based on the
  369. Program), you indicate your acceptance of this License to do so, and
  370. all its terms and conditions for copying, distributing or modifying
  371. the Program or works based on it.
  372.  
  373.   6. Each time you redistribute the Program (or any work based on the
  374. Program), the recipient automatically receives a license from the
  375. original licensor to copy, distribute or modify the Program subject to
  376. these terms and conditions.  You may not impose any further
  377. restrictions on the recipients' exercise of the rights granted herein.
  378. You are not responsible for enforcing compliance by third parties to
  379. this License.
  380.  
  381.   7. If, as a consequence of a court judgment or allegation of patent
  382. infringement or for any other reason (not limited to patent issues),
  383. conditions are imposed on you (whether by court order, agreement or
  384. otherwise) that contradict the conditions of this License, they do not
  385. excuse you from the conditions of this License.  If you cannot
  386. distribute so as to satisfy simultaneously your obligations under this
  387. License and any other pertinent obligations, then as a consequence you
  388. may not distribute the Program at all.  For example, if a patent
  389. license would not permit royalty-free redistribution of the Program by
  390. all those who receive copies directly or indirectly through you, then
  391. the only way you could satisfy both it and this License would be to
  392. refrain entirely from distribution of the Program.
  393.  
  394. If any portion of this section is held invalid or unenforceable under
  395. any particular circumstance, the balance of the section is intended to
  396. apply and the section as a whole is intended to apply in other
  397. circumstances.
  398.  
  399. It is not the purpose of this section to induce you to infringe any
  400. patents or other property right claims or to contest validity of any
  401. such claims; this section has the sole purpose of protecting the
  402. integrity of the free software distribution system, which is
  403. implemented by public license practices.  Many people have made
  404. generous contributions to the wide range of software distributed
  405. through that system in reliance on consistent application of that
  406. system; it is up to the author/donor to decide if he or she is willing
  407. to distribute software through any other system and a licensee cannot
  408. impose that choice.
  409.  
  410. This section is intended to make thoroughly clear what is believed to
  411. be a consequence of the rest of this License.
  412.  
  413.   8. If the distribution and/or use of the Program is restricted in
  414. certain countries either by patents or by copyrighted interfaces, the
  415. original copyright holder who places the Program under this License
  416. may add an explicit geographical distribution limitation excluding
  417. those countries, so that distribution is permitted only in or among
  418. countries not thus excluded.  In such case, this License incorporates
  419. the limitation as if written in the body of this License.
  420.  
  421.   9. The Free Software Foundation may publish revised and/or new versions
  422. of the General Public License from time to time.  Such new versions will
  423. be similar in spirit to the present version, but may differ in detail to
  424. address new problems or concerns.
  425.  
  426. Each version is given a distinguishing version number.  If the Program
  427. specifies a version number of this License which applies to it and "any
  428. later version", you have the option of following the terms and conditions
  429. either of that version or of any later version published by the Free
  430. Software Foundation.  If the Program does not specify a version number of
  431. this License, you may choose any version ever published by the Free Software
  432. Foundation.
  433.  
  434.   10. If you wish to incorporate parts of the Program into other free
  435. programs whose distribution conditions are different, write to the author
  436. to ask for permission.  For software which is copyrighted by the Free
  437. Software Foundation, write to the Free Software Foundation; we sometimes
  438. make exceptions for this.  Our decision will be guided by the two goals
  439. of preserving the free status of all derivatives of our free software and
  440. of promoting the sharing and reuse of software generally.
  441.  
  442.                             NO WARRANTY
  443.  
  444.   11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
  445. FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
  446. OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
  447. PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
  448. OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  449. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
  450. TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  451. PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
  452. REPAIR OR CORRECTION.
  453.  
  454.   12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  455. WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
  456. REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
  457. INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
  458. OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
  459. TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
  460. YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  461. PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
  462. POSSIBILITY OF SUCH DAMAGES.
  463.  
  464.                      END OF TERMS AND CONDITIONS
  465.  
  466.             How to Apply These Terms to Your New Programs
  467.  
  468.   If you develop a new program, and you want it to be of the greatest
  469. possible use to the public, the best way to achieve this is to make it
  470. free software which everyone can redistribute and change under these terms.
  471.  
  472.   To do so, attach the following notices to the program.  It is safest
  473. to attach them to the start of each source file to most effectively
  474. convey the exclusion of warranty; and each file should have at least
  475. the "copyright" line and a pointer to where the full notice is found.
  476.  
  477.     <one line to give the program's name and a brief idea of what it does.>
  478.     Copyright (C) <year>  <name of author>
  479.  
  480.     This program is free software; you can redistribute it and/or modify
  481.     it under the terms of the GNU General Public License as published by
  482.     the Free Software Foundation; either version 2 of the License, or
  483.     (at your option) any later version.
  484.  
  485.     This program is distributed in the hope that it will be useful,
  486.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  487.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  488.     GNU General Public License for more details.
  489.  
  490.     You should have received a copy of the GNU General Public License
  491.     along with this program; if not, write to the Free Software
  492.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  493.  
  494.  
  495. Also add information on how to contact you by electronic and paper mail.
  496.  
  497. If the program is interactive, make it output a short notice like this
  498. when it starts in an interactive mode:
  499.  
  500.     Gnomovision version 69, Copyright (C) year name of author
  501.     Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  502.     This is free software, and you are welcome to redistribute it
  503.     under certain conditions; type `show c' for details.
  504.  
  505. The hypothetical commands `show w' and `show c' should show the appropriate
  506. parts of the General Public License.  Of course, the commands you use may
  507. be called something other than `show w' and `show c'; they could even be
  508. mouse-clicks or menu items--whatever suits your program.
  509.  
  510. You should also get your employer (if you work as a programmer) or your
  511. school, if any, to sign a "copyright disclaimer" for the program, if
  512. necessary.  Here is a sample; alter the names:
  513.  
  514.   Yoyodyne, Inc., hereby disclaims all copyright interest in the program
  515.   `Gnomovision' (which makes passes at compilers) written by James Hacker.
  516.  
  517.   <signature of Ty Coon>, 1 April 1989
  518.   Ty Coon, President of Vice
  519.  
  520. This General Public License does not permit incorporating your program into
  521. proprietary programs.  If your program is a subroutine library, you may
  522. consider it more useful to permit linking proprietary applications with the
  523. library.  If this is what you want to do, use the GNU Library General
  524. Public License instead of this License.
  525.  
  526.