BUSINESS SOFTWARE, INC. (BSI) CONFIDENTIAL AND PROPRIETARY INFORMATION

Step 5. -- Disconnect from the Database

Note: If the call to ProcessTaxes returns a non-zero EmployeeStatus, a call to CommitDataSource must be made to COMMIT error messages to the database.

Close the database connection as follows:

Note: Before doing this operation, you have to call the ProcessTax function with PaymentType = 9 to clear all the cache memory.

 

C Instructions:

/*
** Disconnect from the database at the end
*/
if (!DisconnectDataSource(NULL))
printf("Disconnect data source error\n");

 

COBOL Instructions:

COPY TF9API.
77 RTN-CODE                PIC S9(04) VALUE 0 COMP-4.
.
.
.
CALL "PROCESSREVERSETAXES" USING
    BY REFERENCE TF10-SESSION-ID
    BY REFERENCE RTN-CODE
    RETURNING RTN-STATUS.
CALL "DISCONNECTDATASOURCE" USING
    BY REFERENCE RTN-CODE
    RETURNING RTN-STATUS.
STOP RUN.

 

C# Instructions:

TF90API api = new TF90API();

/* Disconnect from the database at the end */
if (api.disconnectDataSource() <= 0)
System.Console.WriteLine("disconnectDataSource call failed");

 

©Copyright 2021 Business Software, Inc
Unpublished - Rights Reserved Under the Copyright Laws of the United States