Transaction Connection


Table of Contents

Transaction Connection

About This Book

  • Notices
  • Trademarks and Service Marks
  • Transaction Connection Overview

  • Transaction, Remote Validation, or Data Request Modes
  • Transaction Mode
  • Remote Validation Mode
  • Data Request Mode
  • Routing Incoming Transactions/Requests for Processing
  • Running Scripts Based on Time-Related Events
  • Elements of the TC Script Language
  • Using White Space, Blank Lines and Comments in TC Scripts
  • User Variables
  • Data Parts
  • Using Environment Variables in TC Commands
  • Script Control Using If/Else
  • Script Control Using Do...While
  • Using AND, OR and NOT operators in If and While Statements
  • Delimited Transaction Fields
  • Check_XXX Command Logic Modes
  • Web Services
  • Web Services Setup
  • Web Services Examples
  • Logon and Logoff Scripts
  • SQL Statement Generation
  • Insert Statement
  • Update Statement
  • Select Statement
  • Free-Form SQL Statements
  • Using User Variables and Transaction Fields in SQL Statements
  • :sqlCurrentTime Macro
  • SQL Statement Lifetimes
  • Limit on SQL Statement Size
  • Binding to the Database
  • Using ODBC Database Connection(s)
  • ODBC Performance and Deadlocks
  • Configuring an ODBC Data Source
  • Handling Differences Between Database Types When Using ODBC
  • DBTYPE.INI
  • Adding Support for Other Database types to DBTYPE.INI
  • Using DBTYPE in an If Command
  • How TC Handles SQL Errors
  • 10 SQL Error Handling Actions
  • RC_DB2.INI and RC_ODBC.INI
  • RC_USER.INI
  • On Error Strings
  • Specifying SQLSTATE values
  • Fatal SQL Errors
  • Processing when the Database or Host Is Unavailable
  • Recommended Design Rules
  • TC User Variable Naming
  • Why Use Delimited Transaction Fields
  • Transaction Version Number
  • Inquiry ID tags
  • Creating the Script Command File
  • TC Script Examples
  • Inserting a Record into a Table
  • Updating a Record in a Table
  • Querying the Database Table
  • Using Free-Form SQL
  • Multiple ODBC Connections
  • Handling Remote Validation Request
  • Using the Utility IMBEDSCR.EXE to Create a Single Listing File
  • Starting Transaction Connection
  • Starting TC from the OS/2 STARTUP.CMD
  • Starting TC from a Command Line
  • Multiple TC Sessions
  • TC Session Window
  • Title Bar
  • Menu Bar
  • Stopping Transaction Connection
  • Measuring and Improving Performance of TC Scripts
  • Execution Performance Timings
  • Increasing Processing Speed
  • Execution Information Display
  • Multiple TC Sessions
  • Database Performance
  • Sending Data to the Host Screen
  • Multiple DCT Transactions to a Host Screen
  • Testing and Debugging Your Scripts Using the Trace Command
  • Error Log File
  • Using TC to Generate Reports
  • Creating Reports from Host Screens
  • Creating Reports from the Database
  • Sending Reports to a DCT
  • Using One TC Session to Monitor / Control Other TC Sessions and the DCConnect Server
  • Script Commands

  • Database Insert Functions
  • Database Query (Select) Functions
  • Database Update Functions
  • DCConnect Interface Functions
  • Free-Form SQL Functions
  • Miscellaneous Database Functions
  • File Logging Functions
  • Flow-of-Control Functions
  • Host Screen Interaction Functions
  • LDAP Functions
  • Operating Mode Switches
  • Response to Terminal Functions
  • TC Control and Monitoring Functions
  • Transaction/Validation/Data Request Sorting Functions
  • User Variable Functions
  • Web Service Functions
  • XML Functions
  • Miscellaneous Functions
  • Command Reference
  • Append / Append_UV_Kbd_Data
  • Append_UV_Ctrl_ID
  • Append_UV_Cntlr_ID
  • Append_UV_Data_Part
  • Append_UV_File_Data
  • Append_UV_Host_Data
  • Append_UV_Kbd_Data / Append
  • Append_UV_Select_Data / Append_UV_Select_Data2
  • Append_UV_Seq_Num
  • Append_UV_UV
  • Append_UV_Xact_Data
  • Application
  • Begin_Select / Begin_Select2 / Begin_SQL / Begin_SQL2
  • Begin_UV
  • Call
  • Call_Subroutine
  • Capture_Screen
  • Change_Term_State / Change_Terminal_State
  • Check_Busy
  • Check_Color
  • Check_Cursor
  • Check_Highlight
  • Check_II
  • Check_MW
  • Check_Screen
  • Clear_Mailbox
  • Clear_UV
  • Close_Cursor / Close_Cursor2
  • Close_File_Data
  • Close_When_Complete
  • Cntlr
  • //Comment
  • Commit_Changes / Commit_Changes2
  • Communication_Connect
  • Communication_Disconnect
  • Current_Dir
  • Cycle_DCC/2_Export / Cycle_Mailbox
  • Cycle_Session
  • Database / DB
  • DBPassword
  • DBEncryptedPW
  • DBType
  • DBUserid
  • DB_Null_Empty
  • DB_Null_Space
  • DB_Null_Text
  • Deadlock_Timeout
  • Declare
  • Define_Large_UV_Size
  • Define_On_Error_String
  • Define_UVs
  • Delay
  • Description
  • Do
  • Done
  • Dont_Maintain_Window_Position
  • DP_Is_Comma
  • Dump_UVs
  • Else
  • Emultype
  • End / End_TC
  • EndFunctionGroup / EndCluster
  • EndInterval
  • EndKey
  • EndLogoff
  • EndLogon
  • EndMatch
  • End_SQL / End_SQL2 / End_Select / End_Select2
  • EndSub / EndSubroutine
  • EndTime
  • EndTimeout
  • End_UV
  • EndVal
  • End_WS / EndWebService
  • Format_UV
  • Forward_Data_Request
  • Get_Application_List
  • Get_Cursor
  • Get_DBType
  • Get_DCConnect_Status
  • Get_Job_List
  • Get_Length
  • Get_Mailbox_List
  • Get_Term_List / Get_Terminal_List
  • Get_Term_UV_Data / Get_Named_Term_UV_Data / Get_Terminal_UV_Data / Get_Named_Terminal_UV_Data
  • Goto
  • If
  • Imbed
  • Initiate_Term_Event / Initiate_Terminal_Event
  • Insert_DB_Table
  • Label
  • LDAP_AdminBind
  • LDAP_AdminUnbind
  • LDAP_ChangePassword
  • LDAP_Encrypt
  • LDAP_Search
  • LDAP_ValidateUser
  • Load_Term / Load_Terminal
  • Load_UVs
  • Log_Data
  • Log_Error
  • Log_Xact
  • Mailbox / Export
  • Make_Data_Request
  • Max_Xact_Wait
  • Multi_Release_Mode
  • Name_UV
  • No_Display_Execute
  • No_Terminate_From_DCConnect
  • On_Error_Goto
  • Open_File_Data
  • Parse_UV
  • Password
  • Perform_Fetch / Perform_Fetch2
  • Perform_Insert / Perform_Insert2
  • Perform_Select
  • Perform_Update
  • Query_Mailbox
  • Quit_Subroutines
  • Reenable_Trace_Via_Restart
  • Release_Xact
  • Reply_To_Data_Request
  • Report_Term_State / Report_Terminal_State
  • Report_Term_Version / Report_Terminal_Version
  • Resize_Both_Panes
  • Resize_Execution_Pane_Only
  • Resize_Messages_Pane_Only
  • Restart_TC
  • Return
  • Rollback_Changes / Rollback_Changes2
  • Run_Without_Connect
  • Run_Without_Session
  • Save_UVs
  • Screen_Width
  • Select_Column
  • Select_From_DB_Table
  • Select_Group_By
  • Select_Having
  • Select_Order_By
  • Select_Where
  • Send_Host_Data_Part
  • Send_Host_Kbd_Data
  • Send_Host_UV_Data
  • Send_Host_Xact_Data
  • Send_Named_Term_UV_Data / Send_Named_Terminal_UV_Data
  • Send_Term_Data / Send_Terminal_Data
  • Send_Term_IResp / Send_Terminal_IResp
  • Send_Term_UV_Data / Send_Terminal_UV_Data
  • Send_Term_VResp / Send_Terminal_VResp
  • Send_To_Host
  • Session
  • Session_Connect
  • Set / Set_UV_Kbd_Data
  • Set_Cursor
  • Set_Emulator_Window
  • Set_UV_Cntlr_ID
  • Set_UV_Ctrl_ID
  • Set_UV_Data_Part
  • Set_UV_File_Data
  • Set_UV_Host_Data
  • Set_UV_Kbd_Data / Set
  • Set_UV_Select_Data / Set_UV_Select_Data2
  • Set_UV_Seq_Num
  • Set_UV_UV
  • Set_UV_Xact_Data
  • Set_Xact_Time_Of_Origin
  • Setup_Insert_Field
  • Setup_Update_Field
  • Show_Thread_Messages
  • Shutdown_DCConnect
  • Silent
  • SQL_Buffer_Size
  • Start_Application
  • StartCluster / StartFunctionGroup
  • StartInterval
  • StartKey
  • StartLogoff
  • StartLogon
  • StartMatch
  • StartSubroutine
  • StartTime
  • StartTimeout
  • StartVal
  • Start_WS / StartWebService
  • Sub
  • Submit_Client_Files
  • Submit_Validation
  • Sync_Date_Time
  • System
  • TC_Get_Active_Sessions
  • TC_Get_Session_Values
  • TC_Send_Session_Command
  • Title
  • Trace
  • Trace_Delay_Limit
  • Trace_Size
  • Update_DB_Table
  • Update_Where
  • Use_Adjusted_Xact_Time
  • UV_Math
  • Wait_Until_Unlocked
  • While (Do...While)
  • Workstation_Profile / WS_Profile
  • Write_To_Event_Log
  • Write_Xact / Write_Xact2x
  • WS_AddAttribute
  • WS_AddHTTPHeader
  • WS_Cleanup / WSCleanup
  • WS_CreateElement / CreateWSElement
  • WS_CreateRequest / CreateWSRequest
  • WS_CreateResponse / CreateWSResponse
  • WS_DefineNamespace
  • WS_DisplayExecutePopups
  • WS_EnterElement / WS_EnterElementXPATH / EnterWSElement
  • WS_GetAttribute
  • WS_GetElement / WS_GetElementXPATH / GetWSElement
  • WS_GetLastErrorText
  • WS_LeaveElement / LeaveWSElement
  • WS_NamespacePop
  • WS_NamespacePush
  • WS_SendRequest / SendWSRequest
  • WS_SendResponse / SendWSResponse
  • WS_SetElement / WS_SetElementXPATH / SetWSElement
  • WS_SetHTTPBody
  • WS_SetHTTPParameter
  • WS_ToFile
  • WS_ToString
  • Xact_Age
  • XML_AddAttribute
  • XML_AddField
  • XML_Cleanup
  • XML_Configure
  • XML_CopyElement
  • XML_Create
  • XML_CreateBOD
  • XML_CreateElement
  • XML_DefineNamespace
  • XML_EnterElement
  • XML_GetField / XML_GetField2
  • XML_LeaveElement
  • XML_LoadLoggingParameters
  • XML_Parse
  • XML_RedefineNamespaces
  • XML_Send
  • XML_SendBOD
  • XML_Sender
  • XML_SetField
  • XML_ToFile
  • XML_ToString
  • Commands Quick Reference

    Examples

  • Using Oracle Stored Procedures/Functions
  • Using SQL Server Stored Procedures/Functions
  • Creating a Badge File at 4:00 a.m.
  • Verifying a Badge against the Database

  • Compile/Run Error Messages

  • XIS001
  • XIS002
  • XIS003
  • XIS004
  • XIS005
  • XIS006
  • XIS007
  • XIS008
  • XIS009
  • XIS010
  • XIS011
  • XIS012
  • XIS013
  • XIS014
  • XIS015
  • XIS016
  • XIS017
  • XIS018
  • XIS019
  • XIS020
  • XIS021
  • XIS022
  • XIS023
  • XIS024
  • XIS025
  • XIS026
  • XIS027
  • XIS028
  • XIS029
  • XIS030
  • XIS031
  • XIS032
  • XIS033
  • XIS034
  • XIS035
  • XIS036
  • XIS037
  • XIS038
  • XIS039
  • XIS040
  • XIS041
  • XIS042
  • XIS043
  • XIS044
  • XIS045
  • XIS046
  • XIS047
  • XIS048
  • XIS049
  • XIS050
  • XIS051
  • XIS052
  • XIS053
  • XIS054
  • XIS055
  • XIS056
  • XIS057
  • XIS058
  • XIS059
  • XIS060
  • XIS061
  • XIS062
  • XIS063
  • XIS064
  • XIS065
  • XIS066
  • XIS067
  • XIS068
  • XIS069
  • XIS070
  • XIS071
  • XIS072
  • XIS073
  • XIS074
  • XIS075
  • XIS076
  • XIS077
  • XIS078
  • XIS079
  • XIS080
  • XIS081
  • XIS082
  • XIS083
  • XIS084
  • XIS085
  • XIS086
  • XIS087
  • XIS088
  • XIS089
  • XIS090
  • XIS091
  • XIS093
  • XIS094
  • XIS095
  • XIS096
  • XIS097
  • XIS098
  • XIS099
  • XIS100
  • XIS101
  • XIS102
  • XIS103
  • XIS104
  • XIS105
  • XIS106
  • XIS107
  • XIS108
  • XIS109
  • XIS110
  • XIS111
  • XIS112
  • XIS113
  • XIS114
  • XIS115
  • XIS116
  • XIS117
  • XIS118
  • XIS119
  • XIS120
  • XIS121
  • XIS122
  • XIS123
  • XIS124
  • XIS125
  • XIS126
  • XIS127
  • XIS128
  • XIS129
  • XIS130
  • XIS131
  • XIS132
  • XIS133
  • XIS134
  • XIS135
  • XIS136
  • XIS137
  • XIS138
  • XIS139
  • XIS140
  • XIS141
  • XIS142
  • XIS143
  • XIS144
  • XIS145
  • XIS146
  • XIS147
  • XIS148
  • XIS149
  • XIS150
  • XIS151
  • XIS152
  • XIS153
  • XIS154
  • XIS155
  • XIS156
  • XIS157
  • XIS158
  • XIS159
  • XIS160
  • XIS161
  • XIS163
  • XIS164
  • XIS165
  • XIS166
  • XIS167
  • XIS168
  • XIS169
  • XIS170
  • XIS171
  • XIS172
  • XIS173
  • XIS174
  • XIS175
  • XIS176
  • XIS177
  • XIS178
  • XIS200
  • XIS201
  • XIS202
  • XIS203
  • XIS204
  • XIS205
  • XIS206
  • XIS207
  • XIS208
  • XIS209
  • XIS210
  • XIS211
  • XIS212
  • XIS213
  • XIS215
  • XIS216
  • XIS217
  • XIS218
  • XIS219
  • XIS220
  • XIS221
  • XIS222
  • XIS223
  • XIS224
  • XIS225
  • XIS226
  • XIS227
  • XIS228
  • XIS229
  • XIS230
  • XIS231
  • XIS232
  • XIS233
  • XIS234
  • XIS235
  • XIS236
  • XIS237
  • XIS238
  • XIS239
  • XIS240
  • XIS241
  • XIS242
  • XIS243
  • XIS244
  • XIS245
  • XIS246
  • XIS247
  • XIS248
  • XIS249
  • XIS250
  • XIS251
  • XIS252
  • XIS253
  • XIS254
  • XIS255
  • XIS256
  • XIS257
  • XIS258
  • XIS259
  • XIS260
  • XIS261
  • XIS262
  • XIS263
  • XIS264
  • XIS265
  • XIS266
  • XIS267
  • XIS268
  • XIS269
  • XIS270
  • XIS271
  • XIS272
  • XIS273
  • XIS274
  • XIS275
  • XIS276
  • XIS277
  • XIS278
  • XIS279
  • XIS280
  • XIS281
  • XIS282
  • XIS283
  • XIS284
  • XIS285
  • XIS286
  • XIS287
  • XIS288
  • XIS289
  • XIS290
  • XIS291
  • XIS292
  • XIS294
  • XIS295
  • XIS296
  • XIS297
  • XIS298
  • XIS299
  • XIS300
  • XIS301
  • XIS302
  • XIS303
  • XIS304
  • XIS305
  • XIS306
  • XIS307
  • XIS308
  • XIS309
  • XIS310
  • XIS311
  • XIS312
  • XIS313
  • XIS314