Progress Datadirect for ODBC Drivers Reference

Total Page:16

File Type:pdf, Size:1020Kb

Progress Datadirect for ODBC Drivers Reference Progress® DataDirect® for ODBC Drivers Reference September 2020 Copyright © 2020 Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved. These materials and all Progress® software products are copyrighted and all rights are reserved by Progress Software Corporation. The information in these materials is subject to change without notice, and Progress Software Corporation assumes no responsibility for any errors that may appear therein. The references in these materials to specific platforms supported are subject to change. Corticon, DataDirect (and design), DataDirect Cloud, DataDirect Connect, DataDirect Connect64, DataDirect XML Converters, DataDirect XQuery, DataRPM, Defrag This, Deliver More Than Expected, Icenium, Ipswitch, iMacros, Kendo UI, Kinvey, MessageWay, MOVEit, NativeChat, NativeScript, OpenEdge, Powered by Progress, Progress, Progress Software Developers Network, SequeLink, Sitefinity (and Design), Sitefinity, SpeedScript, Stylus Studio, TeamPulse, Telerik, Telerik (and Design), Test Studio, WebSpeed, WhatsConfigured, WhatsConnected, WhatsUp, and WS_FTP are registered trademarks of Progress Software Corporation or one of its affiliates or subsidiaries in the U.S. and/or other countries. Analytics360, AppServer, BusinessEdge, DataDirect Autonomous REST Connector, DataDirect Spy, SupportLink, DevCraft, Fiddler, iMail, JustAssembly, JustDecompile, JustMock, NativeScript Sidekick, OpenAccess, ProDataSet, Progress Results, Progress Software, ProVision, PSE Pro, SmartBrowser, SmartComponent, SmartDataBrowser, SmartDataObjects, SmartDataView, SmartDialog, SmartFolder, SmartFrame, SmartObjects, SmartPanel, SmartQuery, SmartViewer, SmartWindow, and WebClient are trademarks or service marks of Progress Software Corporation and/or its subsidiaries or affiliates in the U.S. and other countries. Java is a registered trademark of Oracle and/or its affiliates. Any other marks contained herein may be trademarks of their respective owners. Updated: 2020/09/08 Progress DataDirect for ODBC Drivers: Reference: Version September 2020 3 Copyright 4 Progress DataDirect for ODBC Drivers: Reference: Version September 2020 Contents Table of Contents Welcome to the Progress DataDirect for ODBC Drivers Reference .........9 Troubleshooting...........................................................................................11 Diagnostic tools....................................................................................................................................11 ODBC trace...............................................................................................................................11 Test loading tool.........................................................................................................................15 ODBC Test.................................................................................................................................16 iODBC Demo and iODBC Test..................................................................................................16 Logging for Java components....................................................................................................16 The example application............................................................................................................19 Other tools.................................................................................................................................20 Error messages....................................................................................................................................20 Troubleshooting....................................................................................................................................21 Setup/connection issues............................................................................................................22 Interoperability issues................................................................................................................23 Performance issues...................................................................................................................24 Code page values........................................................................................25 IANAAppCodePage values ..................................................................................................................25 IBM to IANA code page values.............................................................................................................30 Teradata code page values...................................................................................................................32 ODBC API and scalar functions.................................................................33 API functions........................................................................................................................................33 Scalar functions....................................................................................................................................35 String functions..........................................................................................................................37 Numeric functions......................................................................................................................39 Date and time functions.............................................................................................................40 System functions.......................................................................................................................42 Internationalization, localization, and Unicode.........................................43 Internationalization and Localization....................................................................................................43 Locale........................................................................................................................................44 Language...................................................................................................................................44 Country......................................................................................................................................44 Variant........................................................................................................................................45 Progress DataDirect for ODBC Drivers: Reference: Version September 2020 5 Contents Unicode character encoding.................................................................................................................45 Background................................................................................................................................45 Unicode support in databases...................................................................................................46 Unicode support in ODBC.........................................................................................................46 Unicode and non-Unicode ODBC drivers.............................................................................................47 Function calls.............................................................................................................................47 Data...........................................................................................................................................50 Default Unicode mapping...........................................................................................................51 Driver Manager and Unicode encoding on UNIX/Linux........................................................................52 References.................................................................................................................................53 Character encoding in the odbc.ini and odbcinst.ini files......................................................................53 Designing ODBC Applications for Performance Optimization................55 Using Catalog Functions......................................................................................................................56 Caching Information to Minimize the Use of Catalog Functions................................................56 Avoiding Search Patterns...........................................................................................................57 Using a Dummy Query to Determine Table Characteristics.......................................................57 Retrieving Data.....................................................................................................................................58 Retrieving Long Data.................................................................................................................58 Reducing the Size of Data Retrieved.........................................................................................58 Using Bound Columns...............................................................................................................59 Using SQLExtendedFetch Instead of SQLFetch.......................................................................59 Choosing the Right Data Type...................................................................................................60 Selecting ODBC Functions...................................................................................................................60 Using SQLPrepare/SQLExecute
Recommended publications
  • Tugboat, Volume 11 (1990), No
    TUGboat, Volume 11 (1990), No. 2 G.A. Kubba. The Impact of Computers on Ara- to Computer Modern fonts-I strongly support the bic Writing, Character Processing, and Teach- principal idea, and I pursue it in the present paper. ing. Information Processing, 80:961-965, 1980. To organize the discussion in a systematic way, I Pierre Mackay. Typesetting Problem Scripts. will use the notions - borrowed from [2]-of text Byte, 11(2):201-218, February 1986. encoding, typing and rendering. J. Marshall Unger. The Fiflh Generation 2 Text encoding Fallacy- Why Japan is Betting its Future on Artificial Intelligence. Oxford University Press, In the context of w,encoding means the character 1987. sets of the fonts in question and their layouts. In the present section I will focus my attention on the X/Open Company, Ltd. X/Open Portability character sets, as the layouts should be influenced, Guide, Supplementary Definitions, volume 3. among others, by typing considerations. Prentice-Hall. 1989. In an attempt to obtain a general idea about the use of the latin alphabet worldwide, I looked up the o Nelson H.F. Beebe only relevant reference work I am aware of, namely Center for Scientific Computing and Department of Languages Identificatzon Guzde [7] (hereafter LIG). Mathematics Apart from the latin scripts used in the Soviet Union South Physics Building and later replaced by Cyrillic ones, it lists 82 lan- University of Utah guages using the latin alphabet with additional let- Salt Lake City, UT 84112 ters (I preserve the original spelling): USA Albanian, Aymara, Basque. Breton, Bui, Tel: (801) 581-5254 Catalan, Choctaw, Chuana, Cree, Czech, Internet: BeebeQscience .utah.edu Danish, Delaware, Dutch, Eskimo, Espe- ranto, Estonian, Ewe, Faroese (also spelled Faroeish), Fiji, Finnish, French, Frisian, Fulbe, German, Guarani, Hausa, Hun- garian, Icelandic, Irish, Italian, Javanese, Juang, Kasubian, Kurdish, Lahu, Lahuli, - Latin, Lettish, Lingala, Lithuanian, Lisu, On Standards Luba, Madura.
    [Show full text]
  • Owner's Manual
    OWNER’S MANUAL M197WD M227WD M237WD Make sure to read the Safety Precautions before using the product. Keep the User's Guide(CD) in an accessible place for furture reference. See the label attached on the product and give the information to your dealer when you ask for service. Trade Mark of the DVB Digital Video Broadcasting Project (1991 to 1996) ID Number(s): 5741 : M227WD 5742 : M197WD 5890 : M237WD PREPARATION FRONT PANEL CONTROLS I This is a simplified representation of the front panel. The image shown may be somewhat different from your set. INPUT INPUT Button MENU MENU Button OK OK Button VOLUME VOL Buttons PROGRAMME PR Buttons Power Button Headphone Button 1 PREPARATION <M197WD/M227WD> BACK PANEL INFORMATION I This is a simplified representation of the back panel. The image shown may be somewhat different from your set. 1 2 3 4 5 6 7 COMPONENT AV-IN 3 AUDIO IN IN (RGB/DVI) AV 1 AV 2 OPTICAL Y DIGITAL AV 1 AV 2 AUDIO OUT VIDEO AUDIO 1 B P VIDEO HDMI RGB IN (PC) (MONO) AC IN 2 PR L DVI-D ANTENNA L IN AC IN SERVICE R AUDIO ONLY RS-232C IN (CONTROL & SERVICE) R S-VIDEO 8 9 10 11 12 13 14 1 PCMCIA (Personal Computer Memory Card 7 Audio/Video Input International Association) Card Slot Connect audio/video output from an external device (This feature is not available in all countries.) to these jacks. 2 Power Cord Socket 8 SERVICE ONLY PORT This set operates on AC power. The voltage is indicat- ed on the Specifications page.
    [Show full text]
  • Unicode and Code Page Support
    Natural for Mainframes Unicode and Code Page Support Version 4.2.6 for Mainframes October 2009 This document applies to Natural Version 4.2.6 for Mainframes and to all subsequent releases. Specifications contained herein are subject to change and these changes will be reported in subsequent release notes or new editions. Copyright © Software AG 1979-2009. All rights reserved. The name Software AG, webMethods and all Software AG product names are either trademarks or registered trademarks of Software AG and/or Software AG USA, Inc. Other company and product names mentioned herein may be trademarks of their respective owners. Table of Contents 1 Unicode and Code Page Support .................................................................................... 1 2 Introduction ..................................................................................................................... 3 About Code Pages and Unicode ................................................................................ 4 About Unicode and Code Page Support in Natural .................................................. 5 ICU on Mainframe Platforms ..................................................................................... 6 3 Unicode and Code Page Support in the Natural Programming Language .................... 7 Natural Data Format U for Unicode-Based Data ....................................................... 8 Statements .................................................................................................................. 9 Logical
    [Show full text]
  • DDS for Printer Files
    IBM i 7.2 Programming DDS for printer files IBM Note Before using this information and the product it supports, read the information in “Notices” on page 149. This edition applies to IBM i 7.2 (product number 5770-SS1) and to all subsequent releases and modifications until otherwise indicated in new editions. This version does not run on all reduced instruction set computer (RISC) models nor does it run on CISC models. This document may contain references to Licensed Internal Code. Licensed Internal Code is Machine Code and is licensed to you under the terms of the IBM License Agreement for Machine Code. © Copyright International Business Machines Corporation 2001, 2013. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents DDS for printer files............................................................................................... 1 What's new for IBM i 7.2..............................................................................................................................1 PDF file for DDS for printer files...................................................................................................................1 Defining a printer file....................................................................................................................................2 Conventions and terminology for DDS information............................................................................... 3 Positional entries for printer files (positions
    [Show full text]
  • Legacy Character Sets & Encodings
    Legacy & Not-So-Legacy Character Sets & Encodings Ken Lunde CJKV Type Development Adobe Systems Incorporated bc ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/unicode/iuc15-tb1-slides.pdf Tutorial Overview dc • What is a character set? What is an encoding? • How are character sets and encodings different? • Legacy character sets. • Non-legacy character sets. • Legacy encodings. • How does Unicode fit it? • Code conversion issues. • Disclaimer: The focus of this tutorial is primarily on Asian (CJKV) issues, which tend to be complex from a character set and encoding standpoint. 15th International Unicode Conference Copyright © 1999 Adobe Systems Incorporated Terminology & Abbreviations dc • GB (China) — Stands for “Guo Biao” (国标 guóbiâo ). — Short for “Guojia Biaozhun” (国家标准 guójiâ biâozhün). — Means “National Standard.” • GB/T (China) — “T” stands for “Tui” (推 tuî ). — Short for “Tuijian” (推荐 tuîjiàn ). — “T” means “Recommended.” • CNS (Taiwan) — 中國國家標準 ( zhôngguó guójiâ biâozhün) in Chinese. — Abbreviation for “Chinese National Standard.” 15th International Unicode Conference Copyright © 1999 Adobe Systems Incorporated Terminology & Abbreviations (Cont’d) dc • GCCS (Hong Kong) — Abbreviation for “Government Chinese Character Set.” • JIS (Japan) — 日本工業規格 ( nihon kôgyô kikaku) in Japanese. — Abbreviation for “Japanese Industrial Standard.” — 〄 • KS (Korea) — 한국 공업 규격 (韓國工業規格 hangug gongeob gyugyeog) in Korean. — Abbreviation for “Korean Standard.” — ㉿ — Designation change from “C” to “X” on August 20, 1997. 15th International Unicode Conference Copyright © 1999 Adobe Systems Incorporated Terminology & Abbreviations (Cont’d) dc • TCVN (Vietnam) — Tiu Chun Vit Nam in Vietnamese. — Means “Vietnamese Standard.” • CJKV — Chinese, Japanese, Korean, and Vietnamese. 15th International Unicode Conference Copyright © 1999 Adobe Systems Incorporated What Is A Character Set? dc • A collection of characters that are intended to be used together to create meaningful text.
    [Show full text]
  • Basis Technology Unicode対応ライブラリ スペックシート 文字コード その他の名称 Adobe-Standard-Encoding A
    Basis Technology Unicode対応ライブラリ スペックシート 文字コード その他の名称 Adobe-Standard-Encoding Adobe-Symbol-Encoding csHPPSMath Adobe-Zapf-Dingbats-Encoding csZapfDingbats Arabic ISO-8859-6, csISOLatinArabic, iso-ir-127, ECMA-114, ASMO-708 ASCII US-ASCII, ANSI_X3.4-1968, iso-ir-6, ANSI_X3.4-1986, ISO646-US, us, IBM367, csASCI big-endian ISO-10646-UCS-2, BigEndian, 68k, PowerPC, Mac, Macintosh Big5 csBig5, cn-big5, x-x-big5 Big5Plus Big5+, csBig5Plus BMP ISO-10646-UCS-2, BMPstring CCSID-1027 csCCSID1027, IBM1027 CCSID-1047 csCCSID1047, IBM1047 CCSID-290 csCCSID290, CCSID290, IBM290 CCSID-300 csCCSID300, CCSID300, IBM300 CCSID-930 csCCSID930, CCSID930, IBM930 CCSID-935 csCCSID935, CCSID935, IBM935 CCSID-937 csCCSID937, CCSID937, IBM937 CCSID-939 csCCSID939, CCSID939, IBM939 CCSID-942 csCCSID942, CCSID942, IBM942 ChineseAutoDetect csChineseAutoDetect: Candidate encodings: GB2312, Big5, GB18030, UTF32:UTF8, UCS2, UTF32 EUC-H, csCNS11643EUC, EUC-TW, TW-EUC, H-EUC, CNS-11643-1992, EUC-H-1992, csCNS11643-1992-EUC, EUC-TW-1992, CNS-11643 TW-EUC-1992, H-EUC-1992 CNS-11643-1986 EUC-H-1986, csCNS11643_1986_EUC, EUC-TW-1986, TW-EUC-1986, H-EUC-1986 CP10000 csCP10000, windows-10000 CP10001 csCP10001, windows-10001 CP10002 csCP10002, windows-10002 CP10003 csCP10003, windows-10003 CP10004 csCP10004, windows-10004 CP10005 csCP10005, windows-10005 CP10006 csCP10006, windows-10006 CP10007 csCP10007, windows-10007 CP10008 csCP10008, windows-10008 CP10010 csCP10010, windows-10010 CP10017 csCP10017, windows-10017 CP10029 csCP10029, windows-10029 CP10079 csCP10079, windows-10079
    [Show full text]
  • Informatica Powerexchange for Websphere MQ
    Informatica® PowerExchange for WebSphere MQ 10.4.0 User Guide for PowerCenter Informatica PowerExchange for WebSphere MQ User Guide for PowerCenter 10.4.0 December 2019 © Copyright Informatica LLC 2009, 2021 This software and documentation are provided only under a separate license agreement containing restrictions on use and disclosure. No part of this document may be reproduced or transmitted in any form, by any means (electronic, photocopying, recording or otherwise) without prior consent of Informatica LLC. Informatica, the Informatica logo, PowerCenter, and PowerExchange are trademarks or registered trademarks of Informatica LLC in the United States and many jurisdictions throughout the world. A current list of Informatica trademarks is available on the web at https://www.informatica.com/trademarks.html. Other company and product names may be trade names or trademarks of their respective owners. U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation is subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License. Portions of this software and/or documentation are subject to copyright held by third parties, including without limitation: Copyright DataDirect Technologies. All rights reserved. Copyright © Sun Microsystems. All rights reserved. Copyright © RSA Security Inc. All Rights Reserved.
    [Show full text]
  • Data Encoding: All Characters for All Countries
    PhUSE 2015 Paper DH03 Data Encoding: All Characters for All Countries Donna Dutton, SAS Institute Inc., Cary, NC, USA ABSTRACT The internal representation of data, formats, indexes, programs and catalogs collected for clinical studies is typically defined by the country(ies) in which the study is conducted. When data from multiple languages must be combined, the internal encoding must support all characters present, to prevent truncation and misinterpretation of characters. Migration to different operating systems with or without an encoding change make it impossible to use catalogs and existing data features such as indexes and constraints, unless the new operating system’s internal representation is adopted. UTF-8 encoding on the Linux OS is used by SAS® Drug Development and SAS® Clinical Trial Data Transparency Solutions to support these requirements. UTF-8 encoding correctly represents all characters found in all languages by using multiple bytes to represent some characters. This paper explains transcoding data into UTF-8 without data loss, writing programs which work correctly with MBCS data, and handling format catalogs and programs. INTRODUCTION The internal representation of data, formats, indexes, programs and catalogs collected for clinical studies is typically defined by the country or countries in which the study is conducted. The operating system on which the data was entered defines the internal data representation, such as Windows_64, HP_UX_64, Solaris_64, and Linux_X86_64.1 Although SAS Software can read SAS data sets copied from one operating system to another, it impossible to use existing data features such as indexes and constraints, or SAS catalogs without converting them to the new operating system’s data representation.
    [Show full text]
  • JFP Reference Manual 5 : Standards, Environments, and Macros
    JFP Reference Manual 5 : Standards, Environments, and Macros Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. Part No: 817–0648–10 December 2002 Copyright 2002 Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A. All rights reserved. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd. Sun, Sun Microsystems, the Sun logo, docs.sun.com, AnswerBook, AnswerBook2, and Solaris are trademarks, registered trademarks, or service marks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc. The OPEN LOOK and Sun™ Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to the Xerox Graphical User Interface, which license also covers Sun’s licensees who implement OPEN LOOK GUIs and otherwise comply with Sun’s written license agreements.
    [Show full text]
  • Docucreate User Guide Version 11.5
    Start Oracle® Documaker Docucreate User Guide version 11.5 Part number: E16256-01 April 2010 Notice Copyright © 2009, 2010, Oracle and/or its affiliates. All rights reserved. The Programs (which include both the software and documentation) contain proprietary information; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly, or decompilation of the Programs, except to the extent required to obtain interoperability with other independently created software or as specified by law, is prohibited. The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. This document is not warranted to be error-free. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose. If the Programs are delivered to the United States Government or anyone licensing or using the Programs on behalf of the United States Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the Programs, including documentation and technical data, shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement, and, to the extent applicable, the additional rights set forth in FAR 52.227-19, Commercial Computer Software--Restricted Rights (June 1987).
    [Show full text]
  • Addendum 135-2008K-1
    ANSI/ASHRAE Addendum k to ANSI/ASHRAE Standard 135-2008 ASHRAEASHRAE STANDARDSTANDARD BACnet®—A Data Communication Protocol for Building Automation and Control Networks Approved by the ASHRAE Standards Committee on January 23, 2010; by the ASHRAE Board of Directors on January 27, 2010; and by the American National Standards Institute on January 28, 2010. This standard is under continuous maintenance by a Standing Standard Project Committee (SSPC) for which the Standards Committee has established a documented program for regular publication of addenda or revi- sions, including procedures for timely, documented, consensus action on requests for change to any part of the standard. The change submittal form, instructions, and deadlines may be obtained in electronic form from the ASHRAE Web site, http://www.ashrae.org, or in paper form from the Manager of Standards. The latest edi- tion of an ASHRAE Standard may be purchased from ASHRAE Customer Service, 1791 Tullie Circle, NE, Atlanta, GA 30329-2305. E-mail: [email protected]. Fax: 404-321-5478. Telephone: 404-636-8400 (world- wide), or toll free 1-800-527-4723 (for orders in US and Canada). © Copyright 2010 American Society of Heating, Refrigerating and Air-Conditioning Engineers, Inc. ISSN 1041-2336 American Society of Heating, Refrigerating and Air-Conditioning Engineers, Inc. 1791 Tullie Circle NE, Atlanta, GA 30329 www.ashrae.org ASHRAE Standing Standard Project Committee 135 Cognizant TC: TC 1.4, Control Theory and Application SPLS Liaison: Douglas T. Reindl David Robin, Chair* Coleman L. Brumley, Jr.* John J. Lynch Carl Neilson, Vice-Chair Bernhard Isler* Ted Sunderland Sharon E. Dinges, Secretary* Stephen Karg* David B.
    [Show full text]
  • Embrace Multilingual Data Chao Wang, MSD R&D (China) Co.,Ltd
    PharmaSUG China The Power of SAS National Language Support - Embrace Multilingual Data Chao Wang, MSD R&D (China) Co.,Ltd. Beijing ABSTRACT As clinical trials take place around the globe, data in different languages may need to be handled. The usual solution for this issue is to translate the data to English, after some manipulations, results then will be translated back to the original language. Since version 9.1.2, SAS software can provide a specific function called National Language Support, this issue would be easy to handle. In this paper, an introduction will be made on: 1) how to build the ready SAS session to import and display the mixed data with NLS system option 2) how to use the edge tool – SAS K-Function (including K-macro Function) to do data manipulations and 3) how to display any character in reports with the Unicode support. Here would use a multilingual (Chinese and English) AE dataset as an example on SAS 9.3 PC version. The related applications on the UNIX server and SAS Enterprise Guide would also be discussed. INTRODUCTION When conduct a multi-national study, data often comes from various countries using different languages and scripts, especially in Asia area. The different sources data will make the clinical operation more complex and cost additional budget and time. It always needs to translate the raw data to English and save the new information in database. And analysis and reporting are based on English words. After review, then translate the English reports back to the local language. Besides the CSR, the data monitoring may require to do some analysis based on the unclean raw data.
    [Show full text]