SAP Open Server and Open Client Programmers Supplement for UNIX Company

SAP Open Server and Open Client Programmers Supplement for UNIX Company

PUBLIC SAP Open Server 16.0 SP04 Document Version: 1.0 – 2020-12-10 SAP Open Server and Open Client Programmers Supplement for UNIX company. All rights reserved. All rights company. affiliate THE BEST RUN 2020 SAP SE or an SAP SE or an SAP SAP 2020 © Content 1 Open Client Client-Library/C................................................... 7 1.1 Running Client-Library Sample Programs ............................................7 1.2 POSIX Threads in Open Client and SAP Open Server....................................8 1.3 Native Thread Support .........................................................8 1.4 Client-Library Libraries for Non-Threaded Environment................................. 10 Kerberos Support......................................................... 10 Compile-and-Link Lines..................................................... 12 Compile-and-Link Lines for Non-Threaded Applications...............................12 Compile-and-Link Lines for Multi-threaded Applications.............................. 16 Compile-and-Link Lines for Kerberos Supported Applications.......................... 18 Static compile-and-link Commands for Client-Library................................18 Debug compile-and-link Commands for Client-Library............................... 20 Shareable compile-and-link Commands for Client-Library.............................21 Using Bulk Copy Routines....................................................23 1.5 Client-Library Sample Programs................................................. 24 Using makefile to Build Sample Programs........................................ 24 Purpose of Sample Programs.................................................24 Using sybopts.sh Script for Building Applications...................................25 Location of Sample Programs.................................................25 Header Files.............................................................26 1.6 Utility Routines for the Sample Programs...........................................28 1.7 Summary of Sample Program...................................................29 arraybind.c Sample Program................................................. 30 batch_lang.c Sample Program................................................ 30 batch_dynamic.c Sample Program.............................................30 blktxt.c Sample Program....................................................30 compute.c Sample Program..................................................31 csr_disp.c Sample Program...................................................31 csr_disp_scrollcurs.c Sample Program.......................................... 32 csr_disp_scrollcurs2.c Sample Program..........................................32 csr_disp_scrollcurs3.c Sample Program..........................................33 csr_disp_implicit.c Sample Program............................................33 dynamic.c Sample Program..................................................33 ex_alib.c and ex_amain.c Sample Programs.......................................34 exconfig.c Sample Program.................................................. 34 exutils2.c Sample Program...................................................34 SAP Open Server and Open Client Programmers Supplement for UNIX 2 PUBLIC Content firstapp.c Sample Program...................................................35 getsend.c Sample Program...................................................35 i18n.c Sample Program..................................................... 35 id_update.c Sample Program.................................................35 lobdynamic.c Sample Program................................................35 lobrpc.c Sample Program....................................................36 locator.c Sample Program................................................... 36 multthrd.c and thrdfunc.c Sample Programs...................................... 36 rpc.c Sample Program......................................................37 secct.c Sample Program.....................................................37 thrdutil.c Sample Program...................................................37 uctext.c Sample Program....................................................37 uni_blktxt.c Sample Program................................................. 37 uni_compute.c Sample Program...............................................38 uni_csr_disp.c Sample Program............................................... 38 uni_firstapp.c Sample Program................................................38 uni_rpc.c Sample Program...................................................39 usedir.c Sample Program....................................................39 wide_compute.c Sample Program..............................................39 wide_curupd.c Sample Program...............................................40 wide_dynamic.c Sample Program..............................................40 wide_rpc.c Sample Program..................................................41 2 Open Client DB-Library/C.................................................... 42 2.1 Running the DB-Library Applications.............................................. 42 2.2 Building a DB-Library Executable.................................................43 Libraries ............................................................... 43 Compile-and-Link Lines for DB-Library Applications.................................43 Performance Considerations................................................. 46 Required Header Files for DB-Library/C..........................................46 2.3 DB-Library Sample Programs....................................................47 Purpose of Sample Programs.................................................47 Location of Sample Programs.................................................47 Header File of Sample Program................................................48 2.4 Summary of Sample Program...................................................49 example1.c Sample Program..................................................50 example2.c Sample Program................................................. 50 example3.c Sample Program................................................. 50 example4.c Sample Program..................................................51 example5.c Sample Program..................................................51 example6.c Sample Program..................................................51 example7.c Sample Program..................................................51 SAP Open Server and Open Client Programmers Supplement for UNIX Content PUBLIC 3 example8.c Sample Program..................................................51 example9.c Sample Program................................................. 52 example10.c Sample Program.................................................53 example11.c Sample Program.................................................53 example12.c Sample Program.................................................53 bulkcopy.c Sample Program..................................................54 twophase.c Sample Program................................................. 54 3 Server-Library/C for SAP Open Server...........................................55 3.1 Running SAP Open Server Applications.............................................55 3.2 Building a Server-Library Executable.............................................. 56 Required Libraries.........................................................56 Compile-and-Link Lines Commands for Server-Library...............................58 Kerberos Support.........................................................63 Using Bulk Copy Routines....................................................64 3.3 Server-Library Sample Programs.................................................65 Purpose of the Sample Programs..............................................66 Location of Sample Programs.................................................66 3.4 Summary of Sample Program ...................................................66 ctos.c Sample Program..................................................... 67 dynlisten.c Sample Program..................................................68 exfds.c Sample Program.....................................................68 fullpass.c Sample Program...................................................68 halang.c Sample Program....................................................69 intlchar.c Sample Program...................................................69 lang.c Sample Program..................................................... 69 multthrd.c Sample Program..................................................69 osintro.c Sample Program................................................... 70 mqueue.c Sample Program...................................................70 paramreader.c Sample Program...............................................70 redirect.c Sample Program...................................................70 regproc.c Sample Program...................................................71 secsrv.c Sample Program....................................................71 sendrpc.c Sample Program...................................................71 sigalarm.c Sample Program.................................................. 72 timedsleep.c Sample Program.................................................72 updtext.c Sample Program...................................................72 4 Open Client Embedded SQL/C.................................................73

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    172 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us