M!INTOUCH® 4GL Y

INTOUCH® 4GL
A Guide to the INTOUCH Language

A
Previous page... 6Table of Contents



W

Appendix E
Creating Libraries for Use with INTOUCH



BTo create libraries for use with INTOUCH, you will need to follow these steps: 



    F
  1. Write the source code using an editor. The source code can be B in BASIC, FORTRAN or any other VMS provided language that F supports the common calling interface. Here is an example of  a BASIC routine: 

    '        10  SUB MULT(IN1%, IN2%, OUT%)             OUT% = IN1% * IN2%             END SUB 
    F
    This file has only one subprogram. Your file can contain any number of subprograms. U
  2. Compile the source code with the appropriate compiler. For instance, I the above BASIC routine would have to be compiled with the BASIC  compiler: 

            $ BASIC MULT 
    
  3. Create an options file.  

    -            UNIVERSAL = module [, module...] 
     

                UNIVERSAL = MULT 
    
  4. Link the library. 

    9            LINK/SHARE routine_name,options_file/OPTIONS 
     

    +            $ LINK/SHARE MULT,MULT/OPTIONS 
    

    BYou have now created the shareable image MULT.EXE, containing the Aroutine MULT. You can now use this routine from within INTOUCH. 

    @To use the routine, first name the library with a LIBRARYJstatement, supplying the complete file specification INCLUDING DEVICE AND DIRECTORY. 3Then, execute the routine with the CALL statement. 

    2        10  library "DUA1:[STEVE.MODULE]MULT.EXE" '            call mult(8%, 9%, answer%) ,            print 'The answer is '; answer% 
    

    FYou can have any number of LIBRARY statements in a program. When you Kcall a routine, each library specified is checked in turn for the routine. 


    K

    Appendix F
    INTOUCH Database Interfaces

    A

    F.1 Supported Database Engines

    

    GMultiple database engines (record management systems) can be used with BINTOUCH. The following database engines are currently supported: 

    
    
    • RMS
    • Rdb
    • DBMS
    • USERBASE
    • POISE
    • FASTFILE
    • S1032
    • INGRES
    • dBASE III
    • ADABAS
    • ORACLE
    
    

    FThe SETUP routine tells INTOUCH where data files are located and what Krecord management systems are used. Once you have defined your structures Fusing SETUP, you can use INTOUCH's structure statements to manipulate the data. 

    GFor detailed information on INTOUCH interfaces to the various database engines, you can refer to: 

    
    
      G
    • the INTOUCH 4GL - Interfaces to Database Engines manual. V
    • Chapter 16, Creating Structures, Field Definitions with SETUP, in this manual. 
    
    T

    Index

    <
    Next page... | 6Table of Contents