Professional Documents
Culture Documents
Reference
Release 14.00
B035-2416-071A
November 2011
The product or products described in this book are licensed products of Teradata Corporation or its affiliates.
Teradata, Active Enterprise Intelligence, Applications Within, Aprimo, Aprimo Marketing Studio, Aster, BYNET, Claraview, DecisionCast,
Gridscale, Managing the Business of Marketing, MyCommerce, Raising Intelligence, Smarter. Faster. Wins., SQL-MapReduce, Teradata Decision
Experts, Teradata Labs Logo, Teradata Raising Intelligence Logo, Teradata Source Experts, WebAnalyst, and Xkoto are trademarks or registered
trademarks of Teradata Corporation or its affiliates in the United States and other countries.
Adaptec and SCSISelect are trademarks or registered trademarks of Adaptec, Inc.
AMD Opteron and Opteron are trademarks of Advanced Micro Devices, Inc.
EMC, PowerPath, SRDF, and Symmetrix are registered trademarks of EMC Corporation.
GoldenGate is a trademark of Oracle.
Hewlett-Packard and HP are registered trademarks of Hewlett-Packard Company.
Intel, Pentium, and XEON are registered trademarks of Intel Corporation.
IBM, CICS, RACF, Tivoli, and z/OS are registered trademarks of International Business Machines Corporation.
Linux is a registered trademark of Linus Torvalds.
LSI is a registered trademark of LSI Corporation.
Microsoft, Active Directory, Windows, Windows NT, and Windows Server are registered trademarks of Microsoft Corporation in the United
States and other countries.
NetVault is a trademark or registered trademark of Quest Software, Inc. in the United States and/or other countries.
Novell and SUSE are registered trademarks of Novell, Inc., in the United States and other countries.
Oracle, Java, and Solaris are registered trademarks of Oracle and/or its affiliates.
QLogic and SANbox are trademarks or registered trademarks of QLogic Corporation.
SAS and SAS/C are trademarks or registered trademarks of SAS Institute Inc.
SPARC is a registered trademark of SPARC International, Inc.
Symantec, NetBackup, and VERITAS are trademarks or registered trademarks of Symantec Corporation or its affiliates in the United States
and other countries.
Unicode is a registered trademark of Unicode, Inc. in the United States and other countries.
UNIX is a registered trademark of The Open Group in the United States and other countries.
Other product and company names mentioned herein may be the trademarks of their respective owners.
THE INFORMATION CONTAINED IN THIS DOCUMENT IS PROVIDED ON AN AS-IS BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESS OR IMPLIED, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
NON-INFRINGEMENT. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO THE ABOVE EXCLUSION
MAY NOT APPLY TO YOU. IN NO EVENT WILL TERADATA CORPORATION BE LIABLE FOR ANY INDIRECT, DIRECT, SPECIAL, INCIDENTAL,
OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS OR LOST SAVINGS, EVEN IF EXPRESSLY ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
The information contained in this document may contain references or cross-references to features, functions, products, or services that are
not announced or available in your country. Such references do not imply that Teradata Corporation intends to announce such features,
functions, products, or services in your country. Please consult your local Teradata Corporation representative for those features, functions,
products, or services available in your country.
Information contained in this document may contain technical inaccuracies or typographical errors. Information may be changed or updated
without notice. Teradata Corporation may also make improvements or changes in the products or services described in this information at any
time without notice.
To maintain the quality of our products and services, we would like your comments on the accuracy, clarity, organization, and value of this
document. Please email: teradata-books@lists.teradata.com.
Any comments or materials (collectively referred to as Feedback) sent to Teradata Corporation will be deemed non-confidential. Teradata
Corporation will have no obligation of any kind with respect to Feedback and will be free to use, reproduce, disclose, exhibit, display, transform,
create derivative works of, and distribute the Feedback and derivative works thereof without limitation on a royalty-free basis. Further, Teradata
Corporation will be free to use any ideas, concepts, know-how, or techniques contained in such Feedback for any purpose whatsoever, including
developing, manufacturing, or marketing products or services incorporating Feedback.
Copyright 1996-2011 by Teradata Corporation. All Rights Reserved.
Preface
Purpose
This book provides information about Teradata Director Program (TDP), which is a
Teradata Tools and Utilities product.
TDP is the Teradata software that resides on a mainframe client and provides channel
communication between applications and a Teradata Database.
Audience
This book is intended for use by:
System administrators
Supported Releases
This book supports the following releases:
Go to http://www.info.teradata.com.
Click Search.
Open the version of the Teradata Tools and Utilities ##.##.## Supported Platforms and
Product Versions spreadsheet associated with this release.
The spreadsheet includes supported Teradata Database versions, platforms, and product
release numbers.
Preface
Prerequisites
Prerequisites
The following prerequisite knowledge is required for this product:
Familiarity with basic computer technology, database management systems, and utilities
that load and retrieve data.
Familiarity with system programming functions for z/OS or VOS3, depending on the
operating system that you are using to interface to the Teradata Database.
Description
November 2011
14.00
Preface
Additional Information
Additional Information
Additional information that supports this product and Teradata Tools and Utilities is available
at the web sites listed in the table that follows.
Type of Information
Description
Access to Information
Release overview
1 Go to http://www.info.teradata.com.
Late information
1 Go to http://www.info.teradata.com.
2 Under the Online Publications subcategory,
1 Go to http://www.info.teradata.com.
2 Under the Online Publications subcategory,
Ordering
information for
manuals
1 Go to http://www.info.teradata.com.
2 Under Print & CD Publications, click How to
Order.
3 Follow the ordering instructions.
Preface
Additional Information
Type of Information
Description
Access to Information
General information
about Teradata
1 Go to Teradata.com.
2 Select a link.
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
Supported Releases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
Changes to This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
Additional Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
Chapter 1:
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
TDPs Role in a Teradata System. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Security Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Logical Hosts, Channel Processors, and Session Processors . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Call-Level Interface (CLI) in a Teradata System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Teradata Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Teradata Session Requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Externally Coordinated Commit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Chapter 2:
Configuration and Operational Considerations . . . . . . . . . . . . . . . . . 25
Configuring Logical Hosts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Configuring the Mainframe Operating System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Installing TDP and CLI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Configuring TDP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
TDP Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
TDP Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Sessions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
TDP Virtual Storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Table of Contents
Chapter 3:
Performance Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
DBCTSTMP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
General Tuning Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
z/OS and VOS3 Performance Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42
CP Shutdown Record . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43
Logoff Record . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44
Security Violations Record . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44
TDP Shutdown Record . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45
Structure-protocol Termination Record . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45
z/OS and VOS3 Tuning With the HSI System Parameter Block . . . . . . . . . . . . . . . . . . . . . . . .46
z/OS Tuning With I/O Mode Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46
Chapter 4:
Customer Exits and Teradata Userid Authentication . . . . . . . . . .49
User Address Space Exit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49
User Logon Exit Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52
TDP User Transaction Collection Exit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55
User Security Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59
External Security Manager Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61
Chapter 5:
The Release Tape. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67
TDPXRC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67
Chapter 6:
TDP Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69
Starting a TDP Under z/OS or VOS3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69
Initializing a TDP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .70
Entering TDP Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72
Entering TDP Commands on z/OS and VOS3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72
Entering TDP Commands from CLIv2 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75
Table of Contents
Chapter 7:
TDP Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
TDP Operator Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
ADD CELLS/XMSCELLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
ATTACH CP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
ATTACH IFP (Deprecated by ATTACH CP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
AUTHORIZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
COMMENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
COMMIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
DETACH CP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
DETACH IFP (Deprecated by the DETACH CP command) . . . . . . . . . . . . . . . . . . . . . . 98
DISABLE IRF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
DISABLE LGUX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
DISABLE LOGONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
DISABLE POOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
DISABLE POOL DETAIL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
DISABLE POOL STATUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
DISABLE SECLOGON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
DISABLE SESSION DETAIL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
DISABLE SESSION RESERVE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
DISABLE SESSION STATUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
DISABLE SMF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
DISABLE TDPSTATS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
DISABLE TEST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
DISABLE TIME . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
DISABLE TMON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
DISABLE TRAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
DISABLE UAX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
DISABLE USEC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
DISPLAY CCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
DISPLAY CELLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
DISPLAY CHECKSUM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
DISPLAY CP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
DISPLAY IFP (Deprecated by the Display CP command) . . . . . . . . . . . . . . . . . . . . . . . 129
Table of Contents
10
Table of Contents
LOGOFF POOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MODIFY POOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MODIFY SECLOGON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RESOLVE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ROLLBACK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RUN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET CHARSET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET CHECKSUM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET COMCHAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET LIMIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET MAXSESS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET STORAGE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET USERCS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SET USERID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SHUTDOWN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
START CP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
START IFP (Deprecated by the START CP command) . . . . . . . . . . . . . . . . . . . . . . . . .
START POOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
STOP CP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
STOP IFP (Deprecated by the STOP CP command) . . . . . . . . . . . . . . . . . . . . . . . . . . . .
STOP POOL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
192
193
194
195
196
197
198
200
201
202
203
204
205
206
208
210
212
214
223
224
225
Appendix A:
Channel Processor Device and Channel Error Log . . . . . . . . . . . 227
Sample EREP Record . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
Record Format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
Sense Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
Appendix B:
Overview of SET USERCS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
Defining a Character Set. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CHAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CHARSET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
END . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MONOCASE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SANITIZE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
UNICODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
233
235
236
239
240
242
244
11
Table of Contents
Appendix C:
Parcel Flavors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .247
Parcel Header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .247
Parcel Flavors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .248
Parcel Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .250
Parcel Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .255
Abrt2PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .255
Cancel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .256
ClientAttributes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .257
Cmmt2PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .258
Connect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .258
FMRunStartup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .259
IVRunStartup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .260
Logoff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .260
Logon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .261
Multi-TSR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .262
NOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .263
OffsetPosition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .263
ResultSet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .264
ResultSet Cursor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .265
ResultSet Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .266
Rewind . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .267
RowPosition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .267
Run . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .268
RunStartup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .269
SessionOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .269
UserNameRequest. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .271
UserNameResponse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .272
VoteRequest. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .273
VoteTerm. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .274
Appendix D:
How to Read the Syntax Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .275
Syntax Diagram Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .275
12
Table of Contents
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
13
Table of Contents
14
List of Figures
15
List of Figures
16
List of Tables
17
List of Tables
18
CHAPTER 1
Introduction
This chapter presents an overview of Teradata Director Program (TDP), which is installed on
an IBM compatible mainframe computer running the z/OS or VOS3 operating systems. The
intention of this chapter to provide the vocabulary and background necessary to understand
the information in subsequent chapters.
This chapter describes the following:
Security Considerations
Teradata Sessions
19
Chapter 1: Introduction
TDPs Role in a Teradata System
Figure 1: Typical Teradata System
Teradata Database
Mainframe 1
Mainframe 2
VM Client:
- VM Operating System
- TDP
- CLI
Network-Attached Clients
MVS Client:
- MVS Operating System
- TDP
- CLI
FZAPN075
20
Chapter 1: Introduction
Security Considerations
Security Considerations
TDP communicates with the Teradata Database from its address space, so its execution
environment is independent of any applications using the Database. Specifically note the
following:
TDP executes on MVS as an APF authorized program but limits its use of system
authorities to those required by specific operating system services.
TDP accesses only datasets specified in the Job Control Language used to start TDP.
Standard dataset access controls are not circumvented. Only standard dataset access
methods are used.
For communication with the Teradata Database using channel devices, either STARTIO,
EXCPVR, or EXCP is used, as controlled by TDP commands when TDP begins execution.
Neither application SQL data nor Teradata Database logon passwords are retained beyond
their need, nor are they passed to other address spaces. Such information is not included
in any internal trace. The exception is incidental storage capture by system storage dump
processing.
TDP does not inspect or alter the application's SQL request or response data.
TDP communicates with applications using the Teradata Database in their own address spaces
using routines in commonly addressable storage such as the MVS Link Pack Area.
Applications call CLIv2 routines, which in turn communicate to TDP using a state switch.
After a TDP routine in the application address space receive control in TDP's state, access
to application storage for the request is serialized, validated, and performed only with the
same access capabilities as the application itself possesses.
The TDP copy of the application's request is protected from any access or modification by
the application.
Information is passed only to the TDP address space. No other address space is inspected
or passed any information.
Communication with the TDP address space is serialized, validated, and performed only
with the same access capabilities as the application itself possesses.
21
Chapter 1: Introduction
Call-Level Interface (CLI) in a Teradata System
Logical Host
A Logical Host is a Database configuration of related resources. Each TDP can use the
resources of only one Logical Host. A Logical Host is identified by a Host Number, an
arbitrary number between 1 and 1023. Each also has a Host Type, which identifies client
characteristics (such as a default character set type and the structure of numeric data). For
IBM mainframes the Host Type is designated by 'IBM', which is assigned the value zero. The
Host Number is added to the Host Type to create a Logical Host Id. TDP is informed of the
Logical Host Id when it establishes communication with the Database.
Channel Processor
A Channel Processor (CP) is a pair of devices on the Teradata Database that are attached to a
mainframe channel and used by TDP to communicate with the Database. Many CPs can be
used for communication between a Database and a TDP. The implementation of a CP can
vary on different Databases, but the behavior of all CPs is the same. For example, on a DBC/
1012, an IFP implements a CP, while on a System 3600, an MCCA on an AP implements a CP.
Because the original implementation of an IFP embodied the functions of a CP, the pair of
devices were referred to as an IFP.
The devices composing a CP are known to the operating system.
From TDP's perspective, there are two types of CPs, characterized by their communication
protocol with TDP: the original Channel Interface Controller (CIC) and the newer Channel
Communication Unit (CCU).
Session Processor
A Session Processor (SP) is a logical component on the Teradata Database that provides
session capacity, which is the connection between an application and the Database. Each SP
allows a fixed number of sessions, but many SPs can be used by a TDP. The implementation of
an SP can vary on different Databases, but the behavior of all SPs is the same. For example, on
a DBC/1012, an IFP implements an SP, while on a System 3600, a PE implements an SP.
No aspect of an SP is known to the client operating system.
22
Chapter 1: Introduction
Teradata Sessions
dynamically loads the CLI runtime, which sends the request to or receives a response from
TDP.
The current application programming interface is provided by a CLI known as CLIv2. While
an older version exists, it is deprecated for new application development. For complete
information about CLIv2, refer to Teradata Call-Level Interface Version 2 Reference for
Mainframe-Attached Systems.
Teradata Sessions
A Teradata session is a logical connection between a CLIv2 application and the Teradata
Database. A session permits an application to send requests to, and receive associated
responses from, the Teradata Database. An application can establish any number of
concurrent sessions.
A session is explicitly logged on and off. The session is established when the Teradata Database
accepts the user name and password of the user. The session is discarded when explicitly
logged off by the application, when the application ends, when TDP is restarted, or when a
TDP command ends the session.
Each session is identified to the application and to the Teradata Database by a session number.
A session number is assigned by TDP and is unique for a given TDP.
23
Chapter 1: Introduction
Externally Coordinated Commit
affected databases. One of the methods used to accomplish this process is the two-phase
commit (2PC) protocol, supported by the Teradata Database.
With the 2PC protocol, an application can update multiple databases in the same logical unit
of work, with a coordinator such as IBMs CICS and IMS transaction processing systems
controlling the process. The coordinator uses the 2PC protocol to ensure that all the updates
for all the participants in the logical unit of work either commit or roll back. Within a
Teradata Database session that is using the 2PC protocol, there is a time when it is in an indoubt state, awaiting final instructions from the coordinator on whether to commit or roll
back the updates. If a failure in the coordinator or another part of the system occurs during
this in-doubt period, the Teradata Database cannot unilaterally decide to commit or roll back
the updates. In the event that automatic in-doubt resolution is not possible because of an
extended coordinator outage, manual resolution of the in-doubt sessions can be necessary.
This is because these in-doubt sessions can hold locks on data base objects that block the
progress of other applications that are trying to access those objects.
For details of the Teradata support for IBMs CICS or IMS, refer to the following books:
24
CHAPTER 2
This chapter presents an overview of configuration of resources related to TDP and significant
aspects of TDP operation. The intention of this chapter to provide a basic understanding of
the operational impact of TDP.
This chapter describes the following:
Configuring TDP
TDP Commands
TDP Messages
Sessions
Requests
Parallel Upgrade Tool (PUT) for UNIX MP-RAS and Linux User Guide
25
That document describes changes to MVS to define CP devices, the TDP subsystem, TDP Job
Control Language (JCL), APF authorization, the Linklist, and Link Pack Area (LPA)
requirements for each version of TDP to be run.
Configuring TDP
TDP is configured through its commands. TDP commands which are always issued when
TDP is started can be specified in a dataset allocated by a z/OS or VOS3 TDPPARM Data
Definition (DD) statement in the TDP Job Control Language (JCL) or FILEDEF for
TDPPARM. Such commands fall into two general categories: those that can only be issued
from TDPPARM and those that can be issued anytime.
Those commands that can only be issued from TDPPARM have a unique command verb,
INITIAL (refer to TDP Operator Command Descriptions on page 81 for a complete
description). INITIAL commands can only be issued from TDPPARM because their settings
are necessary for TDP to initialize. Since all settings have defaults, no INITIAL commands are
required. But two such commands are often used.
The mode of communication with the Teradata Database can be specified by the INITIAL
IOMODE command.
On z/OS and VOS3, EXCPVR is the default because it is a general interface, but on
z/OS, IOSDRIVR is recommended (it is not the default only because it is an
undocumented z/OS interface, even though it has been fully stable and unchanged for
many years).
On z/OS, the version of the TDP Link-pack routines needed to communicate with
applications can be specified if multiple versions of TDP are installed on the system. The
INITIAL OSSISUFX and INITIAL PCSUFX commands can be used to specify the one
character suffix for the versions that match the TDP version. The same suffix character is
normally used on both commands.
All other TDP commands can be issued anytime TDP is running (refer to Chapter 7: TDP
Commands for descriptions of all commands). Including those always issued in TDPPARM
eliminates the need to manually issue the same commands every time TDP is started. Two
commands are almost always specified.
26
One START CP command is included for each CP configured for the Logical Host. While
not all CPs configured for the Logical Host need be STARTed, there is no purpose in not
doing so.
The RUN command is included as the last command to begin TDP processing.
Once the typical workload has been established, it is common to adjust the virtual storage
used by TDP storage cells by including the TDP commands ADD CELLS and ADD
XMSCELLS.
TDP Commands
TDP commands can be issued from TDPPARM during initialization, from operator consoles
(or programs that simulate consoles), for z/OS and VOS3 from the Subsystem Interface or the
system MODIFY command, by the Teradata DBCCMD application, or from CLIv2
applications using the DBCHCL Command function. When issued from a z/OS or VOS3
console, responses are returned to that console (on z/OS, both one and four byte console ids
are supported).
Just as all work for TDP, commands require TDP cells for processing. A shortage of XMS cells
will force TDP to convert a command issued from the Subsystem Interface to the system
MODIFY command. If such a shortage prevents command processing, the system MODIFY
command can be used to issue TDP commands. A shortage of non-XMS cells can prevent all
TDP command processing or the responses to command. A shortage of any cell type will have
previously generated a message as described in the Messages Having Operational Impact
section later in this chapter. Since command processing can be affected, such shortages should
be dealt with as they occur.
TDP Messages
TDP issues messages in response to commands and to inform the operator of events of
interest. Since there is rarely any reason to do so, TDP provides no mechanism to periodically
issue commands, but z/OS and VOS3 Job Entry Subsystem (JES) commands, automated
operations software, or programs that simulate consoles can periodically issue TDP
commands. The following other aspects of TDP messages are presented:
Routing Code
Use
Action
Operator Information
27
Routing Code
Use
Security
11
Programmer Information
Descriptor Code
Use
Action
System Status
Task Related
Messages with descriptor code 2 are retained on operator consoles until TDP deletes them,
unless the system's action message retention facility is disabled (using the system K
M,AMRF=N command).
Since the types and quantity of processing performed by TDP can vary widely, its use of
virtual storage also varies. TDP separates its use of virtual storage into various sizes of
cells, with the number of cells of each size selected when TDP initializes. If all cells of a
particular size are exhausted, some aspect of TDP will either dynamically allocate a new
cell or wait for other TDP processing to release a cell of that size. If dynamically obtained
the cell will be freed when its use is complete. Either action can affect performance so is
indicated by the following message:
TDP0021 **WARNING** 100% OF nnnnn BYTE CELLS ARE IN USE
The shortage can be addressed by using the TDP ADD CELLS command to increase the
number of cells of that size. Using z/OS, a second type of some size cells, known
collectively as XMS cells, exist for use in communicating with application address spaces.
Should a shortage of these cells occur, that request or response is delayed until other
processing frees an XMS cell of the required size. Such delays are indicated by one of the
following messages:
TDP0201 **WARNING** 100% OF INITIAL XMS CELLS ARE IN USE
TDP0202 **WARNING** 100% OF ADDITIONAL XMS CELLS ARE IN USE
The first indicates that one of the three sizes of XMS cells is unavailable; the second
indicates that the largest of the three is unavailable. The shortage can be addressed by
using the TDP ADD XMSCELLS command to increase the number of cells of that size.
28
The loss of only some CPs can affect requests that are active on that CP but otherwise only
reduces performance. If all CPs fail, the following message results:
TDP1700 COMMUNICATION LOST WITH THE TERADATA DATABASE
If only some CPs fail, this message will not be produced, indicating that performance can
be degraded. No message is produced when an individual CPs starts processing again, but
the TDP DISPLAY CP command can be used to ascertain their status. Periodically (as
specified by the TDP INITIAL DLYTIME command) if communication has not been reestablished, the following reminder occurs:
TDP1701 MINUTES SINCE TERADATA DATABASE COMMUNICATION LOST: min
The time taken by the Teradata Database to complete its restart varies, but the more time
that elapses the more likely that a more serious Database problem exists. When the
Database does complete its restart and any CP begins processing, the following message is
produced:
TDP1702 TERADATA DATABASE COMMUNICATION HAS BEEN RE-ESTABLISHED
Again, this does not imply that every CP is functional, only that at least one is. The failure
of an SP forces a Database restart and if the SP remains down after the restart, TDP will
switch sessions on the down SP to other SPs. If there is insufficient session capacity then
the following message results:
TDP1706 INSUFFICIENT SP CAPACITY FOR EXISTING SESSIONS
No new sessions are permitted until all existing sessions are switched to functional SPs.
The following message indicates that this has been accomplished and new sessions are
again permitted:
TDP1708 SUFFICIENT SP CAPACITY FOR EXISTING SESSIONS
while a logical failure of the internal communication protocol is indicated by one of the
two following messages:
TDP2207 "cpname" UNUSABLE -- TERADATA DATABASE PROTOCOL-VIOLATION
TDP2208 "cpname" UNUSABLE -- CLIENT PROTOCOL-VIOLATION
29
The TDP2212 message will be held on the operator console until either manually deleted,
the CP is again responsive, the CP is STOPped, or TDP ends. This is the preferred message
because it is held on the z/OS or VOS3 console for the duration of the problem. The
TDP2211 message, which is not held on the console, is issued only if internal TDP
conditions prevent the preferred message.
If either a response is eventually received, the SET LIMIT command raises the limit, or a
Database restart occurs, use of the CP is resumed after the following message is issued:
TDP2213 "cpname" IS NO LONGER QUIESCED: reason
The server can reject an attempt to establish a session because the Teradata userid is
unknown or the supplied password is invalid. Such a Teradata security violation is
indicated by:
TDP0907 type VIOLATION FOR JOB: jobname, SESSION: number
If a TDP logon exit rejects the session it issues the following message:
TDP0908 messagetext
Exceeding certain internal TDP limits may impact message processing. If TDP is unable to
retain the system's identity for an action message the system cannot be told to delete it.
This situation is indicated by:
TDP0376 UNABLE TO RETAIN OPERATOR MESSAGE IDENTITIES, CODE(code)
If TDP is unable to retain the system's identity of the source of a TDP command the
response cannot be routed back to it. This situation is indicated by one of the following
messages:
TDP0312 UNABLE TO RETAIN ORIGINATING CONSOLE INFORMATION
TDP0203 UNABLE TO RETAIN ORIGINATING CONSOLE INFORMATION
Sessions
TDP establishes sessions at the request of the application. The following aspects of sessions are
presented:
30
Session Information
Session Pools
Automatic logoff
Replication
Session Information
When a session is established, information is added to either individual columns in
DBC.SessionTbl and DBC.EventLog, the LogonSource column in various views (such as
dbc.LogOnOff and dbc.SessionInfo), or both by the Teradata Database depending on its
version.
Individual Columns
The session information consists of multiple columns, each containing a specific value. The
following columns may contain values:
Column
Description
ClientConnectionType
ClientOsName
ClientTdHostName
ClientJobName
ClientEnvName
ClientUserIdSecProd
ClientGroupSecProd
ClientProgramName
ClientCoordName
ClientTransactionId
ClientTerminalId
ClientUserOperId
ClientJobId
ClientTDPReleaseId
ClientCLIv2ReleaseId
ClientSessionDesc
ClientWorkload
LogonSource Column
The session information consists of two types of data:
31
TDPid
Program Name - contains either the executable application name or an identifier provided
by the application using the CLIv2 Workload specification. Since it cannot be determined
which is present, the value is deprecated. The executable application name is reliably
provided by the later Actual Program Name item.
A format identifier that can be used to parse the previous positional information. If the
information ends with the four characters ' LSS' (note the leading blank), then the format
identifier value is present. The first two characters of the format identifier indicate the
number of values present before any Actual Program Name (currently either 07 or 11).
The next two characters indicate the version of format identifier. If 01, the Jobid value is
present; if 02, the Actual Program Name and Jobid values are present.
The format identifier, while cryptic, allows new information to be added after what were
originally trailing optional values. If the format identifier is not present, then Jobid is not
present, and only the first seven or eleven fields will be present.
Older versions of TDP provided only one eight-character field, which contained the
jobname (z/OS jobname).
32
SESSDESC() provides information specified by the application using the CLIv2 Sessiondesc specification. This is purely descriptive information, otherwise unused.
If the length of the self-Defining items results in Logon Source Information larger than the
size of the DBC.SessionTbl LogonSource column, TDP will truncate them as necessary,
indicating such a truncation by the string '...)', if room permits.
Session Pools
When many similar sessions are logged on to perform some quick activity then logged off, the
time to establish the session can be much longer than the time to perform the activity. In such
cases, session pools can be established. Sessions for a pool are logged on once and re-used for
subsequent logons, thus eliminating the overhead of subsequent logons. Session pools are
established using the TDP START POOL command. In diagnostic situations, messages can be
requested whenever a pool session is assigned or released using the TDP ENABLE POOL
STATUS command. It is not recommended during normal operations if the rate of session
pool activity is large because of potential adverse impact on system console processing. The
TDP DISABLE POOL STATUS command reverses the ENABLE command. When POOL
STATUS is enabled, a TDP0802 message indicates when a pool session is assigned, and a
TDP0803 message indicates when a pool session is released. It can occasionally be difficult to
understand why a session pool session is not assigned, so in such diagnostic situations the
TDP ENABLE POOL DETAIL command can be used to produce TDP3100 through TDP3105
messages, which describe the reason a logon was not eligible to use a pool session, or TDP3120
through TDP3127 messages, which describe why a pool session could not be assigned.
Automatic logoff
When an application ends without logging off its Teradata session, they are automatically
logged off. This also occurs in z/OS or VOS3 when the task or address space terminate.
33
inform the Database of the resolution. The TDP AUTHORIZ command is used to allow a
coordinator to use the TDP RESOLVE command.
The TDP COMMIT and ROLLBACK commands can be used to perform manual in-doubt
resolution. Manual resolution can also be performed from the Teradata Database using the
TPCCONS utility on the RDBMS console. For details see Utilities.
Warning:
Manual resolution of in-doubt sessions must be done with care. Incorrect manual in-doubt
resolution causes a loss of data integrity between the participating databases.
Replication
The Teradata Database supports a capability known as replication by which Database data is
mirrored on another database. In effect, the two-phase commit protocol is used internally to
ensure the two databases remain synchronized. This use of the protocol is not made visible to
TDP. As a result, unbounded delays can occur at various points which will simply appear as
hangs. For example, under at least the following circumstances delays unattributed delays will
occur if replication is involved in in-doubt resolution:
Requests
Requests are initiated by applications to perform work on the Teradata Database. The
following aspects of requests are presented:
34
The total time the session has existed and the elapsed time for the active (or last) request can
also be useful. Also significant is a three-part ratio giving the proportion of total session time
spent within TDP, within the Database, and within the application.
35
The TDP DISPLAY CP REQUESTS command lists the requests queued for, and the requests
sent on, a CP.
CHAPTER 3
Performance Measurement
To evaluate Teradata Database performance, you can use the optional Host System Interface
(HSI) time stamps.
When you use this option, the Host System Interface to TDP (HSIT) forwards time stamps
from various parts of the client system.
The information is returned in the CLIv2 DBCAREA. For details on DBCAREA, see Teradata
Call-Level Interface Version 2 Reference for Mainframe-Attached Systems.
DBCTSTMP
DBCTSTMP contains the time-of-day clock time that is stored when a request is actually
started by the HSIT. This time differs slightly from the time the HSIT is actually issued
because of initialization processing.
TDP Options
To provide for memory acquisition during system operation without incurring the high
overhead associated with the GETMAIN/FREEMAIN memory services, TDP acquires units of
main memory, or cells, from its own, more efficient memory manager.
During startup, the memory manager pre-allocates a number of cells in sizes that are
convenient for use by TDP. The sizes of the cells are internal constants. The initial number of
cells is an internal default.
37
WHEN a . . .
THEN the . . .
Number of times GETMAIN was used to satisfy requests because all cells allocated were in
use
Number of times that a TDP subtask was placed into a wait because all cells of that size
were in use
If this information indicates that the number of cells currently allocated is not adequate for
certain kinds of processing, more cells can be provided to the memory manager. Cells can be
added during TDP startup via the ADD CELLS operator command, which can be executed
from the TDPPARM data set, or from the system console.
For example, if the statistics indicate problems in any client performance for FastLoad
operations, a systems programmer can decide to add cells of data buffer size before running
the next FastLoad.
38
Question
Answer
6 per CP.
Note: IOBUFS are not used for CPs requiring the CCU operand on
the START command. These CPs automatically manage their I/O
buffers.
This is true both for 480 byte and 12,272 byte cells.
More highly stressed CPs should be allocated more cells.
To do this, use either ADD CELLS (while TDP is running) or
INITIAL IOBUFS (in the TDPPARM dataset).
Note: IOBUF cells (12,292 byte cells) are not used for CPs requiring
the CCU operand on the START command. Exclude these CPs when
considering the default cell size.
39
Question
Answer
There are four common cell sizes. The 480 and 12,272 byte sizes (also
known together as I/O buffers or IOBUFS) are both needed for I/O.
Common uses are explained in the following table.
Cell size (bytes)
Usage
240
992
480
12,272
Scenario
Suppose a customer has been getting TDP0021 warnings for 992 byte cells (data buffers), for
example:
TDP0021 **WARNING** 100% OF 992 BYTE CELLS IN USE
The maximum number of data buffers required is equal to the product of the number of
sessions and the amount of data transferred divided by 992:
((number of sessions)(amount of data transferred))/992
40
Response sent to the application, but next request has not yet arrived (Does not require
cells)
At any given moment, the number of sessions whose request is within TDP but has not yet
been sent to the Teradata Database is less than or equal to the total number of sessions logged
on. You should set the number of cells above the average, but below the peak. Average and
peak are functions of the configuration and the workload. For example, running five FastLoad
jobs and several BulkLoad jobs on a Teradata Database with eight interface processors and 104
AMPs produces a much higher average percent of sessions with requests/responses passing
through TDP than would a sixteen interface processor, 104 AMP Teradata Database.
The optimal way to handle standard use is to set the number of cells just above the average and
then let TDP memory management algorithm deal with peak activity periods because it is
generally neither practical nor beneficial to give TDP the number of cells required to handle
peak requests. Generally, it is better to let requests back up in the application address space
instead. Such an approach should provide equal or better throughput while at the same time
ensure better usage of CPU and real storage consumption by the operating system.
The message noted at the beginning of this section, the TDP0021 message, indicates the
percentage of available cells that are in use. Peaks of 100% are not cause for alarm, though an
average of 100% indicates that you should add more cells. In general, assume that somewhere
between 20 and 30 percent of the sessions active are inside TDP at any given moment.
Each FastLoad or BulkLoad request is 32K (this produces approximately 33 992 byte cells,
for a total of 31 Mbytes)
System is running with the default initial cell values, resulting in a TDP0021 message
indicating exhaustion of 992 byte cells and/or a TDP0202 message indicating exhaustion
of XMS cells.
10% of the sessions have requests in transit through TDP simultaneously at any given
moment.
Observations
The theoretical maximum of cells is (number of jobs) (sessions per job) (number of cells), or
(10)(100)(33) = 33,000 992-byte cells.
41
Given the assumptions, there should be about 3300 cells (.10)(33,000) = 3300.
Procedure
Follow this procedure to optimize cell usage.
1
Issue an ADD CELLS command to bring the 992 byte cells up to a total of 3300.
Issue a D CELLS command at regular intervals to determine the number of available and
in use cells.
THEN . . .
Remember to aim for slightly more than average, not for the peak.
System Options
System performance is affected by the load on the block multiplexer channel, which is
connected to the Teradata Database.
For the best system performance, a channel that is used by the Teradata Database should be
dedicated to devices to that Teradata Database. However, if research at your site indicates that
a channel is not overloaded, you can share that block multiplexer channel with other devices,
such as disk or tape devices.
It is the responsibility of your site to monitor channel utilization to determine if it is high
enough to degrade the performance on the Teradata Database. Note that an overloaded
channel will result in I/O delays for other devices on that channel.
The contents of the records are described by the TDPSMFR macro, which is distributed with
the product.
42
SMF/SMS Records
SMF/SMS is a standardized mechanism that provides accounting and performance
information. As an option, the TDP subsystem generates an installation-specified SMF/SMS
record type. The SMF/SMS record ID is the record number where TDP accounting and
performance data is recorded. The record ID is specified in the Host System Interface System
Parameter Block (HSISPB). The HSISPB is delivered with a default ID. The SMF/SMS record
type can be one of the following subtypes:
SMF Record Subtype
Description
CP shutdown
Logoff
General information about a session being logged off and details about
the sessions use of z/OS or VOS3 client and Teradata Database
resources.
TDP shutdown
Structure-protocol
termination
All the SMF/SMS record subtypes are described in further detail in the following sections.
CP Shutdown Record
Introduction
Shutdown of a CP generates SMF statistical records about the normal processing capability of
that CP.
Usage Notes
Shutdown information can be used to determine optimum table sizes and numbers of cells
(units of main memory) to be implemented through the TDPPARM data set.
Record Contents
The shutdown record for a CP contains the following information:
43
Logoff Record
Introduction
During the logoff process, normal or abnormal, the TDPSESS module (the general session
control interface) generates an SMF record. This record contains general information about
the session being logged off, as well as details about the overall use of z/OS or VOS3 client and
Teradata Database resources.
Record Contents
The logoff record includes the following information:
Session termination status (why the session ended, for example, because of command, end
of task, user request)
Session idle time (time spent waiting for applications to issue requests, in .01-second
units)
Session busy time (time spent waiting for the Teradata Database to complete requests, in
.01-second units)
Usage Notes
This information can be correlated with the logoff record to identify users who are violating
installation standards and security procedures. To simplify correlating these records with
other job- and step-related records, security records contain the standard SMF job
identification: job name, step number, and date/time the reader recognized the job card.
44
For details about the User Security Interface (TDPUSEC) and the User Logon Exit Interface
(TDPLGUX), refer to Chapter 4: Customer Exits and Teradata Userid Authentication.
Record Contents
The security violations record contains the following information:
Usage Notes
As with CP shutdown information, TDP shutdown information also can be used to determine
table sizes and numbers of cells to be implemented through the TDPPARM data set.
Record Contents
The shutdown record for a TDP contains the following information:
Number of times the GETMAIN or FREEMAIN memory services of z/OS or VOS3 were
invoked to obtain needed cells
45
Usage Notes
Since the protocol is terminated when the CP is shut down, every record of this type will be
followed by a CP Shutdown Record. However, since the protocol is re-initialized after each
Teradata Database restart, there can be more records of this type than CP Shutdown records.
EXCPVR Option
You can use the EXCPVR option instead of the default EXCP option to eliminate any address
translation of channel programs by the z/OS I/O supervisor (IOS) each time the channel
program supervisor call is invoked.
With EXCPVR, the data areas involved in the I/O operation and the area containing the
channel program are page-fixed. Therefore, address translation for the Channel Control
Words (CCWs) that make up the channel programs is done only once, during TDP
initialization.
46
IOSDRIVR Option
In the z/OS environment, the IOSDRIVR option can be used instead of EXCP or EXCPVR.
The IOSDRIVR option directs the z/OS TDP to call IOS directly through the STARTIO macro
interface to request that I/O be done on its behalf. To make TDP invoke the IOS driver routine
(TDPIODVR) instead of invoking EXCP or EXCPVR, In the TDPPARM data set, include the
TDP INITIAL command:
INITIAL IOMODE IOSDRIVR
In a heavily loaded TDP, the IOSDRIVR option can reduce CPU utilization when compared to
EXCP or EXCPVR. Also, where TDP I/O queue lengths are consistently greater than 0, the I/O
path lengths can be reduced because the disabled interrupt exit (DIE) will fetch the next I/O
request and submit it to IOS. Whenever the I/O completes successfully, post status processing
(back-end IOS) also is avoided.
Since the TDP address space is nonswappable, and the I/O related control blocks are in fixed
storage, Teradata Database-bound I/O will be re-driven out of any address space. That is, this
occurs wherever the I/O interrupt is fielded for the previous I/O, thus avoiding address-space
swapping to handle the interrupt and subsequent re-drive of new I/O.
47
48
CHAPTER 4
At four points TDP will call exit routines if they are provided by the customer:
1
Any User Address Space exit (TDPUAX) receives control in the application address space
when a Teradata session is being established.
Any User Logon Exit (TDPLGUX) receives control in the TDP address space when a
Teradata session is being established.
Any User Transaction Collection Exit (TDPUTCE) receives control in the TDP address
space before requests are sent to, or after responses are received from, the Teradata
Database.
Any User Security Interface (TDPUSEC) receives control in the TDP address space when
the Teradata Database has detected a security violation.
TDPUAX Operation
TDP builds and passes a parameter list to TDPUAX. The parameter list consists of the
following:
TDP information
Requestor information
49
Parameter data
Logon information
When TDPUAX is called during an application logon or connect request, it can be used to:
Accept the logon request and return to TDP with a return code of zero. This causes TDP to
send the logon string to the Teradata Database and return to the application with an initial
status return code of zero.
Reject the logon request by sending a nonzero return code to TDP. TDP immediately
returns to the application with a non-zero return code.
Modify the logon request in the TDPUAX build area and notify TDP that the logon string
has been modified.
Set a flag when it returns, indicating that the logon string has been validated. This causes
TDP to notify the Teradata Database that the exit has validated the logon.
In a validated logon, the password field of the logon string is optional, and is ignored if
present. The userid must be a valid userid with the proper rights granted, as described
above. An account string, if it is used, must be valid and will be respected.
When TDP has authenticated the Database userid, the Database requires that both the logical
host on which TDP resides and the Teradata Database userid both have been granted the right
to logon with null password.This is accomplished for a particular userid by the SQL GRANT
LOGON ON <logical host id> TO USERID <userid> WITH NULL PASSWORD or for all
userids by the SQL GRANT LOGON ON <logical host id> AS DEFAULT WITH NULL
PASSWORD.
While Database userids must be defined with a password, the password is ignored when TDP
has authenticated the Database userid. Since it is ignored, an expired password will not
prevent a logon when TDP has authenticated the Database userid, though it will prevent a
logon when TDP has not authenticated that userid, since the password is used.
This exit does not currently support a terminate call, therefore any cleanup after the
application ends or abend must be managed by the application.
For an example of coding TDPUAX, refer to the sample TDPUAX that is shipped with TDP.
Customizing TDPUAX
When customizing a TDPUAX module, the following points must be considered:
50
As with any system exit, TDPUAX must be carefully coded and debugged with the
assistance of an experienced system programmer. Any errors in TDPUAX can damage the
application address space or the operating system itself.
TDPUAX obtains control in supervisor state, key 7, enabled, in home mode, in task mode,
with the local lock held. Since TDPUAX is locally locked, no SVCs can be issued. The local
lock must not be released.
If you are using MVS/XA or above, TDPUAX must specify AMODE 31 (in VOS3, specify
TRAIT EA) because the data buffers may reside in virtual storage greater than 16 MB.
During its execution, the TDPUAX can change the addressing mode, but it must later
return control in the addressing mode of the caller (as indicated on entry by bit 0 in
general register 14). This is normally accomplished using the instruction, BSM 0,14.
A single copy of TDPUAX resides in CSA and is shared by all address spaces in the system.
Therefore, it must be coded and linked re-entrant.
Any memory obtained by TDPUAX should be associated with the jobstep task for the
following reasons:
It ensures that the operating system cleans up the memory when the jobstep task
terminates, since there is no termination call to TDPUAX.
Control is passed to TDPUAX with general register 1 pointing to the TDPUAXP control block
(parameter list), which contains the following:
A user word that can be set by the exit and remain intact on subsequent calls (under the
same jobstep TCB)
TDP information
Requestor information
Parameter information
Logon information
Note: The TDP identifier and separating slash that CLI allows as a prefix to the Logon
String, and the ending semicolon character, are removed by CLI, so are not present within
the exit.
If the logon string is parsed, the userid, password, and account name each consists of
characters from the session character set. When supported by the session character set, each
contiguous group of double byte characters is preceded by the Shift-out control character,
X0E, and followed by the Shift-in control character, X0F. Neither commas nor blanks can be
specified as double byte characters.
On return, TDPUAX passes one of the following return codes to TDP in general register 15:
51
Return
Code
Meaning
Nonzero
The parameter list is described by the TDPUAXP macro, which is distributed with the
product.
Rename the current version of TDPUAX. (This allows you to revert to the previous
version, if necessary.)
Compile and link-edit the customized TDPUAX module into the <dbcpfx>.TDPLOAD
library, specifying link-edit options that are consistent with the guidelines listed above.
Install the customized TDPUAX with SMP (z/OS clients only) as a USERMOD to prevent
overlaying a customized TDPUAX with a replacement TDPUAX module supplied in a
later software release.
The exit can be activated using the TDP ENABLE LGUX command, either as part of TDP
startup in TDPPARM, or anytime thereafter. It can be deactivated anytime using the TDP
DISABLE LGUX command.
If the TDPLGUX module is replaced, the new version can be used by first deactivating the old
version using the TDP DISABLE LGUX command then activating the new version using the
TDP ENABLE LGUX command. Between the two commands, TDPLGUX is not being used.
TDPLGUX Operation
TDPGLUX processes three types of calls:
52
Initialization
Logon requests
Terminate
The exit is initialized when an ENABLE LGUX command is executed. During initialization,
TDPLGUX obtains a work area, opens files, and so on.
A logon request is passed to the TDPLGUX before the request is allowed to continue.
When a logon request call is made to TDPLGUX, it is processed in the following manner.
1
TDP builds and passes a parameter list to TDPLGUX. This parameter list consists of:
TDP information
Requestor information
Time stamps
Timing precision
Parameter data from TDPUAX (User Address Space Exit) (z/OS or VOS3 only)
Logon information
The TDP identifier and separating slash that CLI allows as a prefix to the Logon String,
and the ending semicolon character, are removed by CLI, so are not present within the
exit.
2
After the user routine processes the parameter data, the exit can:
Determine if the logon string has already been validated by TDPUAX (z/OS or VOS3
only).
Modify the logon string. If the logon string is to be modified, the exit is passed the
location and length of the logon string in the parameter list.)
When TDP has authenticated the Database userid, the Database requires that both the
logical host on which TDP resides and the Teradata Database userid both have been
granted the right to logon with null password. This is accomplished for a particular
userid by the SQL GRANT LOGON ON <logical host id> TO USERID <userid> WITH
NULL PASSWORD or for all userids by the SQL GRANT LOGON ON <logical host id>
AS DEFAULT WITH NULL PASSWORD.
While Database userids must be defined with a password, the password is ignored when
TDP has authenticated the Database userid. Since it is ignored, an expired password will
not prevent a logon when TDP has authenticated the Database userid, though it will
prevent a logon when TDP has not authenticated that userid, since the password is used.
3
53
For an example of coding TDPLGUX, refer to the sample TDPLGUX that is shipped with
TDP.
The parameter list is described by the TDPLGPRM macro, which is distributed with the
product.
Customizing TDPLGUX
When customizing a TDPLGUX module, the following points must be considered:
Because TDPLGUX runs as part of TDP, it is privileged. If improperly coded, it can cause
errors or even destroy TDP.
TDPLGUX can access only data supplied by TDP in data control blocks described in
MACLIB and SAMPLIB, on a release tape of Teradata software. It can not access other
TDP components.
TDPLGUX runs under TDP as a single-threaded routine, and can process only one request
at a time. Consequently, the exit routine must be at least serially reusable or re-enterable in
order to be compatible with the rest of TDP.
TDPLGUX can keep its own tables. A single word is always passed between TDPLGUX
and TDP as part of the parameter list. TDPLGUX can use this word to point to a block of
storage containing information that is required across calls.
As a subroutine of TDP, TDPLGUX must save and restore registers in the standard OS
format when it is called. If other services besides TDPLGUX also are called, the routine
must provide its own save area. Finally, TDPLGUX must return to the address passed in
general register 14.
Control is passed to TDPLGUX with general register 1 pointing to the TDPLGPRM control
block. This control block contains a user word, the logon string, pointers to fields containing
information about the register, and the session character set.
If the logon string is parsed, the userid, password, and account name each consists of
characters from the session character set. When supported by the session character set, each
contiguous group of EBCDIC double-byte characters is preceded by the Shift-out control
character, X0E, and followed by the Shift-in control character, X0F. Neither commas nor
blanks can be specified as double byte characters.
On return, TDPLGUX passes one of the following return codes to TDP in general register 15:
54
Return Code
Meaning
Nonzero
Compile and link-edit the customized TDPLGUX module into one of the following:
In the z/OS or VOS3 environment, install the customized TDPLGUX with SMP as a
USERMOD to prevent overlaying a customized TDPLGUX with a replacement TDPLGUX
module supplied in a later software release.
TDPUTCE Operation
TDPUTCE processes four types of calls:
Initialize
Request
Response
Terminate
The exit is initialized when an ENABLE TMON command is executed. During initialization,
TDPUTCE performs activities such as obtaining a work area and opening files.
55
Parameters Passed
When a request or a response call is made, the exit is passed parameters containing the
following information:
TDP information
Requestor information
Time stamps
Timing precision
A terminate call is sent to the exit at TDP termination time or when a DISABLE TMON
command is executed.
When the TDPUTCE is enabled, TDP calls the user data collection routine via a BALR 14,15,
with register R1 pointing to the parameter list. The parameter list is described by the
TDPMNPRM macro, which is distributed with the product.
Table 1: Function Codes Descriptions
Function
Code
Function Name
Origin
Logon request
CLIv2 Connect
function
Request parcels
Response parcels
Logoff request
CLIv2 Disconnect
function
CLIv2 Cleanup
routine
56
Run request
CLIv2 Connect
function
Request parcels
Response parcels
Logoff All
Application
termination
(none)
(not called)
Task termination
(none)
(not called)
11
Connect request
CLIv2 Connect
function
Request parcels
Response parcels
12
Disable logons
Request parcels
Response parcels
Function
Code
Function Name
Origin
13
Enable logons
(none)
(not called)
16
Start request
CLIv2 Initiate-request
function
Request parcels
Response parcels
17
Continue request
Request parcels
Response parcels
18
Continue-data
request
Request parcels
Response parcels
19
(none)
(not called)
(none)
(not called)
Cancel action
20
32
Directed request
Response parcels
36
Abort Directed
request
(none)
(not called)
65
TDP command
z/OS subsystem
Command text
(not called)
command
TSO DBCCMD
command
66
TDP command,
CLIv2 Command
returning response function
Command text
Response parcels
68
Query Charsets
(not called)
(not called)
Customizing TDPUTCE
Because TDPUTCE runs as part of TDP, it is privileged. If it is improperly coded, TDPUTCE
can cause errors or even destroy TDP.
When you customize a TDPUTCE module, consider the following points:
TDPUTCE can only access data supplied by TDP in data control blocks described in
MACLIB and SAMPLIB, on a release tape of Teradata software. It is not permitted access
to other TDP components.
57
If TDPUTCE is abnormally terminated, TDP error recovery disables TDPUTCE, but once
the problem is resolved it can be reactivated using the TDP ENABLE TMON command.
On z/OS or VOS3, a dump is written to the TDPSNAP DDName. If the exit attaches tasks
and a subtask abnormally terminates, TDP does not process the error. That is, the exit is
not disabled and no dump is written by TDP. However, the operating system can record
the dump if the standard resources are available (a SYSUDUMP DD statement on z/OS,
for example). It is the exits responsibility to properly manage its subtasks so that such
failures do not impact its operation.
TDPUTCE runs under TDP as a single-threaded routine, and can process only one request
at a time. Consequently, the routine must be at least serially reusable or re-enterable in
order to be compatible with the rest of TDP.
TDPUTCE can keep its own tables. As part of the parameter list between TDPUTCE and
TDP, a single word is always passed. Use of this word, which can be used to point to a block
of storage containing information required across calls, is completely under the control of
TDPUTCE.
As a subroutine of TDP, TDPUTCE must save and restore registers in the standard OS
format when it is called. If other services besides TDPUTCE also are called, the routine
must provide its own save area. Finally, TDPUTCE must return to the address passed in
general register 14.
Control is passed to the TDPUTCE routine with general register 1 pointing to the
TDPMNPRM control block. This control block contains a user word, the request/response
string, and pointers to fields containing information about the requestor.
When invoked to process a TDP command, any userids, passwords, and account names can
consist of characters from the character set passed to the exit. When supported by this
character set (or, for the START POOL command, in the command itself), each contiguous
group of EBCDIC double-byte characters is preceded by the Shift-out control character, X0E
and followed by the Shift-in control character, X0F. Neither commas nor blanks can be
specified as EBCDIC double-byte characters.
When invoked to process requests and responses, data (including object names) can contain
EBCDIC double-byte characters if double byte characters are valid in the session character set
passed to the exit.
58
Rename the current version of TDPUTCE (either as originally supplied on the release tape
or as modified by your site) and retain it in the <dbcpfx>.TDPLOAD library. (This allows
the installation to back out erroneous load modules.)
Compile and link-edit the customized TDPUTCE module into the <dbcpfx>.TDPLOAD
library as TDPUTCE with the options RENT,REUS.
Install the customized TDPUTCE with SMP as a USERMOD to prevent overlaying the
customized module with a replacement TDPUTCE module supplied in a later software
release.
TDPUSEC Operation
TDPUSEC processes three types of calls:
Initialization
Security Violation
Terminate
The exit can be activated using the TDP ENABLE USEC command, either as part of TDP
startup in TDPPARM, or anytime thereafter. It can be deactivated anytime using the TDP
DISABLE USEC command.
If the TDPUSEC module is replaced, the new version can be used by first deactivating the old
version using the TDP DISABLE USEC command then activating the new version using the
TDP ENABLE USEC command. Between the two commands, TDPUSEC is not being used.
The exit is initialized when an ENABLE USEC command is executed. During initialization,
TDPUSEC obtains a work area, opens files, and so on.
When a security violation call is received by TDPUSEC, it takes one of the following actions:
An error message is to be issued to the client operator and written to the system log,
and
59
The parameter list is described by the TDPUSPRM macro, which is distributed with the
product.
Because the TDPUSEC runs as part of TDP, it is privileged. If improperly coded, it can
cause errors or even destroy TDP.
The module can access only data supplied by TDP in data control blocks described in
MACLIB and SAMPLIB, on a release tape of Teradata software. It is not permitted access
to other TDP components.
The TDPUSEC module can directly use most normal OS services. WTO, WTL, and
SMFWTM services should be invoked by passing appropriate return codes to the caller of
TDPUSEC, TDP.
TDPUSEC runs under TDP as a single-threaded routine, and can process only one request
at a time. Consequently, the routine must be at least serially reusable or re-enterable to be
compatible with the rest of TDP.
TDPUSEC may keep its own tables. As part of the parameter list between TDPUSEC and
TDP, a single word is always passed. Use of this word, which can be used to point to a block
of storage containing information required across calls, is completely at the option of
TDPUSEC.
As a subroutine of TDP, TDPUSEC must save and restore registers in the standard OS
format when it is called. If other services besides TDPUSEC also are called, the routine
must provide its own save area, and it must return to the address passed in general register
14.
Control is passed to the TDPUSEC routine with general register 1 pointing to the
TDPUSPRM control block. This control block contains a function code, a user word, and
pointers to fields containing information about the failed request.
On return, TDPUSEC passes a return code in general register 15 that requests any of the
following TDP actions:
60
(z/OS or VOS3) Write a message to the system log and return an error code to the
caller.
(z/OS or VOS3) Write a TDP security violation SMF record and return an error code
to the caller.
(z/OS or VOS3) Abnormally terminate the caller (via cross memory ABTERM).
Rename the current version of TDPUSEC (this allows you to revert to the previous version
if necessary).
Compile and link-edit the customized TDPUSEC module into one of the following:
61
TDP
At logon time, if the security logon function is enabled, TDP compares the Teradata
Database user id supplied by the logon application with the authid associated with the
requesting mainframe address space:
IF there is . . .
THEN . . .
not a match
The SAF interface routes the logon validation and authorization requests to the external
security manager.
The external security manager checks its own database or repository to identify the user
and verify access authorization.
The external security manager response to the SAF validation and authorization requests
indicates:
62
Note: Whenever TDPLGUX returns a nonzero value, TDP terminates the logon attempt,
immediately, whether security logon is enabled or disabled.
When using security logon with TDPLGUX, configure TDPLGUX to:
1
First, check flag bit LGSI$SEC in the LGISFL switch byte. This flag is ON when the security
logon function is enabled, signifying that TDPLGUX can place a modified authid in
LGICHUSR.
Then, after modifying the authid, set flag bit LGI$CHNG in the LGISFL switch byte to
ON. This signifies that TDP should use the new authid for logon validation and
authorization.
If LGI$SEC was set to ON when TDPLGUX received control, and you disable the security
logon function while TDPLGUX is still in control, TDP will apply security logon to the
current request, but not to any subsequent requests.
If LGI$SEC was set to OFF when TDPLGUX received control, and you enable the security
logon function while TDPLGUX is still in control, TDP will apply security logon to all
subsequent requests, but not to the current request.
63
This would define user name SAMPUSER with ten megabytes reserved for tables and
associated data structures, and a logon password of MYPASSWORD. (The user definition
must include a password, even if you intend to use the validated logon feature.)
With this definition, the user could log on to the Teradata Database by specifying the TDPid
associated with the RDBMS, a user name of SAMPUSER, and a password of MYPASSWORD.
Before the user could omit the password from the logon string, per the validated logon
function:
The Teradata Database system administrator would have to grant logon access with a null
password.
The system security administrator would have to create the appropriate user resource
profiles or access rules in the external security manager application database.
See the setup procedure in the following subsection for a complete description of these tasks.
Submit the following Teradata SQL statement to the Teradata Database to grant logon
access with a null password:
GRANT LOGON ON ALL AS DEFAULT
WITH NULL PASSWORD;
Note: This command must be submitted either by the Teradata Database system
administrator, or by another user with EXECUTE access to DBC.LogonRule.
Note also that:
64
The null password privilege only applies to logon requests originating on mainframe
client systems. Requests from network-attached workstations always require a
password.
Any attempt to log on to the Teradata Database with user name DBC always requires a
password. TDP will not use the validated logon feature for user name DBC.
The AS DEFAULT provision can be overridden by more restrictive GRANT clauses for
individual users.
If you have customized the User Logon Exit interface (TDPLGUX), then review the
interaction guidelines presented in subsection, Using Security Logon with TDPLGUX, to
determine whether additional changes are required.
If you have not customized TDPLGUX, its enabled/disabled status will have no effect on
security logon operations.
Set up your external security manager to work with the TDP security logon function.
For RACF:
a
Create user profiles in the FACILITY class with a universal access code of NONE to
regulate logons. Note, in the following example, that the first qualifier of the resource
name specifies the TDPid, and the second qualifier specifies the DBC user logon name:
RDEFINE FACILITY TDP9.TEST01 UACC(NONE)
RDEFINE FACILITY TDP0.BIG_DBC_USER_NAME
RDEFINE FACILITY TDPX.PAYROLL977263 -
- UACC(NONE)
UACC(NONE)
Give each user the appropriate status authority to the FACILITY profile. READ is
sufficient, as in the following examples:
PERMIT UACC(READ) USER(TSO0997) CLASS(FACILITY)
PROFILE(TDP9.TEST01)
PROFILE(TDPX.PAYROLL977263)
If you have not already done so, activate the FACILITY class:
SETROPTS CLASSACT(FACILITY)
For ACF2
Set up resource rules of TYPE(FAC) to regulate logon requests and grant access to each
user. Note, in the following example, that the key represents the TDPid and the extension
represents the DBC user logon name:
SET RESOURCE(FAC)
COMPILE *
$KEY(TDP9) TYPE(FAC)
TEST01 UID(TSO997) ALLOW
STORE
COMPILE *
$KEY(TDPX) TYPE(FAC)
STORE
COMPILE *
65
$KEY(TDPX) TYPE(FAC)
PAYROLL977263 UID(TSO999) ALLOW
STORE
For all other external security managers:
Refer to the appropriate vendor documentation.
4
Always test new resource profiles or access rules before placing them in a production
environment.
Because the FACILITY class is limited to 39 bytes, it will not suffice if RDBMS user names
exceed 30 bytes. This will be the case only if character sets are being used that support
more than one byte per character. If this is the case, you will have to create an entirely new
class with a maximum length of 92 bytes (the maximum number of bytes for an RDBMS
user id in any currently supported character set).
This is a complicated processespecially under RACF, where an IPL will be
requiredand should be performed only by an experienced systems programmer.
Refer to the appropriate vendor documentation for details, and when the security logon
function is enabled, specify the name of your new alternate class as follows:
ENABLE SECLOGON MSGS CLASS DBCLOGON
This forces TDP to use a class name of DBCLOGON instead of FACILITY for RACROUTE
authorization calls.
Note: Under RACF, class names can be between 4 and 8 characters in length. Under ACF2,
class names are called resource names and are generally 3 characters in length. (ACF2
internally translates FACILITY to FAC, and vice versa.)
5
Enable the security logon function with the desired messages option:
ENABLE SECLOGON MSGS
or:
ENABLE SECLOGON NOMSGS
See Chapter 4: Customer Exits and Teradata Userid Authentication, for more information
about the TDP commands that pertain to the security logon function:
66
ENABLE SECLOGON
DISABLE SECLOGON
MODIFY SECLOGON
CHAPTER 5
This chapter describes how to find files distributed on the release tape after TDP is installed:
TDPXRC
TDPXRC defines the return codes that can be returned by TDP for a request or its response.
For this Language...
IBM Assembler
67
68
CHAPTER 6
TDP Operation
End users
Check that the TDPISSI module was run and completed at IPL time.
Start the TDP task, typically with the same name as the tdpid.
Examples of TDP startup JCL are included in <dbcpfx>.PROCLIB, with the member
names of TDP0 and TDP1.
On z/OS and VOS3 systems, TDP establishes the following exclusive system-wide
serialization during its execution:
Major Name
Minor Name
Purpose
TERADATA
TERADATA
69
the local TDP serialization to all system images by including the major and minor names
into the System Inclusion RNL.
For more detailed information on starting a TDP, see Teradata Tools and Utilities Installation
Guide for IBM z/OS.
Initializing a TDP
Introduction
After TDP starts, it can be initialized to communicate with the Teradata Database. The
environment in which TDP is to operate is defined using TDP operator commands.
The TDP operator commands can be entered manually from a console or automatically in the
TDPPARM data set.
Minimally, the following TDP operator commands are necessary:
START CP (one for each Teradata channel processor that communicates with TDP)
RUN (to begin the execution phase of TDP operation; allows TDP commands, including
the ones currently queued, to be executed)
You can use additional operator commands, such as INITIAL commands, to further define
the TDP environment.
z/OS
VOS3
70
If you enter GO,TDP continues to run. CANCEL stops TDP. The source of the error(s) can
be determined either from the responses displayed at the console or from the dump.
TDPPARM is read only when TDP is started. Once all records have been processed,
TDPPARM is not read again.
Database Design
Database Administration
The two TDP-internal sessions are used for in-doubt resolution of 2PC transactions. They are
established when TDP is started, and remain until TDP is shut down. These internal sessions
can appear on any TDP command display that lists session-related information, such as the
output from the DISPLAY SESSIONS command. The internal sessions appear in the displays
with the following job name:
*TDPINT*
These two internal sessions comprise the In-doubt Resolution Facility (IRF) for 2PC. In order
to run 2PC applications, you must have IRF enabled.
In-doubt resolution can be disabled using the DISABLE IRF command to achieve a LOGON/
QUIET status on the RDBMS console. However, if IRF is disabled, your 2PC applications will
71
not run. Note that to disable the two internal sessions, you must use the DISABLE IRF
command, not the Performance Monitor ABORT SESSION command.
where:
Syntax Element
Description
tdpid
TDPcommand_text
72
The standard application-to-TDP interface routine supports routing a command from the
MVS/TSO or VOS3/TSS address space to the requested TDP subsystem.
where:
Syntax Element
Description
loadlib
tdpid
TDPcommand_text
The parmstring that includes the tdpid and the command text should have a maximum length
of 120 characters, enclosed in single quotation marks.
where:
Syntax Element
Description
tdpid
TDPcommand_text
73
using these conventions. In particular, Register 1 should point to a parameter list, and other
registers to different areas, as follows:
Register
Description
R1
Pointer to parmlist.
R13
R14
R15
argument:
Meaning
12
264
280
282
Since DBCCMD essentially uses the same interface that CLI uses to send work to TDP, the
DBCCMD interface performs the same validation as it does for any CLI-to-TDP request. Any
error codes returned other than those listed above would, therefore, indicate an internal error
in DBCCMD.
74
Process-Oriented Commands
Certain TDP commands, however, initiate a process or modify the state of a process. For
example, a START CP command causes TDP to go through the device startup sequence. In
such a case, TDP first returns an immediate response, essentially indicating whether the
command was accepted or not. If the command is accepted, TDP monitors the completion of
the process.
After the requested process has completed, TDP then sometimes issues an asynchronous
status message describing the results of the process. This message is not considered a
command response, and is not therefore routed to the originating userid. Instead, the message
displays on the TDP console. (In most cases the user can enter other TDP display commands
to obtain the new status of the process.)
75
TDP Action
Orderly
Waits for all user sessions to end before shutting itself down normally.
Quick
Cancel
The effect of this command is similar to that of the Cancel form of the SHUTDOWN
command.
When shutting down a TDP, you can use the CANCEL command to generate a dump. For
example, to cancel TDP1 and generate a dump, use the following command:
CANCEL TDP1,DUMP
Using PC IACMODE on MVS SP release 4.3 or later always produces the
following message when TDP is shut down:IEF352I ADDRESS SPACE
UNAVAILABLE
This is a normal result of z/OS requirements when using a system linkage index. It does not
indicate an error in either TDP or z/OS.
76
NONE
DISPLAY
ANY
AUTHORIZ
RESOLVE
AUTHORIZ Command
With the AUTHORIZ command you can grant:
User Validation
To validate users, TDP performs the following steps:
1
THEN TDP . . .
THEN TDP . . .
77
IF the userid is . . .
THEN TDP . . .
Session Pools
Introduction
A session pool is a number of sessions that are logged on to the Teradata Database as a unit
using the same logon string. Unlike ordinary sessions, pool sessions are automatically assigned
to applications that initiate a logon using the same logon string as that established for the
pool.
78
The logon string of the application is checked to determine whether it matches that of any
established pool.
IF TDP . . .
detects a matching
logon string
THEN it . . .
checks the pool to determine whether there is are specific job or
session attributes.
IF there is . . .
THEN the . . .
TDP sends the logon for the application to the Teradata Database.
THEN TDP . . .
there is no session
available in the pool
to satisfy the
applications logon
request
79
The Teradata Database is not notified that the session has been logged off.
TDP removes the session from the in-use category and returns it to the not-in-use
category.
If a STOP POOL command (or a MODIFY POOL command to reduce the number of
pool sessions) is entered while the session is in use, the session is logged off of the Teradata
Database.
If the database to be used by the application differs from the database associated with the
logon string of the pool, the application must either change the default or fully qualify all
table references.
If an application either abends or a session logs off from a session pool, the system does a
clean up as follows:
If an ENABLE POOL DETAIL command has been issued, messages indicate why a session is
not satisfied from a session pool.
If an ENABLE POOL STATUS command has been issued, a TDP0802 message indicates if a
session is satisfied from a session pool.
If an ENABLE POOL STATUS command has been issued, a TDP0803 message indicates if a
session that had been satisfied from a session pool ends.
80
CHAPTER 7
TDP Commands
This chapter describes TDP operator commands and INITIAL commands used to control
TDP operation. It should be used by:
End users
Refer to Appendix D: How to Read the Syntax Diagrams, for information on syntax
diagrams.
Unless stated otherwise, this information applies to all environments.
An authorized userid
Usage notes that describe how the command operates and how it can be used
81
Command
Function
ADD CELLS/XMSCELLS
ATTACH CP
COMMIT
DETACH CP
DISABLE IRF
Logs off TDP internal sessions that are used for 2PC in-doubt
resolution.
DISABLE LGUX
DISABLE LOGONS
DISABLE POOL
DISABLE SECLOGON
DISABLE SMF
82
DISABLE TDPSTATS
DISABLE TEST
DISABLE TIME
Command
Function
DISABLE TMON
DISABLE TRAP
DISABLE UAX
DISABLE USEC
DISPLAY CCU
DISPLAY CELLS
DISPLAY CHECKSUM
DISPLAY CP
DISPLAY INDOUBT
DISPLAY JOB
DISPLAY LIMIT
DISPLAY MODULE
DISPLAY POOL
DISPLAY QUEUES
DISPLAY SERVER
DISPLAY SESSIONS
DISPLAY SP
DISPLAY STORAGE
DISPLAY TDP
DISPLAY TDPSTATS
83
Command
Function
ENABLE IRF
Logs on TDP internal sessions that are used for 2PC in-doubt
resolution.
ENABLE LGUX
ENABLE LOGONS
ENABLE POOL
ENABLE SECLOGON
ENABLE SMF
ENABLE TDPSTATS
ENABLE TEST
84
ENABLE TIME
ENABLE TMON
ENABLE TRAP
ENABLE UAX
ENABLE USEC
INITIAL CCU
Command
Function
INITIAL DLYTIME
INITIAL IACMODE
INITIAL IOBUFS
Change the number of I/O buffers for CPs not requiring the CCU
operand on the START command.
INITIAL IOMODE
Choose the mode used by TDP for sending I/O to the Teradata
Database.
INITIAL JOBWAIT
INITIAL LSQA
INITIAL MAXSESS
INITIAL MSGPREF
INITIAL OSSISUFX
INITIAL PCSUFX
INITIAL RSTTIME
INITIAL TRUNCRSP
INITIAL USERID
LOGOFF
Database.
LOGOFF POOL
MODIFY POOL
MODIFY SECLOGON
85
86
Command
Function
RESOLVE
ROLLBACK
For 2PC sessions, rolls back the changes in the specified in-doubt
sessions.
RUN
SET CHARSET
Establishes the character set with which userids and logon strings
are specified in TDP commands.
SET CHECKSUM
SET COMCHAR
SET LIMIT
SET MAXSESS
SET STORAGE
SET USERCS
SET USERID
SHUTDOWN
START CP
START POOL
STOP CP
STOP POOL
ADD CELLS/XMSCELLS
Purpose
Adds cells of main memory to a TDP for its internal use.
The ADD XMSCELLS command can be specified in the z/OS environment to increase the
number of cells reserved for use by the IOMODE PC interface to transfer data between the
application and TDP address spaces.
Except for a small number of cells used for specialized purposes, all cells are allocated from
31bit storage
Syntax
ADD
CELLS
XMSCELLS
SIZE
cellsize
SIZ
NUMBER
NUMBER
number_of_cells
NUM
number_of_cells
SIZE
NUM
SIZ
cellsize
FZAPB001
where:
Syntax Element
Description
CELLS
XMSCELLS
Specification that the number of cells reserved for use by the IOMODE PC
interface are to be increased.
cellsize
number_of_cells
Usage Notes
The ADD CELLS and ADD XMCELLS commands can be used to improve TDP throughput
when throughput has degraded. Use the DISPLAY CELLS command to display excessive
GETMAIN or wait counts, which can reduce TDP throughput.
Note that the size argument must specify an existing cell size. To obtain the cell size, issue the
DISPLAY CELLS command. Add numberofcells to the cellsize cell pool by issuing the ADD
command.
XMSCELLS are used in z/OS only.
87
Example
ADD CELLS SIZ 80 NUM 16
Completion Message
TDP0527 16 MEMORY CELLS OF SIZE 80 SUCCESSFULLY ADDED
88
ATTACH CP
Purpose
Allocates a specified channel device from the operating system.
Syntax
ATTACH
ATT
cpname
2416A005
where:
Syntax Element
Description
cpname
Usage Notes
The devices for an IFP can be either explicitly or dynamically allocated. Dynamic allocation by
TDP is the normal choice since only the ATTACH command is required. Explicit allocation
requires that the following be performed before the ATTACH command is issued:
If using this
operating system . . .
z/OS
VOS3
Do the following . . .
In the JCL procedure used to start TDP, include one DD statement for each
of the two devices for the CP. Each is of the form:
//IFPnnnn DD UNIT=nnn
In one DD statement the nnn is the even device. In the other DD statement
the nnn is the odd device number.
For four-digit device numbers, z/OS requires that the UNIT parameter
contain a slash as in UNIT=/nnnn
Before TDP will use the CP, a START command for that CP and a RUN command must be
issued and complete.
Example
ATTACH CPC308
Completion Message
The following message confirms that the command has been validated:
89
The following message subsequently confirms that the command has been completed:
TDP1356 "CPC308" HAS BEEN ATTACHED
90
cpname
2416A005
where:
Syntax Element
Description
cpname
Usage Notes
The devices for a CP can be either explicitly or dynamically allocated. Dynamic allocation is
the more usual operation since no explicit allocation is required: TDP automatically allocates
the required devices. Explicit allocation requires that the following be performed prior to
ATTACHing the CP:
If using this
operating system . . .
Do the following . . .
z/OS
Include two DD statements in the JCL procedure that is used to start TDP.
VOS3
The DD statements should be in this format:
// IFPnnnn DD UNIT=nnn
One of these statements is for the even CP device number, the other for the
corresponding odd CP device number.
If a four-digit device number is specified for the UNIT keyword, z/OS
requires that a slash precede the digits, as in UNIT=/nnnn
The FILEDEFs should be in this format:
FILEDEF IFPnnnn DUMMY IFP nnnn I
For either operating system, IFPnnnn corresponds to the ifpname used in the ATTACH
command. IFPnnn and IFP0nnn are equivalent. That is, the command can specify one form
and the static system definition can specify the other.
91
Before any session can be assigned to a newly attached CP, the following must occur:
Completion Message
TDP1356 IFP490 ATTACHED
92
AUTHORIZ
Purpose
Grants authority to users at any or all of the five authority levels.
Syntax
NONE
AUTHORIZ
AUT
ALL
userid
DISPLAY
job
D
ANY
A
AUTHORIZ
AU
RESOLVE
R
FZAPB074
Description
userid
ALL
Way to set the default authority for all users for whom no other specific
authority has been granted.
Note that the ALL authority does not imply RESOLVE or AUTHORIZ; those
authorities are set separately.
job
Jobname for the 2PC job (IMS control region or CICS job) that is being
authorized.
NONE
DISPLAY
ANY
Way to grant authority to issue any TDP command except RESOLVE, except
AUTHORIZ.
AUTHORIZ
93
Syntax Element
Description
RESOLVE
Way to grant authority to issue the DISPLAY and RESOLVE TDP commands.
Usage Notes
At the start, the system is set to the default authority level of NONE.
You can execute the AUTHORIZ command from:
Location
When
Example 1
AU ALL DISPLAY
94
COMMENT
Purpose
Adds comments to the JOBLOG and GTF, if being used.
Syntax
COMMENT
COM
text
FZAPZ001
where:
Syntax Element
Description
text
Usage Notes
If the comment is to be written to GTF, the USR GTF option must be specified both when
GTF is started and when the trace records are formatted. The GTF JOBNAMEP option might
also to warranted to limit tracing of user records to the desired TDP
Example 1
COMMENT Begin performance test 6
Completion Message
TDP2062 "COMMENT" COMMAND COMPLETE
95
COMMIT
Purpose
Commits a single 2PC in-doubt session or all 2PC in-doubt sessions for a specified
coordinator.
Syntax
COMMIT
COMMI
ALL
SESSION
COORD
name
number
HOST id
FZAPA003
where:
Syntax Element
Description
ALL
Specifies that all in-doubt sessions for the coordinator are to be committed.
SESSION
number
name
id
Usage Notes
The COMMIT command includes a LOGOFF action by default. The result of this command
is recorded in the InDoubtResLog on the Teradata Database.
Example 1
COMMIT ALL COORD IMS
Completion Message
TDP0419 ALL IN-DOUBT SESSIONS FOR COORDINATOR IMS COMMITTED
Example 1
COMMIT SESSION 4321 COORD CICSS2
Completion Message
TDP0402 SESSION 4321 COMMITTED
96
DETACH CP
Purpose
Deallocates a specific channel device from the operating system.
Syntax
DETACH
DET
cpname
2416A011
where:
Syntax Element
Description
cpname
Usage NotesThe DETACH IFP command can only be used when the CP is STOPped or
has never been STARTed.
The devices can be dynamically or explicitly allocated by the ATTACH commands. If they
were dynamically allocated they will be dynamically de-allocated. If they were explicitly
allocated, TDP will not longer use them but they will remain allocated: TDP must be
shutdown to deallocate them.
Example
DETACH CPC308
Completion Message
The following message confirms that the command has been validated:
TDP1363 DETACH COMMAND ACCEPTED FOR CPC308
The following message subsequently confirms that the command has been completed:
TDP1357 "CPC308" HAS BEEN DETACHED
97
cpname
2416A011
where:
Syntax Element
Description
cpname
Usage Notes
If the devices were dynamically allocated by the ATTACH or START commands, they are deallocated.
The DETACH IFP command is successful only if the CP identified is currently attached to
TDP and the CP is stopped.
The CP is considered stopped if the CP was never started, or if a STOP CP operator command
was successfully processed for the CP.
Example
DET IFP490
Completion Message
TDP1357 IFP490 DETACHED
98
DISABLE IRF
Purpose
Disables TDP internal sessions that are used for 2PC in-doubt resolution.
Syntax
DISABLE
DISA
IRF
FZAPB005
Usage Notes
This command disables the In-doubt Resolution Facility (IRF), which consists of two
TDP-internal sessions used for 2PC in-doubt resolution. The result of the DISABLE IRF
command is that the two TDP-internal sessions are logged off from the Teradata Database.
If there are no other sessions logged on and the DISABLE IRF command is completed, the
status display on the RDBMS console changes to LOGON/QUIET. This LOGON/QUIET state
is necessary for the Reconfiguration program to be run.
Use the DISABLE IRF command to log off the internal sessions, which have the jobname of
*TDPINT*. After executing the Reconfiguration program, use the ENABLE IRF command to
re-establish the two internal sessions.
If IRF is disabled, then automatic in-doubt resolution and the TDP commands for manual
in-doubt resolution (COMMIT, ROLLBACK, and DISPLAY INDOUBT) are rejected. Note
that if IRF is disabled, you are still able to use manual in-doubt resolution if you use a CLIv2
application or the TPCCONS utility.
Note: To disable the two internal sessions, you must use this TDP command, DISABLE IRF.
Do not use the Performance Monitor command, ABORT SESSIONS, to log off TDP internal
sessions.
Example
DISA IRF
Completion Message
TDP0445 sessiontype SESSION ENDED
where sessiontype is either RBM (Resolver Base Module) or LOG. Usually, one message is
displayed for the RBM session and one for the LOG session.
99
DISABLE LGUX
Purpose
Causes TDP to stop passing logon requests to the User Logon Exit Interface (TDPLGUX). The
command also detaches the LGUX task. This allows a new version of TDPLGUX to be brought
online without having to stop TDP and then restart it.
Syntax
DISABLE
DISA
LGUX
FZAPB006
Usage Notes
The TDPLGUX is enabled when TDP starts. If the DISABLE LGUX command is subsequently
executed, TDP stops passing logon requests to TDPLGUX and deletes the TDPLGUX module
from main memory.
Example
DISA LGUX
Completion Message
TDP0912 TDP LOGON USER EXIT INTERFACE DISABLED
100
DISABLE LOGONS
Purpose
Causes TDP to stop accepting logon requests from applications.
Syntax
DISABLE
DISA
LOGONS
FZAPB007
Usage Notes
When TDP starts, logons are not enabled. Logons are enabled during TDP initialization (see
Initializing a TDP on page 70 for more information) using the ENABLE LOGONS operator
command.
If the DISABLE LOGONS command is executed after logons are enabled, a logon request
from an application program is returned to the application with an error message indicating
that logons are currently not allowed. Sessions that are logged on when the DISABLE
LOGONS command is executed are allowed to continue to completion.
Example
DISA LOGONS
Completion Message
TDP0856 LOGONS DISABLED
101
DISABLE POOL
Purpose
Prevents logons to one or more pools.
Syntax
DISABLE
DISA
POOL
ID poolid
ALL
FZAPB008
where:
Syntax Element
Description
poolid
ALL
Usage Notes
The DISABLE POOL command is used to prevent applications from logging on to pool
sessions. Once a pool is disabled, any application logon request that would normally be
satisfied by a session from the pool is rejected with an error code.
When a pool is disabled, any session that is in use is allowed to run until the using application
logs off. At that time, the session is returned to the pool.
To enable applications to log on to pool sessions, use the ENABLE POOL command.
Example
DISA POOL ID ACTR04
Completion Message
TDP0881 POOL ID: ACTR04 IS NOW DISABLED
102
POOL
DETAIL
DET
ID poolid
ALL
FZAJCM04
Usage Notes
When TDP is started, POOL DETAIL is disabled. To subsequently enable POOL DETAIL, use
the ENABLE POOL DETAIL command. The current setting can be displayed using the
DISPLAY TDP command.
Example
DISABLE POOL DETAIL
Completion Message
TDP0401 POOL DETAIL HAS BEEN DISABLED
103
POOL
STATUS
STA
ID poolid
ALL
FZAJCM01
Usage Notes
When TDP is started, POOL STATUS is disabled. To subsequently enable POOL STATUS, use
the ENABLE POOL STATUS command. The current setting can be displayed using the
DISPLAY TDP command
Example
DISABLE POOL STATUS
Completion Message
TDP0401 POOL STATUS HAS BEEN DISABLED
104
DISABLE SECLOGON
Purpose
Disables the security logon function that provides an interface to the System Authorization
Facility (SAF) on z/OS client systems.
Syntax
DISABLE
DISA
SECLOGON
FZAPA093
Usage Notes
TDP responds to the DISABLE SECLOGON command with a TDP2108 message indicating
the new status of the security logon function and its messages option.
Example
DISABLE SECLOGON
Completion Message
TDP2108 SECLOGON: DISABLED, DIAGNOSTIC MSGS: DISABLED
105
SESSION
DETAIL
DET
FZAPA096
Usage Notes
When TDP starts, Session Detail is disabled. To subsequently enable Session Detail, use the
ENABLE SESSION DETAIL command. The current setting can be displayed using the
DISPLAY TDP command.
When Session Detail is enabled and a session ends, a TDP0846 message is produced to
indicate the total elapsed time that the session spent within the application and within the
Teradata Database.
Example
DISABLE SESSION DETAIL
Completion Message
TDP0401 SESSION DETAIL HAS BEEN DISABLED
106
SESSION
RESERVE
RES
FZAPB009
Usage Notes
When TDP starts, the Session Reserve is enabled. To subsequently disable Session Reserve, use
the DISABLE SESSION RESERVE command.
When Session Reserve is enabled and more than one SP is operational, TDP reserves a number
of sessions equal to the capacity of one SP. This is to ensure that if a single SP fails, all user
sessions allocated to the failed SP can be switched to other SPs that were started by this TDP.
This command affects the value of DBC/1012 MAXSESS, as displayed in the output from the
DISPLAY TDP command. This is a separate limit from the value of TDP MAXSESS, which is
controlled by the SET MAXSESS command. The maximum number of sessions that can be
logged on through this TDP is the lower of these two values.
When the maximum number of sessions is already logged on to TDP, any new logon request
from an application is refused with an error code of CLI0513.
Example
DISA SESSION RES
Completion Message
TDP0401 SESSION RESERVE HAS BEEN DISABLED
107
SESSION
STATUS
STA
FZAPA097
Usage Notes
When TDP starts, Session Status is disabled. To subsequently enable Session Status, use the
ENABLE SESSION STATUS command. The current setting can be displayed using the
DISPLAY TDP command.
If Session Status is enabled, a TDP0899 message is produced when a session starts, and a
TDP0898 message is produced when a session ends. When a session to be used for session
pool assignment is started, a TDP0800 message is produced; when such a session ends, a
TDP0801 message is produced.
These messages had previously been controlled by the ENABLE TEST command. For
compatibility, they continue under TEST control until an ENABLE SESSION STATUS or
DISABLE SESSION STATUS is issued, after which TEST has no effect on these messages.
Example
DISABLE SESSION STATUS
Completion Message
TDP0401 SESSION STATUS HAS BEEN DISABLED
108
DISABLE SMF
Purpose
Prevents all System Management Facility (SMF) records from being recorded. The recording
of specific subtypes of SMF records can also be disabled.
In VOS3, applies to SMS records.
Syntax
DISABLE
DISA
SMF
ALL
SUBn
FZAPB010
where:
Syntax Element.
ALL
SUBn
Usage Notes
When TDP starts, SMF recording is enabled for subtypes 1 through 4. To disable SMF
recording, use the DISABLE SMF command.
The ALL argument is the default for this command. Entering just the DISABLE SMF
command with no arguments, disables recording for all SMF record subtypes.
To disable the recording of a specific SMF record subtype, use the SUBn argument, where n is
the number of the SMF record type to have its recording disabled.
109
Example 1
DISA SMF
Example 2
DISA SMF SUB1
Completion Message
TDP0594 SMF RECORDING DISABLED
110
DISABLE TDPSTATS
Purpose
Causes TDP to discontinue collection of statistical and performance information.
Syntax
DISABLE
TDPSTATS
DISA
FE0CA043
Usage Notes
When TDP starts, TDPSTATS is not enabled. TDPSTATS is enabled by executing the ENABLE
TDPSTATS command. Use the DISPLAY TDPSTATS command to display the current status
of TDPSTATS.
Example
DISA TDPSTATS
Completion Message
TDP2501 TDP THROUGHPUT STATISTICS REPORTER DISABLED
111
DISABLE TEST
Purpose
Causes TDP to discontinue writing informational or diagnostic messages to the system
console.
Syntax
DISABLE
DISA
TEST
FZAPB011
Usage Notes
When TDP starts, TEST mode is not enabled. TEST can be enabled by executing the ENABLE
TEST operator command.
If the DISABLE TEST command is executed after TEST is enabled, informational messages
produced by TEST mode are no longer written to the system console.
Example
DISA TEST
Completion Message
TDP0542 TEST MODE DISABLED
112
DISABLE TIME
Purpose
Prevents TDP from sending time to the Teradata Database.
Syntax
DISABLE
DISA
TIME
TIM
FZAPB012
Usage Notes
If neither an ENABLE TIME nor a DISABLE TIME command is issued, the default action is
specified in the HSISPB. While the HSISPB can be customized as necessary, as distributed,
DISABLE TIME is the default. You can use the ENABLE TIME command to enable the option
again.
If you are using a Teradata Database release between V1R4.1 and V1R5.1, inclusive, the
ENABLE TIME feature is supported only for DBC/1012 configurations controlled by a Model
2 Access Module Processor (AMP) or below. If the configuration at your site does not include
a Model 2 AMP, you can include the DISABLE TIME command in the TDPPARM data set to
reduce meaningless channel traffic.
For releases prior to V1R4.1 or V1R5.2 and above, ENABLE or DISABLE TIME function as
expected.
To set the time, use the RDBMS console command, SET TIME.
Example
DISA TIM
Completion Message
TDP0596 HOST TO DBC TIME MESSAGES ARE: DISABLED
113
DISABLE TMON
Purpose
Disables TDP calls to the User Transaction Collection Exit (TDPUTCE) routine, which is used
to collect statistics about requests and responses that traverse TDP.
Syntax
DISABLE
DISA
TMON
FZAPB013
Usage Notes
When TDP starts, the TDPUTCE is enabled. If the DISABLE TMON command is
subsequently executed, TDP stops passing requests and responses to TDPUTCE and deletes
the TDPUTCE module from main memory.
Example
DISA TMON
Completion Message
TDP0922 TDP USER MONITOR EXIT INTERFACE DISABLED
114
DISABLE TRAP
Purpose
Disables a previously-enabled diagnostic trap.
Syntax
DISABLE TRAP NAME name
FE0CA050
DISA
where:
Syntax Element.
Description
name
Usage Notes
A trap is established by the ENABLE TRAP command.
DISABLE TRAP is intended for use in consultation with Teradata Customer Support
personnel.
Example
DISABLE TRAP NAME TRAP0001
Completion Message
TDP0401 TRAP TRAP0001 HAS BEEN DISABLED
115
DISABLE UAX
Purpose
Causes TDP to stop passing requests to the User Address Space Exit Interface (TDPUAX).
Syntax
DISABLE
DISA
UAX
FZAPB014
Usage Notes
The TDPUAX is available only in the z/OS or VOS3 environment.
The TDPUAX is enabled by the ENABLE UAX command.
Example
DISA UAX
Completion Message
TDP0597 TDP USER ADDRESS SPACE EXIT INTERFACE NOW DISABLED
116
DISABLE USEC
Purpose
Causes TDP to stop passing security and logon violations information detected by the
Teradata Database and by the User Logon Exit Interface (TDPLGUX) to the TDP User
Security Interface (TDPUSEC). The command also detaches the TDPUSEC task. This allows a
new version of TDPUSEC to be brought on-line without having to stop TDP and then restart
it.
Syntax
DISABLE
DISA
USEC
FZAPB015
Usage Notes
When TDP starts, the TDPUSEC is enabled. If the DISABLE USEC command is subsequently
executed, TDP stops passing security and logon violations information to the TDPUSEC and
deletes the TDPUSEC module from main memory.
Example
DISA USEC
Completion Message
TDP0902 TDP USER SECURITY EXIT INTERFACE DISABLED
117
DISPLAY CCU
Purpose
Displays limits used during operation of CCU-type CPs.
Syntax
DISPLAY
CCU
FE0CB046
118
DISPLAY CELLS
Purpose
Displays cell availability and usage information generated by the TDP internal memory
management system. The information is accumulated from the time the current TDP was
started; there is no command to reset it.
Syntax
DISPLAY
D
CELLS
CEL
VERIFY
VER
FZAP B016
Description
VERIFY
Specification that the actual number of z/OS PC cells that are currently in use
is to be displayed.
This option is intended for use in consultation with Teradata support
personnel. Use of this option normally has no effect on the accuracy of the
information and simply increases system overhead.
Usage Notes
When TDP is started, the following number of each cell size is obtained.
Cell Size
Number of Cells
64 bytes
500
128 bytes
500
240 bytes
150
256 bytes
500
352 bytes
500
416 bytes
500
992 bytes
500
When IACMODE PC is specified, the following number of each XMS cell size is obtained.
119
Cell Size
Number of Cells
256 bytes
200
416 bytes
200
992 bytes
390
Each time TDP is started, the number of cells can be increased using the TDPADD CELLS,
ADD XMSCELLS, and INITIAL IOBUFS commands in the TDPPARM dataset. While TDP is
running the number of cells can be increased using the TDP ADD CELLS and ADD
XMSCELLS commands. There is no way to reduce the number of cells.
When you execute the DISPLAY CELLS command, TDP displays the following information
about cells in the memory management system:
Column
Description
CELSZ
AVAIL
INUSE
MXUSE
Maximum number of cells used at any one time. This will include any cells
reserved for IOMODE PC interface usage.
GMAIN
PC
Number of cells reserved for use by the IOMODE PC interface at any one
time.
#WAITS
120
TDP1250, which indicates the number of times that at least one of the three cross-memory
cell pools was exhausted. Each request requires one cell from each of the three crossmemory cell sizes. If any of the sizes is unavailable, the request must wait.
TDP1251, which indicates the number of times that no cell was available to process a
request that required more than one cell from the largest cross-memory cell pool
Except for a small number of cells used for specialized purposes, all cells are allocated from
31bit storage
If all available cells of a given size are used at one time, the following message is issued:
TDP0021 **WARNING** 100% of <size> BYTE CELLS IN USE
Completion Message
The result of the DISPLAY CELLS command is in the following format:
TDP0501
TDP0528
TDP0528
TDP0528
TDP0528
TDP0528
TDP0528
TDP0528
TDP0528
TDP0528
TDP0529
TDP1250
TDP1251
TDP0500
121
DISPLAY CHECKSUM
Purpose
Displays the status of checksum validation of data transfers to and from the Teradata Database
when using CCU-type CPs.
Syntax
DISPLAY
D
CHECKSUM
CHE
EF03A072
122
DISPLAY CP
Purpose
Displays the status of channel processors (CPs) that are assigned to this TDP.
Syntax
DISPLAY
D
CP
A
PNUM
xxxx
REQUESTS
NAME cpname
NODETAIL
DETAIL
A
LOCATION
PROTOCOL
SELECT
2416A001
Description
xxxx
cpname
REQUESTS
Indicates that a list of all pending and active requests for the CP is to be
displayed.
NODETAIL
DETAIL
123
Syntax Element
Description
LOCATION
PROTOCOL
SELECT
Indicates that diagnostic information for the selection of the CP for sending
requests is to be displayed.
This option is intended for use in consultation with Teradata customer
support personnel.
Note: The associated information requires internal knowledge of TDP to
properly interpret. Without such knowledge, misleading conclusions are
probable. Time can be saved by heeding this recommendation.
CHECKSUM
Usage Notes
The following information is always displayed, as applicable:
124
CP name
Current TDP command status for the CP, as either DETACHED, STOPPED. STARTED or
HALTED. The first three correspond to normal TDP CP commands; HALT is a command
TDP issues internally. If the command has not completed, then DETACHING,
STOPPING. STARTING or HALTING will be displayed followed by the requested final
state as DETACHED, STOPPED. STARTED or HALTED.
Description
ENDING
TEMP-ERROR
IPERM-ERROR
If the communication status of the CP is not normal, the CPnumber and that status as
follows:
Status
Definition
NOT OPERATIONAL
OPERATIONAL
INITING
SYNCING
Operational but the status of TDP has not yet been synchronized
with that of the Teradata Database.
QUIESCED
If quiesced because the number of consecutive requests sent to the Database on the CP
without receiving any responses exceeded the limit indicated by the DISPLAY LIMIT
NORESP command, this limit is displayed.
Diagnostic Options
The following information is meaningful when consulting with Teradata customer support
personnel; when applicable, it is presented to aid in diagnosis without having to re-create the
problem.
The information displayed varies according to which options, or combination of options are
specified when issuing the DISPLAY CP command. Each option and the possible resulting
display information is provided.
REQUEST
Request number
Session number
Description
ACTIVE
PENDING
DETAIL
Issuing the DETAIL option causes a listing of diagnostic information for the CP to be
displayed.
If communication status of the CP is not normal, the following information will be displayed:
125
The CP number
The total number of messages and bytes transferred (if appropriate for internal operation)
If meaningful, the following information will be displayed for output and input devices:
The number of times an I/O was limited by the maximum number of blocks per I/O
The number of times an I/O was limited by the maximum amount of virtual storage
available for I/O
The number of I/O buffers associated with any I/O being constructed
The number of times a delay was incurred to wait for an I/O buffer
If meaningful, the following additional information will be displayed for input devices:
The number of times a delay was incurred to wait for a TDP 992-byte cell
The following information will be displayed for CPs utilizing the CCU operand on the START
command:
The protocol structure that is expected from the Teradata Database (if the communication
protocol is being initialized)
Which CP explicit SP or implicit SP associated with the CP will be used (if the
communication protocol is being synchronized and a Configuration Request is to be sent)
The number of SPs remaining (if the communication protocol is being synchronized and
SPs are being synchronized)
Whether all or only dependent SPs are involved (if the communication protocol is being
synchronized and SPs are being synchronized)
126
A count of how many times such an event has occurred for this CP
Description
DOWN
Status
Description
RECOVERED
INVOLVED
OBLIVIOUS
LOCATION
Issuing the LOCATION option causes a listing of diagnostic information concerning the
physical location of the CP within the Teradata Database including:
The cabinet
Note: If the Teradata Database does not supply information about the physical location no
location information is displayed.
PROTOCOL
Issuing the PROTOCOL option causes a listing of diagnostic information about the
communication protocol being used by the CP.
The following information will be displayed for CPs utilizing the CCU operand on the START
command:
The following information will be displayed for CPs not requiring the CCU operand:
The maximum number of bytes per block and the Teradata Databases default value
The maximum number of blocks per I/O and the Teradata Databases default value
SELECT
Issuing the SELECT option causes a listing of diagnostic information for the selection of the
CP for sending requests. When appropriate for the current operation the information can
include:
CHECKSUM
Issuing the CHECKSUM option causes the status of checksum in effect for a CCU-type CP to
be displayed. The information can include:
The status (ON, OFF or AUTO) of the last SET CHECKSUM command
127
The number of times that the Teradata Database has activated checksum (if the status is
AUTO)
Note: If the status is AUTO, ACTIVE indicates that checksum has been activated by the
Teradata Database and INACTIVE indicates that it has not.
The number of messages sent to the Teradata Database with checksums (if checksums have
been processed)
The number of messages received from the Teradata Database with checksums (if
checksums have been processed)
Example
D CP
Completion Message
TDP1298 "CP0B92" STARTED
TDP1281
ACTIVE REQUESTS: 1, PENDING REQUESTS: 0
TDP1298 "CP0B90" STARTED
128
IFP
IFPnnnn
STATE
2416A010
Description
IFP
IFPnnnn
STATE
Option that is used for diagnostic purposes only and should be used in
consultation with Teradata customer support personnel.
Usage Notes
When the DISPLAY IFP form of the command is executed, for each active CP, TDP displays a
summary line containing:
CP name
The desired status of the CP. Normally this reflects the completion of the last command
affecting the CP (STARTED or STOPPED) or that the command is ongoing (STARTING
or STOPPING). If the CP is unavailable on the Teradata Database, HALTED or HALTING
can appear. Other possible states are:
PERM ERROR indicates that the CP is not currently configured on the Teradata
Database
129
When the DISPLAY IFPnnnn form of the command is executed, TDP displays the name and
status of the specified CP, plus the number of blocks, messages, packets, and bytes that the CP
has sent to, and received from, the Teradata Database.
Note that the DISPLAY IFP command displays the desired status, for example, a status that
has been set with the START CP or STOP CP command. It may not reflect the current or
actual status of the CP it reflects only what the CP has been set to.
Example 1
D IFP
Completion Message
TDP0517 IFP490 STARTED
TDP0517 IFP492 STARTED
Example 1
D IFP490
Completion Message
TDP0519 IFP490
BYTES 62052464
TDP0519 STARTED
INPUT
BYTES 3730779
130
DISPLAY INDOUBT
Purpose
Displays any 2PC in-doubt sessions or any coordinators that have in-doubt sessions.
Syntax
DISPLAY
D
INDOUBT
IND
RESOLVED
COORDS
HOST id
FZAPB018
Description
SESSIONS
name
id
RESOLVED
Specifies that the display include sessions that were manually resolved, as well
as sessions that are currently in-doubt, for a coordinator.
The returned session status can be IN-DOUBT, COMMITTED, or ROLLED
BACK.
COORDS
Example 1
DISPLAY IND COORDS
Completion Message
TDP0410 COORDINATORS WITH IN-DOUBT SESSIONS
coordinator
coordinator
...
where coordinator is the coordinator name.
Example 1
DISPLAY IND SESSIONS COORD IMSA
131
Completion Message
TDP0412 IN-DOUBT SESSIONS FOR COORDINATOR IMSA
TDP0413
SESSION RUN-UNIT
####### rrrrrrr
...
where:
Syntax Element
Description
#######
Session number.
rrrrrrr
Run-unit id.
Example 1
DISPLAY IND SESSIONS COORD CICSS2 RESOLVED
Completion Message
TDP0409 IN-DOUBT OR RESOLVED SESSIONS FOR COORDINATOR name
TDP0437
STATUS
SESSION
RUN-UNIT
TDP0438
sssssssssss ########### rrrrrrrrrrr
...
where:
132
Syntax Element
Description
sssssssssss
###########
Session number.
rrrrrrrrrrr
Run-unit id.
DISPLAY JOB
Purpose
Displays detailed information on jobs that are communicating with the Teradata Database
through TDP. The DISPLAY JOB command requires a valid job name as an operand. Note
that in some cases the job name is a userid.
To use this command, you must first use the DISPLAY SESSIONS command to display a list of
current jobs, then use a listed jobname as the operand to the DISPLAY JOB command.
Syntax
DISPLAY
D
JOB jobname
FZAPB019
Description
jobname
Usage Notes
When the DISPLAY JOB command is executed, TDP displays:
Job name
Description
IDLE
ACTIVE
133
Description
STARTING
ENDING
SWITCH PENDING
SWITCH ACTIVE
Example
D JOB BASE7MA
Completion Message
TDP0524 JOB BASE7MA, 1 SESSIONS, 1 ACTIVE,
LOGONS ENABLED
TDP0525 JOB BASE7MA, SESSION 1012: ACTIVE
134
DISPLAY LIMIT
Purpose
Displays information related to TDP limits established by the TDP SET LIMIT command.
Syntax
DISPLAY
LIMIT
LIM
NORESP
NOR
JCM03230601
Usage Notes
If NORESP is not specified, it is assumed.
For NORESP, the following information is displayed: the number of consecutive requests that
can sent to the Database on a CP without receiving any responses before TDP will consider
that CP as unresponsive (that is, the value established by the SET LIMIT command), the
highest such value currently reached for any CP, and the highest such value reached by any CP
since TDP was started.
Example
DISPLAY LIMIT
135
DISPLAY MODULE
Purpose
Displays information about a TDP module.
Syntax
DISPLAY
D
MODULE name
LOCATION
FZAPB092
Description
name
LOCATION
optional request that displays the storage location and length of the module,
Usage Notes
Since the names of the TDP modules and the interpretation of the resulting information
requires understanding of the internal structure of TDP, this command is intended for use in
consultation with Teradata customer support people.
The earlier, undocumented form of the command, DISPLAY HISTORY, is a synonym for the
DISPLAY MODULE command.
Example
D MODULE TDPSYNC
Completion Message
TDP2000 TDPNSPCI: 06.00.00.00 (08/15/96 AT 10:01)
136
DISPLAY POOL
Purpose
Lists information and statistics about one or more established session pools.
Syntax
DISPLAY
D
POOL
ALL
ID poolid
FZAPB020
Description
poolid
ALL
Usage Notes
If an error occurs during START POOL processing (because creation of further pool sessions
will cause Teradata Database or installation-defined maximum session capacity (MAXSESS)
to be exceeded), you can use the DISPLAY POOL command to determine how many sessions
were successfully added to the pool before the error prevented further processing. Later, if
session demand is reduced, you can use the MODIFY SESSIONS command to acquire the
desired number of sessions for the pool.
Example
D POOL ID ACTR04
D POOL ALL
Completion Message
The completion message to the DISPLAY POOL command consists of a header line, followed
by one line of statistics per pool, as follows:
ID
poolid
137
where:
138
Column heading . . .
Contains the . . .
ID
REQD
number of sessions requested for the pool in the START POOL or MODIFY
POOL command.
AVAL
number of sessions in the pool that are currently not in use and available to
satisfy application logon requests.
ALC
BUSY
number of pool sessions that are in the process of logging on to the Teradata
Database.
LOGS
number of application logon requests that have already been satisfied by pool
sessions.
ERR
number of application logon requests that have been denied owing to a lack
of available pool sessions.
E/D
indication of whether logons to the pool are enabled (E), or disabled (D).
DISPLAY QUEUES
Purpose
Displays the status of internal work queues for a TDP.
Syntax
DISPLAY
D
QUEUES
Q
FZAPB021
Task name
Completion Message
TDP0554 TASK: TDPWTO, WORK(3), COMMANDS(0), OTHER(0)
TDP0554 TASK: TDPCMD, WORK(1), CMDS(0), OTHER(0)
139
DISPLAY SERVER
Purpose
Displays attributes of the Teradata Database with which TDP is communicating.
Syntax
DISPLAY SERVER
D
FEATURES
CHARSETS
KY01A123
Description
FEATURES
Indicates that a list of all internal Teradata Database features provided to TDP
is to be displayed.
CHARSETS
Indicates that a list of all character sets supported by the Teradata Database is
to be displayed.
Usage Notes
The following information is always displayed:
The default character set (a question mark is substituted if for some reason the name
cannot be ascertained)
The numeric values for the maximum segment number and maximum segment size.
The following information may be displayed, depending on the options specified in the
command:
140
FEATURES, which is a list of names of the feature information. The usefulness of this
information depends upon knowledge of TDP internals; it is intended for use in
consultation with Teradata customer support personnel.
CHARSETS, which is the character set name and corresponding numeric code for each
character set
Example
DISPLAY SERVER
Completion Message
TDP2040
TDP2041
TDP2042
TDP2043
TDP2044
SERVER INFORMATION
HOSTID: 250, DEFAULT CHARSET: EBCDIC
DEFAULT TRANSACTION SEMANTICS: T
PARALLELISM FACTOR: 8
SEGMENT MAXIMUMS: NUMBER(0), SIZE(0)
141
DISPLAY SESSIONS
Purpose
Displays the status of sessions that are communicating with the Teradata Database through
TDP.
Syntax
DISPLAY
D
SESSIONS
SES
ALL
sessnumber
NODETAIL
DETAIL
ENDING
NODETAIL
DETAIL
2416A002
Note: The DI and DIS abbreviations for DISPLAY, AL for ALL, and EN for ENDING are
deprecated.
where:
Syntax Element
Description
sessnumber
ENDING
Specifies that status information be displayed only for sessions that are ending.
(An ending session is one for which a logoff request has been sent to the
Teradata Database but not yet acknowledged.)
ALL
NODETAIL
DETAIL
Usage Notes
The DISPLAY SESSIONS command can be used to display summary information about jobs
and sessions or detailed information using the operands.
When the DISPLAY SESSIONS command is executed with the default ALL operand, TDP
displays the following:
142
Number of sessions
Description
IDLE
ACTIVE
Description
STARTING
ENDING
SWITCH
PENDING
SWITCH ACTIVE
The listed job names can be used in the DISPLAY JOBS command to display detailed
information about the jobs, including the session numbers related to the different jobs.
Note that the job name *TDPINT* may appear in the result of the DISPLAY SESSIONS
command. This indicates a TDP-internal session (a session owned by TDP itself). There are
two kinds of TDP-internal sessions, and both types have the job name *TDPINT*:
Two TDP-internal sessions that are used for 2PC in-doubt resolution
When the DISPLAY SESSIONS command is executed with the sessnumber or ENDING
operand, TDP displays:
Name of the job owning the session (if the session has not completed logoff processing,
'ENDING' appears)
If the DETAIL operand is specified (or TEST is enabled and NODETAIL was not specified),
the following information is also displayed:
143
144
Function Number
Meaning
Logon
Logoff
Run
Logoff all
Connect
DISABLE logons
ENABLE logons
10
Start request
11
Continue request
12
Continue-Data
13
Abort-Data
14
20
Directed request
Information about the session (note that more than one bit can be set to on in the flag
byte):
Number
Meaning
01
SP switch in progress
02
SP switch required
04
08
10
Request complete
20
40
80
A state indicator for the session (note that more than one bit can be set to on in the flag
byte):
State Indicator
Meaning
01
Cleanup required
02
04
Pool session
08
Session is owned
10
20
80
SP number
CP number used to send the request to the Teradata Database (if a request is active)
Session timing
Percentage of time (nn:nn:nn%) the session spent in TDP, the Teradata Database, and
waiting for the request from the user application (TDP:DBC:OUT)
Example 1
D SES
Completion Message
TDP0523 2 SESSIONS, 0 ENDING, LOGONS ENABLED
TDP0524 JOB BASE7MA, 1 SESSIONS, 1 ACTIVE, LOGONS
ENABLED
TDP0524 JOB DC, 1 SESSIONS, 0 ACTIVE, LOGONS ENABLED
Example 2
D SES 1012
145
Completion Message
The following result format is displayed for a specified session number when TDP is in test
mode.
TDP0525
TDP0549
TDP0503
TDP0515
TDP0574
TDP0578
146
DISPLAY SMF
Purpose
Displays the status of TDP System Management Facility (SMF) recording. It displays whether
SMF recording is enabled or disabled and (if necessary) the status of individual SMF record
subtypes.
In VOS3, applies to SMS records.
Syntax
SMF
DISPLAY
D
FZAPB023
Description
Example
D SMF
Completion Message
TDP0594 SMF RECORDING ENABLED CONDITIONALLY
TDP0595
SUBTYPE2: DISABLED
TDP0595
SUBTYPE4: DISABLED
147
DISPLAY SP
Purpose
Displays the status of session processors (SPs) that are assigned to this TDP.
Syntax
DISPLAY
D
SP
PNUM
xxxx
SESSIONS
NODETAIL
DETAIL
2416A003
Description
xxxx
SESSIONS
NODETAIL
DETAIL
Usage Notes
The following information is always displayed, as applicable:
148
SP number.
SP Status, as follows:
Status
Definition
NOT OPERATIONAL
OPERATIONAL
USABLE
Operational and the TDP state has been synchronized with that of
the Teradata Database.
Status
Definition
DELAYED
SERIALIZED
The number of these sessions that are using the Monitor partition
The number of these sessions that are in-doubt but whose original application is no
longer using the session
The following information is displayed, according to the options specified in the command:
IF you select
this option . . .
DETAIL
SESSIONS
synchronization is in
progress,
this SP is dependent
upon a CP,
For each session allocated on this SP, the session number, job name and state, as
follows:
State
Definition
IDLE
No request is active.
ACTIVE
A request is active.
STARTING
ENDING
SWITCH PENDING
SWITCH ACTIVE
149
IF you select
this option . . .
Example
D SP
Completion Message
TDP1260 SPNUM 000F: OPERATIONAL, USABLE
TDP1261
SESSIONS: 2 (MONITOR: 0, INDOUBT: 1)
TDP1260 SPNUM 000E: OPERATIONAL, USABLE
TDP1261
SESSIONS: 2 (MONITOR: 0, INDOUBT: 0)
150
DISPLAY STORAGE
Purpose
Displays information about the use of virtual storage by TDP.
Syntax
DISPLAY STORAGE
D
CP
FE0CA047
DYNAMIC, indicating that the maximum value was dynamically calculated by TDP, or
STATIC, indicating that the value was set manually by the SET STORAGE command
Example
DISPLAY STORAGE
151
DISPLAY TDP
Purpose
Displays the status of TDP.
Syntax
DISPLAY
D
TDP
FZAPB024
Description
RUN command
TDP release
COMCHAR
TDP MAXSESS
LOGONS
SERVER MAXSESS
I/O MODE
Mode used by TDP to send I/O to the Teradata Database (EXCP, EXCPVR,
IOSDRIVR).
The I/O mode is set using the INITIAL IOMODE command.
IAC MODE
SECURITY EXIT
152
Item
Description
TEST
MONITOR EXIT
LOGON EXIT
CHECKSUM
State of the checksum error detection setting on the Teradata Database for
CIC-type CPs, enabled or disabled.
This is modified using a DBS console command. (See the Teradata DBS
Operators Guide.)
SECLOGON
TIME MSGS
UAX
State of the TDP User Address Space Exit interface (TDPUAX), enabled or
disabled.
This is modified using the ENABLE UAX and DISABLE UAX commands.
SESSION RESERVE
SESSION STATUS
SESSION DETAIL
POOL STATUS
POOL DETAIL
153
Item
Description
SHUTDOWN
STATUS
TDP USERID
If a SHUTDOWN command has been entered and has not yet completed,
the above settings are followed by a message that an orderly, quick, or cancel
shutdown is in progress.
TDP CHARSET
Example
D
Completion Message
TDP2010
TDP0550
TDP0551
TDP0556
TDP0552
TDP0570
TDP0572
TDP0573
TDP2012
TDP0400
TDP0392
TDP0395
154
RELEASE: TDP.06.01.00
COMCHAR: OFF, TDP MAXSESS: 1024
LOGONS: ENABLED , SERVER MAXSESS: 120
I/O MODE: EXCP, IAC MODE: IUCV
SECURITY EXIT: ENABLED, TEST: DISABLED
MONITOR EXIT: ENABLED, LOGON EXIT: ENABLED
CHECKSUM: DISABLED
TIME MSGS: ENABLED, UAX: DISABLED
SESSION STATUS: DISABLED, DETAIL: DISABLED
SESSION RESERVE: ENABLED
TDP USERID: TDPUSER, USERID CHARSET: EBCDIC
TDP CHARSET: EBCDIC
DISPLAY TDPSTATS
Purpose
Displays the current status (enabled or disabled) of the TDPSTATS function.
Syntax
DISPLAY
TDPSTATS
DISP
FE0CA044
Completion Message
TDP2031 TDPSTATS ID DISABLED
155
ENABLE IRF
Purpose
Enables TDP internal sessions that are used for 2PC in-doubt resolution.
Syntax
ENABLE
IRF
ENA
FZAPB025
Usage Notes
This command enables the In-doubt Resolution Facility (IRF), which consists of two
TDP-internal sessions used for 2PC in-doubt resolution. The result of the ENABLE IRF
command is that the two internal sessions are logged on to the Teradata Database. If no other
sessions are logged on, the status display on the RDBMS console changes from Logon/Quiet
to Logon.
The ENABLE IRF command typically is issued after a DISABLE IRF command is completed.
For more information see DISABLE IRF earlier in this chapter.
Enabling IRF allows automatic in-doubt resolution and the execution of TDP commands for
manual in-doubt resolution (COMMIT, ROLLBACK, and DISPLAY INDOUBT).
The userid for both sessions defaults to TDPUSER, but can be changed using the SET
USERID command. By default, the userid is in EBCDIC, but a different character set can be
specified using the SET CHARSET command. The current userid and character set can be
displayed using the DISPLAY TDP command. When a specified character set is not available,
the following error message displays:
TDP0394 CHARACTER SET charactersetname IS NOT AVAILABLE.
Example
ENA IRF
Completion Message
TDP0444 type SESSION ESTABLISHED
where:
type is either:
LOG
Usually, one message is displayed for the RBM session and another is displayed for the LOG
session.
If the Database rejects one of the sessions, the following message provides the specific
Database error code:
156
For example, if 'nnnn' is 3004, the userid was not defined to the Database.
157
ENABLE LGUX
Purpose
Causes TDP to begin passing logon requests to TDP User Logon Exit Interface (TDPLGUX).
Syntax
ENABLE
LGUX
ENA
FZAPB026
Usage Notes
TDPLGUX is enabled when TDP starts. If TDPLGUX is subsequently disabled using the
DISABLE LGUX command, it can be re-enabled using the ENABLE LGUX command.
When the ENABLE LGUX command is executed, TDP loads the TDPLGUX module into
main memory and begins passing logon requests to the module.
Example
ENA LGUX
Completion Message
TDP0911 TDP USER LOGON EXIT INTERFACE ENABLED
158
ENABLE LOGONS
Purpose
Causes TDP to begin accepting logon requests from application programs.
Syntax
ENABLE
LOGONS
ENA
FZAPB027
Usage Notes
When TDP starts, logons are not enabled. During TDP initialization, the ENABLE LOGONS
command should be executed to allow applications to begin processing requests.
After the ENABLE LOGONS command is executed, TDP begins forwarding logon requests to
the Teradata Database for processing.
Example
ENA LOGONS
Completion Message
TDP857 LOGONS ENABLED
159
ENABLE POOL
Purpose
Enables logons to one or more pools.
Syntax
ENABLE
POOL
ALL
ID poolid
ENA
FZAPB028
where:
Syntax Element.
Description
poolid
ALL
Usage Notes
The ENABLE POOL command is used to enable logons for a pool that has been disabled by
the DISABLE POOL command. When a session to be used for session pool assignment is
started, a TDP0800 message is produced; when such a session ends, a TDP0801 message is
produced.
Example 1
ENA POOL ID ACTR04
Completion Message
TDP881 POOL ID: ACTR04 IS NOW ENABLED
Example 1
ENA POOL ALL
160
POOL
DETAIL
DET
ID poolid
ALL
FZAJCM03
Usage Notes
If POOL DETAIL is enabled, one message of the following type is produced for each session
pool for which the session is not eligible:
TDP310n POOL name INELIGIBLE (reason): JOB name
If the session is eligible for a session pool but the pool cannot be used, a message of the
following type is produced:
TDP311n POOL name ELIGIBLE BUT reason: JOB name
If the session is not eligible for a session pool, a message of the following type is produced:
TDP312n NO POOL ELIGIBLE (reason): JOB name
Care should be exercised when enabling POOL DETAIL since many messages may result. One
message will be produced for each session for each session pool that is not eligible.
When TDP is started, POOL DETAIL is disabled. To subsequently enable POOL DETAIL, use
the ENABLE POOL DETAIL command. The current setting can be displayed using the
DISPLAY TDP command. POOL DETAIL can be disabled using the DISABLE POOL DETAIL
command.
Example
ENABLE POOL DETAIL
Completion Message
TDP0401 POOL DETAIL HAS BEEN ENABLED
161
POOL
STATUS
STA
ID poolid
ALL
FZAJCM02
Usage Notes
When TDP is started, POOL STATUS is disabled. To subsequently enable POOL STATUS, use
the ENABLE POOL STATUS command. The current setting can be displayed using the
DISPLAY TDP command. POOL STATUS can be disabled using the DISABLE POOL STATUS
command.
If POOL STATUS is enabled, the following type of message is produced when a new session is
satisfied from a session pool:
TDP0802 POOL name, nn AVAILABLE: SESSION nn, JOB name STARTED
and the following type of message is produced when a session using a session pool ends:
TDP0803 POOL name, nn AVAILABLE: SESSION nn, JOB name STARTED
162
ENABLE SECLOGON
Purpose
Enables the security logon function that provides an interface to the System Authorization
Facility (SAF) on z/OS client systems.
Note: You must enable the security logon function manually either from the system console
or via the TDPPARM command list. It does not automatically enable at TDP initialization like
TDPLGUX, TDPUSEC, or TDPUTCE.
Syntax
ENABLE
ENA
SECLOGON
NOMSGS
MSGS
CLASS xxxxxxxx
FZAPB094
where:
Syntax Element
Specification that
NOMSGS
MSGS
the messages option that enables messages to the system console in response
to logon validation failure or denied access.
xxxxxxxx
Usage Notes
TDP responds to the ENABLE SECLOGON command with a TDP2108 message indicating
the new status of the security logon function and its messages option.
SECLOGON will only work under z/OS, and only when IACMODE XMS has been selected at
TDP initialization.
To use SECLOGON in a Multi-User Address Space (MUSAS) environment like CICS or IMS,
obtain the security userid from the external security manager via TDPUAX, and pass that
information to TDPLGUX. Once this is done TDPLGUX can direct SECLOGON to use the
TDPUAX-supplied security userid for validation purposes. For more details, consult your
external security managers documentation or contact the vendors technical support.
Example
ENABLE SECLOGON
Completion Message
TDP2108 SECLOGON: ENABLED, DIAGNOSTIC MSGS: DISABLED
CLASS: FACILITY
163
SESSION
DETAIL
DET
FZAPA099
Usage Notes
When TDP starts, Session Detail is disabled. The current setting can be displayed using the
DISPLAY TDP command.
When Session Detail is enabled and a session ends, the following type of message is produced
to indicate the total elapsed time that the session spent within the application and within the
Teradata Database:
TDP0846 SESSION nnnn, JOB jobname: SERVER(time), APPL(time)
Example
ENABLE SESSION DETAIL
Completion Message
TDP0401 SESSION DETAIL HAS BEEN ENABLED
164
SESSION
ENA
RESERVE
RES
FZAPB029
Usage Notes
When TDP starts, the Session Reserve is enabled. If the Session Reserve has been subsequently
disabled with the DISABLE SESSION RESERVE command, you can use the ENABLE
SESSION RESERVE command to enable the Session Reserve again.
When Session Reserve is enabled and more than one SP is operational, TDP reserves a number
of sessions equal to the capacity of one SP. This is to ensure that if a single SP fails, its sessions
can be switched to other SPs that were started by this TDP.
This command affects the value of SEVER MAXSESS, as displayed in the output from the
DISPLAY TDP command. This is a separate limit from the value of TDP MAXSESS, which is
controlled by the SET MAXSESS command. The maximum number of sessions that can be
logged on through this TDP is the lower of these two values.
When the maximum number of sessions is already logged on to TDP, any new logon request
from an application is refused with an error code of CLI0513.
Example
ENA SESSION RES
Completion Message
TDP400 SESSION RESERVE: ENABLED
165
SESSION
STATUS
STA
FZAPA098
Usage Notes
When TDP starts, Session Status is disabled.
The current setting can be displayed using the DISPLAY TDP command.
If Session Status is enabled, the following type of message is produced when a session starts:
TDP0899 SESSION nnnn STARTED, JOB jobname
These messages had previously been controlled by the ENABLE TEST command. For
compatibility, they continue under TEST control until an ENABLE SESSION STATUS or
DISABLE SESSION STATUS is issued, after which TEST has no effect on these messages.
Example
ENABLE SESSION STATUS
Completion Message
TDP0401 SESSION STATUS HAS BEEN ENABLED
166
ENABLE SMF
Purpose
Enables the recording of all System Management Facility (SMF) records. You can also limit the
recording to specific record subtypes.
In VOS3, this applies to SMS records.
Syntax
ENABLE
SMF
ALL
ENA
SUB n
FZAPB030
where:
Syntax Element
ALL
SUBn
1: Session Termination
2: Security Violation
3: CPActivity
4: TDP Shutdown
5: Structure-protocol Termination
Usage Notes
When TDP starts, SMF recording is enabled for subtypes 1 through 4. To disable SMF
recording, use the DISABLE SMF operator command.
The ALL argument is the default for this command. If you enter just the ENABLE SMF
command with no arguments, recording is enabled for all SMF record subtypes.
To enable the recording of a specific SMF record subtype, use the SUBn argument, where n is
the number of the SMF record subtype to be recorded.
Example
ENA SMF
ENA SMF SUB1
Completion Message
TDP0594 SMF RECORDING ENABLED
167
ENABLE TDPSTATS
Purpose
TDPSTATS measures the performance and assesses the efficiency of data movement between
TDP and the Teradata Database. TDPSTATS collects the following information over the
course of one-minute intervals, then displays it on a normalized per second basis:
Messages received
Input retries
Kbytes received
EXCPs output
Messages sent
Transmission retries
Kbytes sent
This data is useful for application tuning as well as performance benchmarking. The Kbytes in
and Kbytes out values provide an overall measure of throughput efficiency.
Syntax
ENABLE
TDPSTATS
ENA
FE0CA042
Usage Notes
TDPSTATS is stopped by the DISA TDPSTATS command. Use the DISPLAY TDPSTATS
command to determine the status of TDPSTATS.
You can configure TDPSTATS to route output to the system console, or to a data set. The
advantage of routing to the console is that you can view the data in real time, make
adjustments to various tuning parameters, and observe the results immediately. The
disadvantage is that the console can become cluttered with messages from TDPSTATS. The
advantage of routing to a data set is that the data can be collected automatically and postprocessed using a product such as Microsoft Excel to produce historical graphs or charts that
can depict performance trends over longer periods of time. The disadvantage is the
concomitant loss of immediacy.
To route data to the console, enter ENA TDPSTATS. At one-minute intervals, TDSPTATS
writes two messages to the console (one for input statistics and the other for output statistics).
This continues until TDPSTATS is terminated by entering DISA TDPSTATS, or until a TDP
shutdown occurs.
To route data to a data set, include a DD statement to identify a sequential data set in the JCL
for the TDP started task. The DDNAME of this file must be TDPSTATS. Generation data
groups (GDGs) are acceptable, as is SYSOUT.
168
At one-minute intervals, TDPSTATS writes one record to this file using QSAM. Following are
typical entries:
TDPSTATS FOR TDPC (VALUES ARE PER SECOND SAMPLED AT ONE-MINUTE INTERVALS
YYYY.DDD,HH:MM,EXCPIN,MSGSIN,RTRYIN,KBYTIN,EXCPOU,MSGSOU,RTRYOU,KBYTOU
1999.215,09:51,000008,000064,000000,001455,000007,000063,000000,001593
1999.215,09:52,000000,000000,000000,000000,000000,000000,000000,000000
1999.215,09:53,000000,000000,000000,000000,000000,000000,000000,000000
The first record identifies the output as being generated by TDPSTATS for a specific TDP (in
this case, TDPC).
The second record provides a legend for easier readability. Note that the actual data values are
comma-separated; this facilitates their input into a spreadsheet program like Excel.
In both console and data set modes, if the device configuration is changed (for example,
starting and or stopping one or more CPs) while TDPSTATS is active, data associated with the
current interval is discarded and TDPSTATS will be re-initialized. This results in the loss of
data from one one-minute interval.
In data set mode, if an OPEN/CLOSE/EOV failure or I/O error associated with the TDPSTATS
file occurs, TDPSTATS is permanently disabled for the life of the TDP address space, and
restarting TDPSTATS will require restarting TDP.
Example
ENABLE TDPSTATS
Completion Message
TDP2500 TDP THROUGHPUT STATISTICS REPORTER ENABLED
169
ENABLE TEST
Purpose
Causes TDP to start writing informational or diagnostic messages to the system console.
Syntax
ENABLE
TEST
ENA
FZAPB031
Usage Notes
When TDP starts, TEST mode is not enabled. TEST can be enabled by executing the ENABLE
TEST operator command.
After ENABLE TEST is issued, informational messages produced by TEST mode are written to
the system console to indicate the starting and ending of sessions. This use is deprecated,
replaced by use of ENABLE and DISABLE SESSION STATUS.
After ENABLE TEST is issued, more comprehensive information is provided for the DISPLAY
SESSIONS command. This use is deprecated, replaced by the DETAIL operand on the
DISPLAY SESSIONS command.
Example
ENA TEST
Completion Message
TDP0541 TEST MODE ENABLED
170
ENABLE TIME
Purpose
Causes TDP to send the time from the client to the Teradata Database.
Syntax
ENABLE
ENA
TIME
TIM
FZAPB032
Usage Notes
If neither an ENABLE TIME nor a DISABLE TIME command is issued, the default action is
specified in HSISPB. While HSISPB can be customized as necessary, as distributed, DISABLE
TIME is the default.
If you are using a Teradata Database release between V1R4.1 and V1R5.1, inclusive, the
ENABLE TIME feature is supported only for DBC/1012 configurations controlled by a Model
2 Access Module Processor (AMP) or below. If the configuration at your site does not include
a Model 2 AMP, you may want to include the DISABLE TIME command in the TDPPARM
data set to reduce meaningless channel traffic.
For releases prior to V1R4.1 or V1R5.2 and above, ENABLE or DISABLE TIME function as
expected.
To set the time, use the RDBMS console command, SET TIME.
Example
ENA TIM
Completion Message
TDP0596 HOST TO SERVER TIME MESSAGES: ENABLED
171
ENABLE TMON
Purpose
Enables TDP calls to the User Transaction Collection Exit (TDPUTCE) routine, which is used
to collect statistics about requests and responses that traverse TDP.
Syntax
ENABLE
TMON
ENA
FZAPB033
Usage Notes
When TDP starts, TDPUTCE is enabled. If TDPUTCE is subsequently disabled using the
DISABLE TMON operator command, the routine can be re-enabled using the ENABLE
TMON command.
When the ENABLE TMON command is executed, TDP loads the TDPUTCE module into
main memory and begins passing all requests and responses to the module.
Example
ENA TMON
Completion Message
TDP0921 TDP USER MONITOR EXIT INTERFACE ENABLED
172
ENABLE TRAP
Purpose
Enables a TDP internal diagnostic trap. The trap causes the TDP to perform a specified action
if the trap conditions occur.
Syntax
ENABLE TRAP
PERMIO
CHECKSUM
NAME name
CHE
BADCP
SERVERPV
CLIENTPV
NOREAD
NOR
FAULTRSP
ACTION
ABEND
SNAP
IMPRSTRT
IMP
ACTION
ABEND
SNAP
UNSOLRSP
UNS
ACTION
ABEND
SNAP
2416A006
where:
Syntax Element
Indicates
PERMIO
BADCP
SERVERPV
CLIENTPV
NORead
173
Syntax Element
Indicates
FAULTRSP
Trap a faulty response. A faulty response is one whose parcels do not exactly
fill the response.
IMPrstrt
UNSolrsp
ABEND
SNAP
CHECKSUM
name
Usage Notes
The trap can be removed by using the DISABLE TRAP command.
For event types that do not support the ACTION operand, or when the ACTION operand is
not specified, ABEND is the implied action.
This command is intended for use in consultation with Teradata Customer Support
personnel.
Example
ENABLE TRAP PERMIO
Completion Message
TDP0401 TRAP TRAP0001 HAS BEEN ENABLED
174
ENABLE UAX
Purpose
Causes TDP to pass requests to the User Address Space Exit Interface (TDPUAX).
Syntax
ENABLE
UAX
ENA
FZAPB034
Usage Notes
TDPUAX is available only in the z/OS or VOS3 environment.
To disable TDPUAX, use the DISABLE UAX command.
Example
ENA UAX
Completion Message
TDP0597 TDP USER ADDRESS SPACE EXIT INTERFACE ENABLED
175
ENABLE USEC
Purpose
Causes TDP to begin passing security and logon violations information detected by the
Teradata Database and by the User Logon Exit Interface (TDPLGUX) to the TDP User
Security Interface (TDPUSEC).
Syntax
ENABLE
USEC
ENA
FZAPB035
Usage Notes
When TDP starts, TDPUSEC is enabled. If TDPUSEC is subsequently disabled using the
DISABLE USEC operator command, the interface can be re-enabled using the ENABLE USEC
command.
When the ENABLE USEC command is executed, TDP loads the TDPUSEC module into main
memory and begins passing security violations to the module.
Example
ENA USEC
Completion Message
TDP0901 TDP USER SECURITY EXIT INTERFACE ENABLED
176
INITIAL CCU
Purpose
Changes limits used during operation of CCU-type CPs.
Syntax
INITIAL
INI
CCU
MAXBLKNM n
MAXBLKSZ n
MAXCKSUM n
FE0CQ049
where:
Syntax Element
Description
MAXBLKNM
MAXBLKSZ
MAXCKSUM
Usage Notes
You can display CCU limits with the DISPLAY CCU command.
INITIAL CCU is intended for use in consultation with Teradata Customer Service personnel.
These values are not necessarily the values that will be used by the CP. Rather, they are TDP's
preferences but can be negotiated to other values by the Teradata Database when
communication for each CP is established. While the Teradata Database can not increase a
value, it can decrease it. For MAXCKSUM, the value could be forced to zero, thereby allowing
any number of checksum rejections.
Example
INITIAL CCU MAXBLKNM 4
INITIAL CCU MAXBLKSZ 32767
INITIAL CCU MAXCKSUM 13
177
INITIAL DLYTIME
Purpose
Sets the time interval for issuing reminders that all communication with the Teradata
Database has been lost.
Syntax
INITIAL
INI
DLYTIME ssss
FZAPB050
where:
Syntax Element.
Description
ssss
Usage Notes
If an interval of less than 60 seconds is specified, 60 seconds is used.
Example
INIT DLYTIME 90
178
INITIAL IACMODE
Purpose
Changes the mode of communication between TDP and an application program.
Syntax
where:
Syntax Element
Description
SVC
nnn
DYNAMIC
Indication that the SVC is to be installed into z/OS by TDP when started, and
removed by TDP upon stopping.
If DYNAMIC is not specified, the SVC must be installed before starting TDP.
(See theTeradata Tools and Utilities Installation Guide for IBM z/OS)
PC
Usage Notes
The DYNAMIC option must not be specified if multiple TDPs are to use the same SVC
number. If DYNAMIC is specified, the first TDP to be stopped removes the SVC from the
system, making it unavailable for the other TDPs.
When the Teradata Database uses more than one version of the TRDTMAS (z/OS) or
TRDTHAS (VOS3), each version is identified by a unique SVC number, nnn.
The version of the SVC used by an application that uses Call-Level Interface (CLI) routines is
controlled by the HSISPB module.
Example 1
INIT IACMODE SVC
179
Example 2
INITIAL IACMODE PC
180
INITIAL IOBUFS
Purpose
Increase the number of I/O buffers for CPs not requiring the CCU operand on the START
command. The command overrides the system defaults.
Syntax
INITIAL
INI
IOBUFS number
FZAPB052
where:
Syntax Element
Description
number
Usage Notes
The buffers requested by this command are not used for CPs that require the CCU operand on
the START command. If all CPs are of this type, then any use of INITIAL IOBUFS wastes
storage.
The INITIAL IOBUFS command overrides the system default and is the only way to increase
the numbers of I/O buffers before TDP initialization. The system default is a function of the
number of CPs and the workload. This default is appropriate for most situations.
The INITIAL IOBUFS command should be used if the D CELLS command shows an excessive
number of GETMAINS and/or WAIT COUNTS on the I/O buffers. If this occurs, consult with
Teradata customer support personnel to determine the optimum number of I/O buffers.
Example
INIT IOBUFS 32
181
INITIAL IOMODE
Purpose
Chooses the mode used by TDP to send I/O to the Teradata Database.
Syntax
where:
Syntax Element
EXCP
EXCPVR
IOSDRIVR
Usage Notes
Use of IOSDRIVR reduces the I/O path length between TDP I/O tasks and the system I/O
supervisor. Use of the option also avoids Supervisor Call (SVC) interrupts by enabling TDP to
pass any new I/O request directly to the IOS.
For z/OS, use of EXCPVR or IOSDRIVR, allows 31bit virtual storage for I/O buffers.
For z/OS, use of EXCPVR or IOSDRIVR results in virtual storage for I/O being fixed in real
storage while it is allocated, so real storage utilization can be increased. For CCU-type CPs,
such storage is dynamically obtained, freed, or cached as needed; for CIC-type CPs, the
storage comprises TDP I/O cells.
182
Example 1
INIT IOMODE EXCP
Example 2
INITIAL IOMODE EXCPVR
Example 3
INIT IOMODE IOSDRIVR
183
INITIAL JOBWAIT
Purpose
Chooses the amount of time that an application can be in a wait state before TDP initiates an
activity to prevent the application from being timed out by the operating system.
Syntax
INITIAL
INI
JOBWAIT mmmm
FZAPB054
where:
Syntax Element
Description
mmmm
Time, in minutes.
A value of zero indicates that TDP does not attempt to prevent timeouts. This
value must be less than 1440 (number of minutes in a day).
Usage Notes
See Preventing Application Time-out on page 35 in for more information.
Example
INIT JOBWAIT 2
184
INITIAL LSQA
Purpose
Controls the use of LSQA in address spaces communicating with the RDBMS.
Syntax
INITIAL
INI
LSQA
24BIT
31BIT
FZAPB055
where:
Syntax Element.
Description
24BIT
31BIT
Usage Notes
31BIT can only be specified if all TDPs on the system are running at the current level and
specify the 31-bit value.
Example
INIT LSQA 31BIT
185
INITIAL MSGPREF
Purpose
Controls the TDP identifier that normally appears before the message prefix. The initial
setting is ON, which causes all messages to be preceded by the last character of the TDP
identifier, a colon and a blank. OFF suppresses this TDP identifier prefix.
Syntax
INITIAL
INI
MSGPREF
ON
OFF
COM
NOCOM
FZAPB056
where:
Syntax Element
Description
ON
OFF
COM
NOCOM
Usage Notes
Specifying MSGPREF OFF only does not suppress the COMCHAR, which precedes all TDP
messages. To suppress the COMCHAR, specify NOCOM, which is optional. If NOCOM is
specified, the communication character appears as a blank. When specifying these operands,
ON or OFF must precede COM or NOCOM.
The default condition is ON and COM for all TDP messages.
Example
INIT MSGPREF OFF NOCOM
186
INITIAL OSSISUFX
Purpose
Associates a TDP with the HSI Operating System Subsystem Interface.
If the subsystem uses SVC mode, TDP is associated with a version of HSIOSSI. If the
subsystem uses PC mode, TDP should be associated with a version of HSI Program Call
Services (HSISXMS).
Syntax
INITIAL
INI
OSSISUFX
OSSI
suffix_character
FZAPB057
where:
Syntax Element
Description
suffix_character
Usage Notes
When a Teradata Database uses more than one TDP subsystem (for example, a test TDP
subsystem and a production TDP subsystem), each subsystem can use a different version of
the HSIOSSI (SVC mode) or HSISXMS (PC mode) module to communicate with an
application address space. To enable a TDP to distinguish between HSIOSSI or HSISXMS
modules, a suffix is appended to the name of each module during the installation of Teradata
Database software on the z/OS client.
When TDP starts, the OSSISUFX is not set. When the INITIAL IOMODE command is
executed, the version of HSIOSSI or HSISXMS identified by the suffix character must be
compatible with the version of the TDP to be used.
Example
INIT OSSI #
187
INITIAL PCSUFX
Purpose
Associates a TDP with the version of the TDPNSPCI module that is used by the subsystem in
which TDP is running. (z/OS only)
Syntax
INITIAL
INI
PCSUFX suffix_character
FZAPB058
where:
Syntax Element
Description
suffix_character
Usage Notes
When a Teradata Database uses more than one TDP subsystem (for example, a testing TDP
subsystem and a production TDP subsystem), each subsystem can use a different copy of the
non-space-switched PC program (TDPNSPCI) module to communicate with an application
address space. To enable a TDP to distinguish between TDPNSPCI modules, a suffix is
appended to the name of each module during the installation of Teradata Database software
on the client.
The TDPNSPCI module is used only if TDP runs in communication mode PC (Program
Call).
Example
INIT PCSUFX $
188
INITIAL TRUNCRSP
Purpose
Specifies if response truncation is to be indicated by a return code.
Syntax
INITIAL
INI
TRUNCRSP
RC
NORC
FE0CB051
where:
Syntax Element
Description
RC
NORC
Usage Notes
There is no command to display the current setting.
This command is intended for use in consultation with Teradata Customer Support
personnel.
Example
INIT TRUNCRSP NORC
189
LOGOFF
Purpose
Forces one or more sessions to be logged off the Teradata Database.
Syntax
LOGOFF
LOG
SESSIONS
SES
sessnumber
ALL
JOB jobname
TASK taskid
SUPPRESS
SUCCESS
WARNING
ALL
FZAPC036
where:
Syntax Element
Description
sessnumber
ALL
jobname
taskid
z/OS or VOS3 TCB address that established the sessions to be logged off.
SUCCESS
WARNING
ALL
Usage Notes
When the LOGOFF command is executed, a logoff request is sent to the Teradata Database for
each session to be logged off. When the SES ALL operand is used, Teradata Database logons
are disabled when all sessions have been logged off.
Outstanding requests for sessions to be logged off are aborted, and any results are returned to
the requesting application. Subsequent requests for a logged-off session are returned to an
application with an error message.
To log off a session, issue the LOGOFF command from the TDP that the session is running on.
190
Completion Message
TDP0864 LOGOFF COMMAND ACCEPTED FOR SESSION 1259
Example 1
LOGOFF SES ALL
Completion Message
TDP0860 LOGOFF INITIATED FOR number_of_sessions SESSIONS
Example 1
LOGOFF JOB AWVRET
Completion Message
TDP0850 JOB AWVRET number_of_sessions LOGOFFS INITIATED
191
LOGOFF POOL
Purpose
Ends a pool immediately by forcing the logoff of pool sessions that are in use by application
programs.
Syntax
LOGOFF
LOG
POOL
ID poolid
ALL
FZAPA037
where:
Syntax Element
Description
poolid
ALL
Usage Notes
The LOGOFF POOL command affects only pool sessions that are being used by applications.
The LOGOFF POOL command terminates any pool sessions that are in use and disables their
associated pools. The pools still exist, but they are disabled.
To use the pools again, use the ENABLE POOL command.
To completely eliminate existing pools in an orderly manner, use the STOP POOL command.
Example 1
LOGOFF POOL ID ACTR04
Example 2
LOGOFF POOL ALL
Completion Messages
192
When LOGOFF
POOL . . .
begins processing
finishes processing
MODIFY POOL
Purpose
Increases or decreases the number of sessions in a pool.
Syntax
MODIFY
MOD
POOL ID
where:
Syntax Element
Description
poolid
number
Usage Notes
The MODIFY POOL command can be used to supplement the number of sessions in a pool
that was originally unable to acquire the desired number of sessions because there was
insufficient session capacity.
When supplementing the number of pool sessions, the MODIFY POOL command is entered
after system session load has been reduced.
If the modified number of sessions is equal to the current number of sessions in the pool, then
the command is rejected with an error message.
Example
MODIFY POOL ID ACTR04 NUM 30
Completion Messages
When MODIFY POOL
is executed to . . .
193
MODIFY SECLOGON
Purpose
Changes the configuration of the messages option of the security logon function that provides
an interface to the System Authorization Facility (SAF) on z/OS client systems.
Syntax
MODIFY
MOD
SECLOGON
MSGS
NOMSGS
FZAPA092
where:
Syntax Element
NOMSGS
MSGS
Usage Notes
TDP responds to the MODIFY SECLOGON command with a TDP2108 message indicating
the new status of the security logon function and its messages option.
Example
MODIFY SECLOGON MSGS
Completion Message
TDP2108 SECLOGON: ENABLED, DIAGNOSTIC MSGS: ENABLED
194
RESOLVE
Purpose
For in-doubt two-phase commit sessions, manually resolve the in-doubt status. This
command is intended for use by programmatic two-phase commit co-ordinators and cannot
be issued from any console. It is described here only for completeness.
Syntax
RESOLVE
SESSION number
COMMIT
COORD name
ROLLBACK
FORGET
JCM_D007
where:
Syntax Element
Description.
number
name
Usage Notes
Used by a two-phase commit programmatic co-ordinator.
Example
RESOLVE SESSION 3253 ROLLBACK COORD IMS
Completion Message
TDP0417 SESSION 3253 HAS BEEN MANUALLY ROLLED BACK
195
ROLLBACK
Purpose
Rolls back a single 2PC in-doubt session or all 2PC in-doubt sessions for a specified
coordinator.
Syntax
ROLLBACK
ROL
ALL
COORD name
SESSION number
HOST id
FZAPB039
where:
Syntax Element
Description
ALL
Specification that all in-doubt sessions for the coordinator are to be rolled
back.
SESSION
number
name
id
Usage Notes
The ROLLBACK command includes a LOGOFF action by default. The result of this command
is recorded in the InDoubtResLog on the Teradata Database.
Example 1
ROLLBACK ALL COORD TERCICS
Completion Message
TDP0420 ALL IN-DOUBT SESSIONS FOR COORDINATOR TERCICS ROLLED BACK
Example 1
ROLLBACK SESSION 3253 COORD IMS
Completion Message
TDP0403 SESSION 3253 ROLLED BACK
196
RUN
Purpose
Enables communication with the Teradata Database by allowing CPs to be started.
Syntax
RUN
RU
FZAPA040
Usage Notes
Sessions cannot be established until the RUN command is executed.
Any TDP command can be issued before the RUN command. Those commands that require
communication with the Teradata Database (for example,CP-related commands) are accepted
but do not complete. Once the RUN command is executed, any pendingCP-related commands
will complete and sessions can then be established. This gives an operator the opportunity to
enter commands that are not included in the TDPPARM data set before TDP begins
execution.
If the command used to start TDP is executed from the system console, each command in
TDPPARM is displayed at the console as it is executed, followed by a processing response. If
the RUN command is entered as part of a batch job, messages are routed to the master console
route code.
Example
RUN
197
SET CHARSET
Purpose
Establishes the character set with which userids (SET USERID) and logon strings (START
POOL) are specified in TDP commands.
Syntax
SET CHARSET character_set_name
FZAPB041
Syntax Element
Description
character_set_name
198
EBCDIC
EBCDIC037_0E
EBCDIC273_0E
EBCDIC277_0E
HANGULEBCDIC933_1II
KANJIEBCDIC5026_0I
KANJIEBCDIC5035_0I
KATAKANAEBCDIC
SCHEBCDIC935_2IJ
TCHEBCDIC937_3IB
While other names can be specified, their characteristics (codepoint for the space, comma,
apostrophe, and quotation symbols; the codepoints for control characters; the encoding
scheme, and the rules for monocasing) are assumed to be the same as the characteristics for
EBCDIC.
Usage Notes
Unless this command is specified, EBCDIC is assumed. Neither the ability of the database to
support character sets nor the existence of the specified character set is validated during the
execution of this command. Subsequent attempts to specify a database object in a TDP
command can result in errors.
The current character set can be displayed using the DISPLAY TDP command.
Example 1
SET CHARSET KANJIEBCDIC5026_0I
Example 2
SET CHARSET EBCDIC
Completion Message
TDP0396 TDP CHARSET IS NOW character_set_name
Error Messages
Possible error messages are:
TDP0504
TDP0506
TDP0535
TDP0536
TDP0502
199
SET CHECKSUM
Purpose
Changes the use of checksum validation for data transfer to and from the Teradata Database
through CCU-type CPs.
Syntax
SET
CHECKSUM
ON
CHE
OFF
AUTO
AUT
EF03A073
Description
ON
Checksums from the Teradata Database are honored, and checksums are
always sent to the Teradata Database.
OFF
Checksums from the Teradata Database are ignored, and no checksums are
sent to the Teradata Database.
AUTO
When a checksum is received from the Teradata Database, checksums are sent
to the Teradata Database.
Usage Notes
Use the DISPLAY CHECKSUM command to display the current checksum setting.
Message
TDP2033 CHECKSUM IS NOW 'ON' (WAS 'OFF')
200
SET COMCHAR
Purpose
Establishes or changes the communication character (comchar) that is used to link the entry
of TDP operator commands with a TDP that is to be initialized.
Syntax
SET
COMCHAR
COM
comchar
OFF
FZAPB043
Description
comchar
OFF
Usage Notes
When a TDP starts, no comchar is defined. After the SET COMCHAR command is executed
to specify a communication character for a TDP, all TDP commands subsequently entered
that are preceded by the character are interpreted as commands for that TDP.
It is not recommended that the same communication character be defined for more than one
TDP subsystem. If this is done, commands prefixed by the character are processed by all
subsystems that are assigned that communication character.
Example 1
SET COM +
Completion Message
TDP0543 COMMUNICATION CHARACTER IS NOW SET: +
Example 1
SET COMCHAR OFF
201
SET LIMIT
Purpose
Changes limits used by TDP.
Syntax
SET
LIMIT
LIM
NORESP nnnn
JCM03230600
NOR nnnn
where:
Syntax element
Description
nnnn
The number of consecutive requests that have been sent to the Database on a
CP without receiving any responses that TDP will consider excessive. At this
limit TDP will consider the CP as unresponsive and use other CPs to send
subsequent requests. If no other functional CPs exist, requests will continued
to be queued for this one. A value of zero indicates that TDP will never
consider a CP unresponsive.
Usage Notes
If this command is not used, a value of 75 is assumed.
The current value can be displayed using the DISPLAY LIMIT command.
Because SQL requests can run for unbounded time so there is no certain way to know when a
response is not forthcoming, this command is intended for use in consultation with Teradata
customer support personnel.
Example
SET LIMIT NORESP 100
202
SET MAXSESS
Purpose
Establishes the maximum number of concurrent sessions that TDP will allow.
Syntax
SET
MAXSESS
MAXS
number_of_sessions
FZAPB044
Description
number_of_sessions
Usage Notes
The SET MAXSESS command limits TDP usage of Teradata Database resources by limiting
the number of sessions that it can control.
When the maximum number of sessions is already logged on to TDP, any new logon request
from an application is rejected.
If this command is not used, the maximum number of concurrent sessions that TDP will
allow is the same as the maximum number currently supported by the Teradata Database.
Unless IRF disabled, two internal sessions are established upon TDP startup that are used for
2PC. Establishing these sessions cannot be prevented by setting the MAXSESS number to 0.
These two internal sessions can only be disabled using the DISABLE IRF command, either by
entering it manually or including it in the TDPPARM data set.
Example
SET MAXS 25
Completion Message
TDP0544 TDP MAXIMUM SESSION LIMIT NOW SET TO: 25
203
SET STORAGE
Purpose
Changes the virtual storage limits used by TDP.
Syntax
SET STORAGE
CP nnnn
FE0CA048
Description
nnnn
Maximum number of bytes of virtual storage that will be used for CCUtype CP I/O
Usage Notes
If the SET STORAGE command is not used, TDP dynamically calculates the value, based on
the INITIAL CCU MAXBLKNM value and the number of started CPs. The minimum value,
which is determined by TDP, varies according to the number and types of CPs started, and the
values of INITIAL MAXBLKNM and MAXBLKSIZE. The maximum value that can be
specified is 4294967295, although this amount of storage may not actually be allocated. When
using INITIAL IOMODE EXCPVR or IOSDRIVR on z/OS, 31bit storage is used so the
dynamic calculations allow for more storage. For z/OS, use of INITIAL IOMODE EXCPVR or
IOSDRIVR results in CP virtual storage being fixed in real storage while it is allocated, so
allowing more storage can increase real storage utilization.
SET STORAGE overrides subsequent dynamic changes by TDP, and can prevent additional
CPs from being started. If the specified value is higher than the current maximum, any CP
waiting for buffers will immediately try again to obtain them.
Once SET STORAGE is invoked, there is no way to revert to dynamic calculation by TDP
without restarting TDP.
The current values can be displayed with the DISPLAY STORAGE command.
SET STORAGE is intended for use in consultation with Teradata Customer Support
personnel.
Example
SET STORAGE CP 2000000
204
SET USERCS
Purpose
Establishes characteristics of a user-defined character set that is available on the Teradata
Database.
Syntax
SET USERCS
name
DDNAME
DD
ddn
FE0CQ101
Description
name
ddn
z/OS or VOS3 JCL DD statement name in the TDP JCL that is associated with
a file that contains the character set attributes.
Usage Notes
This command does not create a new user-defined character set on the Teradata Database, it
only provides characteristics of such a user-defined character set that are needed by TDP.
The existence of the character set on the Teradata Database is not validated during execution
of the command. Such errors are reported if an attempt is made to use the character set.
Character sets supplied by the Teradata Database cannot be altered using this command. If the
specified character set name is that of a character set supplied by the Teradata Database, no
error will be generated but the definition will never be used; the standard definition will be
used.
If the character set name had been previously defined, that definition is replaced.
The DISPLAY USERCS command can be used to display the user defined character sets that
have been defined to TDP.
For more information on character sets, see Defining a Character Set on page 233.
Example
SET USERCS KOREAN_EBCDIC933 DDNAME TDPCS
Completion
TDP2832 KOREAN_EBCDIC933 HAS BEEN DEFINED
205
SET USERID
Purpose
Changes the Database userid that TDP uses to establish its internal sessions. The default value
for the TDP userid character set is EBCDIC.
Syntax
SET USERID name
FZAPB042
Description
name
Name of a database userid consisting of characters from the TDP character set,
specified by the SET CHARSET command.
When supported by the character set, you can include EBCDIC double-byte
characters if you:
Precede each contiguous group of characters with the Shift-out control
character, X0E, and
Follow the group with the Shift-in control character, X0F
The Database processes the userid characters left to right, even for character
sets normally associated with right to left languages such as Hebrew or Arabic.
Usage Notes
Unless this command is specified, TDPUSER is assumed. The specified name is used when
TDP internal sessions are next established (either when the CPs are initially started or as the
result of an ENABLE IRF command).
The current character set for the TDP userid can be displayed using the DISPLAY TDP
command.
The existence of the TDP character set in the database is not validated during the execution of
this command. Such errors are reported when the information is subsequently used in
attempting to establish TDP internal sessions. The specified userid must already exist in the
Database and have the following privileges:
206
Example 1
SET USERID ANOTHERUSERID
Example 2
SET USERID TDPUSER
Completion Message
TDP0393 TDP USERID HAS BEEN SET TO name
Error Messages
Possible error messages are:
TDP0504
TDP0506
TDP0535
TDP0536
TDP0502
207
SHUTDOWN
Purpose
Stops TDP operation.
Syntax
SHUTDOWN
ORDERLY
O
CANCEL
QUICK
FZAPB045
Unlike other commands, the SHUTDOWN command has no abbreviation. Because the
impact of the command is irreversible, requiring it to be fully specified minimizes accidental
use.
where:
Syntax Element
Description
CANCEL
QUICK
ORDERLY
Disables logons and waits for sessions to end before shutting down
TDP.
This is the default.
Usage Notes
While this kind of
shutdown
is in progress . . .
Orderly
QUICK or CANCEL
Quick
CANCEL
To obtain a dump in . . .
z/OS
z/OS DUMP (for an SVC dump), or z/OS CANCEL with the DUMP
argument.
VOS3
208
Example 1
SHUTDOWN CANCEL
Example 2
SHUTDOWN QUI
Completion Message
TDP510 QUICK SHUTDOWN REQUEST ACCEPTED
Example 1
SHUTDOWN O
Completion Message
TDP0510 ORDERLY SHUTDOWN REQUEST ACCEPTED
Example 1
SHUTDOWN
209
START CP
Purpose
Begins communication with the Teradata Database using a specified channel device.
Syntax
START
STA
cpname
CCU
CIC
2416A008
where:
Syntax Element
Description
cpname
CCU
CIC
Usage Notes
If an ATTACH CP command has not been issued previously, it is executed implicitly.
Before TDP will use the CP, a RUN command must be issued and complete.
The devices for an IFP can be either explicitly or dynamically allocated. Dynamic allocation by
TDP is the normal choice since only the START command is required. Explicit allocation
requires that the following be performed before the START command is issued:
If using this operating
system . . .
z/OS
VOS3
Do the following . . .
In the JCL procedure used to run TDP, include one DD statement for each
of the two devices for the CP. Each statement is in the form:
//CPnnn DD UNIT=nnn
In one DD statement the nnn is the even device number; for the other it is
the odd device number.
For four digit device numbers, z/OS requires that the UNIT parameter
contain a slash: UNIT=/nnnn
210
Example
START CPC308
Completion Message
The following message confirms that the command has been validated.
TDP1363 START COMMAND ACCEPTED FOR CPC308
The following message subsequently confirms that the command has been completed.
TDP1354 "CPC308" HAS BEEN STARTED
211
cpname
CIC
CCU
2416A012
where:
Syntax Element
Description
cpname
CIC
CCU
Usage Notes
The START CP command must be executed for at least one CP before TDP can accept any
requests from applications.
Once executed, the START CP command initiates processing that implicitly ATTACHes
(establishes a logical and a physical attachment between) the CP to TDP, if the CP was not
previously ATTACHed
The devices for an CP can be either explicitly or dynamically allocated. Dynamic allocation is
the more usual operation since no explicit allocation is required: TDP automatically allocates
the required devices. Explicit allocation requires that the following be performed prior to
STARTing the CP:
212
Do the following . . .
z/OS
Include two DD statements in the JCL procedure that is used to start TDP.
VOS3
For either operating system, IFPnnnn corresponds to the cpname used in the START
command. IFPnnn and IFP0nnn are equivalent. That is, the command can specify one form
and the static system definition can specify the other.
If you issue the START CP command immediately after a STOP CP command, the CP must
complete the stop process before it can start again.
Example
STA IFP490
Completion Message
IFP490 SUCCESSFULLY STARTED
213
START POOL
Purpose
Establishes and enables a session pool.
Session pools are not supported if the application provided any CLIv2 Workload specification
or used the Utility-workload DBCAREA option.
Session pools are not supported for utilities such as FastLoad, MultiLoad, Archive/Recovery,
and FastExport. Because utility programs use special internal run strings, they do not work
with session pools.
Syntax
START
STA
POOL
POO
DDNAME
filename
DD
A
number
NUMSESS
NUM
JOBNAME
jobname
JO
A
B
ID
runstring
RUN
RU
poolid
C
CHARSET
character_set_name
CH
C
D
NULLPSWD
session_attributes
NUL
D
LOGON
username
LO
,password
,' acctid '
FZAPC047
where:
Syntax Element
Description
filename
z/OS data set file, defined in the TDP startup procedure, that contains
START POOL commands.
If specified, it must be the only argument specified by the command.
number
214
Syntax Element
Description
Number can be no larger than the maximum number of sessions
(MAXSESS) that has been set by the installation, or the session
capacity of the Teradata Database
jobname
Indication that the pool is restricted to a job named jobname. (You can
establish several pools with the same logon string, but with different
job names.)
runstring
poolid
character_set_name
EBCDIC
EBCDIC037_0E
EBCDIC273_0E
EBCDIC277_0E
HANGULEBCDIC933_1II
KANJIEBCDIC5026_0I
KANJIEBCDIC5035_0I
KATAKANAEBCDIC
SCHEBCDIC935_2IJ
TCHEBCDIC937_3IB
215
Syntax Element
Description
ARABIC1256_6A0
ASCII
CYRILLIC1251_2A0
HANGUL949_7R0
HANGULKSC5601_2R4
HEBREW1255_5A0
KANJIEUC_0U
KANJISJIS_0S
LATIN1_0A
LATIN1250_1A0
LATIN1252_0A
LATIN1252_3A0
LATIN1254_7A0
LATIN1258_8A0
LATIN9_0A
SCHGB2312_1T0
SCHINESE936_6R0
TCHBIG5_1R0
TCHINESE950_8R0
THAI874_4A0
UTF8
Or UTF16
Or any user-defined character set established using the TDP SET
USERCS command.
Although other names can be specified, their characteristics (the
codepoint for the space, comma, apostrophe, and quotation symbols;
the codepoints for control characters; the encoding scheme, and the
rules for monocasing) are assumed to be as for EBCDIC.
This character set also defines the characters that can be used in the
logon string of the LOGON operand. If omitted, the default TDP
character set is used to process this logon string.
Since the character set must be known prior to the interpretation of
the LOGON value, if CHARSET is needed it should precede LOGON
to ensure proper parsing. If CHARSET for other than the TDP default
character set follows LOGON, the command is not rejected but a
TDP2712 warning message is issued since the logon string can not be
properly interpreted, depending on the characteristics of the character
set.
NULLPSWD
216
Syntax Element
Description
The deprecated specification NULLPWD is equivalent to
NULLPSWD.
session_attributes
List of available attributes for all sessions for this pool, as described
below.
If the Teradata Database does not support a specified attribute, the
pool does not start. If an attribute is not specified, but the Teradata
Database has been configured with a default attribute, the default is
used.
Attribute
Function
TWOPC
TERADATA
ANSI
DATEFORM
217
Syntax Element
Description
DEFAULT
Indicates that the Teradata
Database uses the default date
format associated with the
user/Teradata Database. Since
TDP does not know which
format the Teradata Database
will use when DEFAULT is
specified, only sessions that
also specify (or default to)
DEFAULT will use the pool.
If DATEFORM is omitted,
DATEFORM DEFAULT is
assumed.
SQL2
SQL3
STMTSTAT
username ,password
,acctid
218
Syntax Element
Description
The userid, password, and account name each consist of characters
from the current TDP character set (SET CHARSET). When
supported by the current character set, EBCDIC double-byte
characters can be included by preceding each contiguous group of
them with the Shift-out control character, X0E, and following this
group with the Shift-in control character, X0F. Neither commas,
apostrophes, nor quotation marks can be specified as double-byte
characters.
The Database processes the logon string characters left to right, even
for character sets normally associated with right to left languages such
as Hebrew or Arabic.
If the TDP default character set is not appropriate for the logon string,
the proper character set must be specified by the CHARSET operand.
If CHARSET for other than the TDP default character set follows
LOGON, the command is not rejected but a TDP2712 warning
message is issued since the logon string may not be properly
interpreted, depending on the characteristics of the character set.
The deprecated specification STRING is equivalent to LOGON.
While the Teradata Database permits spaces outside apostrophes
before a comma in the logon string, they may not be present since
such spaces in TDP command syntax are delimiters and indicate the
end of the logon string. However, the presence of such spaces in the
logon string are ignored when comparing it to this logon string.
Usage Notes
A START POOL command is not processed by TDP until at least one START CP command
and the RUN command has been processed (that is, until at least one CP has been started).
Thus, if a START POOL command occurs in the TDP startup data set (TDPPARM) before
either of these commands, the START POOL command is not processed until a CP is attached
and started.
A START POOL command may not be processed for one of the following reasons:
A pool having the same logon string (and jobname, if appropriate) already exists.
When a character set that is not valid is specified, the following message displays:
TDP2711 THE "CHARSET" VALUE IS NOT SUPPORTED
A START POOL command is rejected if a pool already exists with the same logon string JOB
specification and session attributes (TWOPC, ANSI/TERADATA, DATEFORM, SQL2/SQL3,
STMTSTAT).
219
When a START POOL command exceeds the maximum length (128 characters) allowed
for a console command. Because a logon string can contain up to 278 bytes, including
commas, apostrophes, and quotation marks (a maximum of 92 bytes for each
specificationusername, password, account identifier), it is possible that the START
POOL command can exceed 128 characters.
When it is necessary to protect the security of a password that is used in the logon string of
a START POOL command.
TDP supports sequential files with fixed or varying length unspanned record formats and any
logical record length supported by the device/operating system. If the records are fixed 80byte
records, columns 73 through 80 are reserved for traditional sequence numbers and are
ignored; otherwise, the entire record is used. Records containing only blanks are ignored. If
the first non-blank characters of a record are /*, the record is considered a comment and
ignored. Commands can be continued onto multiple records using continuation characters. If
the last non-blank character is a minus sign, the minus sign is discarded and the command
continues with the first column of the next record. If the last non-blank character is a plus
sign, the plus sign is discarded and the command continues with the first non-blank column
of the next record. A command can be continued onto any number of records.
While all characters for all records are normally EBCDIC, the value of the LOGON option can
be in another character set. Care must be taken to ensure that the final byte of the logon string
appearing at the end of a command is not a value that could be taken as an EBCDIC
continuation character when no continuation is intended. To prevent this, a semicolon can be
added to the end of any command. The semicolon is discarded before the command is
processed.
220
NULLPSWD indicates that Teradata Database can process logon requests for the sessions even
if they do not supply a password. This requires that the userid be GRANTed WITH NULL
PASSWORD authority on the Teradata Database. Refer to Security Administration. The DBC
userid always requires a password so NULLPSWD is effectively ignored for this userid.
Use of NULLPSWD Option
Understand that using NULLPSWD in conjunction with GRANTing WITH NULL
PASSWORD allows unrestricted access to that userid unless a TDPUAX or TDPLGUX exit is
provided to control use of this userid by other means that a password. If exits are used to
provide such control, should they be disabled, either explicitly by the DISABLE command, or
implicitly as a result of TDPLGUX ABENDing, access is unrestricted.
Completion Messages
When the START POOL command is accepted for processing by TDP, the following message
is displayed:
TDP0866 ADDING number SESSIONS TO POOL ID: poolid
When the START POOL command has been processed, the following message is displayed:
TDP0881 POOL ID: poolid IS NOW ENABLED
Example
The following example demonstrates how to set up session pools to be used by an application.
In this example, nine session pools are established for Accounts Receivable, Accounts Payable,
and Finance. These pools are accessed only via transactions from JOB CICS.
Under z/OS or VOS3, the following DD statements are added to the startup JCL for TDP:
.
.
.
//TDPPARM
//ACCTREC
//ACCTPAY
//FINANCE
.
.
.
DD
DD
DD
DD
DSN=DBC.TDPPARM,DISP=SHR
DSN=DBC.ACCTREC,DISP=SHR
DSN=DBC.ACCTPAY(POOLPARM),DISP=SHR
DSN=DBC.FINANCE(POOLPARM),DISP=SHR
The <dbcpfx>.TDPPARM data set and the TDPn TDPCMD fm file contain the following
commands:
ENABLE LOGONS
START CP6B0
START CP6B2
START POOL DDNAME ACCTREC
START POOL DDNAME ACCTPAY
START POOL DDNAME FINANCE
RUN
These commands are all echoed to the operator console. The commands contained in the data
sets or files that are identified by the ddnames or FILEDEFs referenced by the START POOL
commands are not echoed to the system console.
221
Note that these session pools are established only after CP6B0 andCP6B2 are started.
222
STOP CP
Purpose
Ends communication with the Teradata Database using a specified channel device.
Syntax
STOP
STO
cpname
2416A009
where:
Syntax Element
Description
cpname
Usage Notes
The STOP CP command can be used only when the CP is STARTEed.
A STOP command for a CCU-type will complete only after a response is received for each
request active on that CP when the STOP command was executed.
A STOP command for a CIC-type CP will complete only after all sessions on the dependentSP logoff, which might require that some session pools be STOPped and IRF be DISABLEd
and re-ENABLEd.
Example
STOP CPC308
Completion Messages
The following message confirms that the command has been validated:
TDP1363 STOP COMMAND ACCEPTED FOR CPC308
The following message subsequently confirms that the command has been completed:
TDP1355 "CPC308" HAS BEEN STOPPED
223
cpname
2416A009
where:
Syntax Element
Description
cpname
Usage Notes
The purpose of the STOP IFP command is to stop an CP for servicing without shutting down
the TDP to which it is attached. It can also be used if an CP is to be detached from the current
TDP and then attached to another TDP. In this case, once the CP is stopped (logically
detached from the current TDP), it must be physically detached from the current TDP using
the DETACH CP command.
All activity on the CP must end before the CP stops. On some versions of the Teradata
Database, the CP stops when an active request completes. On other versions of the Teradata
Database, all sessions on SPs associated with the CP must end before the CP will stop. In the
latter case, in addition to application sessions, this includes any unassigned session pool
sessions and any TDP internal sessions. It may be necessary to stop relevant session pools
using the STOP POOL command and relevant TDP internal sessions using the DISABLE IRF
command. The START POOL and ENABLE IRF commands can then be used to restore the
necessary sessions.
Example
STO IFP490
Completion Messages
TDP1363 STOP IFP COMMAND ACCEPTED
224
STOP POOL
Purpose
Ends one or more session pools in an orderly manner.
Syntax
STOP
STO
POOL
ID poolid
ALL
FZAPB049
where:
Syntax Element
Description
poolid
ALL
Usage Notes
The STOP POOL command does the following:
Waits for any pool session that is in use to run until the application logs off. The session is
then logged off from the Teradata Database. When all pool sessions are logged off, the pool
is removed.
To terminate existing pool sessions without waiting for them to finish and disable the pools
(but not eliminate them), use the LOGOFF POOL command.
Example 1
STO POOL ID: ACTR04
Example 2
STO POOL ALL
Completion Messages
When the STOP POOL command is accepted for processing by TDP, the following message is
displayed:
TDP0867 STOPPING POOL ID poolid
When the STOP POOL command has been processed, the following message is displayed:
POOL ID: poolid IS NOW STOPPED
225
226
APPENDIX A
This appendix contains details about the channel processor device and channel error log.
Record Format For CPs That Require the CCU Operand in the START Command
Record Format For CPs That Do Not Require the CCU Operand in the START
Command
Sense Data For CPs That Require the CCU Operand in the START Command
Sense Data For CPs That Do Not Require the CCU Operand in the START Command
227
NONE
DAY YEAR
DATE- 107 60
JOB
HH MM SS.TH
TIME-15 34 08 72
IDENTITY- TDP3
01 33 D0 E0 60 00 00 14
00 26 50 70 0E 00 00 14
FZAPA090
Record Format
For CPs That Require the CCU Operand in the START Command
The following table provides the format and content of the EREP record for devices of a CP
that require the CCU operand on the START command:
228
Byte #
(Dec)
Content Description
Hexadecimal 08, indicating the time and date are as formatted by the TIME service,
plus a hexadecimal 10 if at least Extended Architecture.
57
Not used.
8 11
12 15
16 23
CPU identification.
Byte #
(Dec)
Content Description
24 31
TDP jobname.
32 39
40 47
48
Hexadecimal 03, indicating that three double words of device-dependent are available.
49
Not used.
50 & 51
52 55
56 & 57
Not used.
58 & 59
60 & 61
Not used.
62 & 63
64 87
88
Byte # (Dec)
Content Description
64 67
68
69
70 & 71
Hexadecimal CP number.
72 79
EBCDIC TDPid.
80
81 87
Not used.
Sense byte.
If at least Extended Architecture, then:
Byte # (Dec)
Content Description
89 100
101 104
229
For CPs That Do Not Require the CCU Operand in the START Command
The following table provides the format and content of the EREP record for devices of a CP
that do not require the CCU operand on the START command:
230
Byte #
(Dec)
Content Description
Class/Source of record
System/Release level
25
Not used
Reserved
8 11
System date
12 15
System time
16
17 19
20 & 21
22 & 23
Not used
24 31
TDPid
32 39
Failing CCW
40 47
48
49 51
Secondary control unit address associated with final retry of failing I/O device
52 55
57 59
Primary control unit address of device being used when failure occurred
60 & 61
Retry count
62 & 63
64 87
Sense data
88 & 89
Not used
Sense Data
For CPs That Require the CCU Operand in the START Command
The following table lists the sense bytes and device status bytes as returned in the CSW for
devices of CPs that require the CCU operand on the START command:
Sense
Byte
Status
Byte
Description
20
0E
10
0E
08
0E
For CPs That Do Not Require the CCU Operand in the START Command
The following table lists sense bytes 0 and 1, along with the corresponding device status byte
(in hexadecimal) as returned in the CSW for devices of CPs that do not require the CCU
operand on the START command:
Sense Byte
Status
Byte
Description
10
01
0E
08
05
0E
80
06
0E
80
07
0E
80
08
0E
80
09
0E
80
0C
0E
80
0D
0E
80
0E
0E
80
10
0E
80
11
0E
80
14
0E
20
19
0E
10
28
0D
231
232
Sense Byte
Status
Byte
Description
00
30
22
00
33
85
80
39
0E
80
43
0E
WriteCount specified a max block size too small for the Teradata
Database
80
44
0E
APPENDIX B
This appendix provides an overview of how character sets are defined that can be applied
using the SET USERCS command.
Directives
Each statement contains a directive or is associated with a directive that identifies the purpose
of the statement. A directive is analogous to a command but different terminology is used to
prevent confusion with true TDP commands.
The following directives are supported:
Table 3: Directives
Directive
Function
CHAR
CHARSET
END
233
Directive
Function
MONOCASE
SANITIZE
Defines valid characters for TDP messages sent using operating system facilities.
UNICODE
Defines the syntactic characters and characters that have both lower and upper
case.
A file describes one or more character sets, although only one description is used by each SET
USERCS command.
When multiple descriptions are present, each begins with a CHARSET directive and ends with
the next CHARSET directive, the END directive, or the last record in the file.
The CHAR, MONOCASE, SANITIZE, and UNICASE directives can appear in any order
within a description. If a CHAR, MONOCASE, SANITIZE, or UNICODE directive appears
before a CHARSET directive, then a character set description is implicitly begun -- in effect, a
CHARSET directive with no operands is assumed.
The following sections provide information and syntax diagrams for each directive. Refer to
Appendix D: How to Read the Syntax Diagrams, for additional information on syntax
diagrams.
234
CHAR
The CHAR directive defines the syntactic characters of importance to TDP.
Syntax
CHAR SPACE xx
COMMA xx
COM xx
DBLQUOTE xx
DBL xx
APOSTROP xx
APO x
...
JCM_D001
Usage Notes
The length of each value is determined by the encoding scheme for the character set. For the
characters of interest to TDP, the length is always two except for UTF16 encoding, for which
the length is four. The CHAR directive can be specified more than once for each character set.
If the same character is defined more than once for a character set (either on a single CHAR
directive, on multiple CHAR directives, or on a CHAR and a UNICODE directive), the last
value is used. All four characters must be defined to form a complete character set description.
If no CHARSET directive precedes CHAR, then a character set description is implicitly begun
-- in effect, a CHARSET directive with no operands is assumed.
Example
Define the relevant syntactic characters for IBM Code Page 833.
CHAR SPACE 40 COMMA 6B APOSTROP 7D DBLQUOTE 7F
235
CHARSET
The CHARSET directive explicitly begins a definition and possibly the encoding scheme.
Syntax
CHARSET
CHARS
NAME
NAM
character_set_name
ENCODING
ENC
EBCDIC
E
IBMSOSI
I
ASCII
A
BIGFIVE
R
SJIS
S
UHC
EUC-CN
EUC-KR
T
EUC-JP
U
UTF8
UTF-16
2417C005
Usage Notes
NAME identifies the character set to which the description applies. The name may include a
standard suffix that defines the encoding scheme. The standard suffix consists of an
underscore, a number not relevant to CLIv2, the encoding character (A, E, I, R, S, T, or U),
and an optional character not relevant to CLIv2. Each suffix corresponds to an ENCODING
operand value:
E - EBCDIC
I - IBMSOSI
A - ASCII
R - BIGFIVE
S - SJIS
T - EUC-CN or EUC-KR
U - EUC-JP
ENCODING optionally identifies the encoding scheme for the character set. If omitted, the
character set must contain a standard suffix that indicates the encoding. If such a suffix exists,
then the encoding cannot be overridden using this operand. The following character sets are
available in TDP.
236
ENCODING
Meaning
Characteristics
EBCDIC
IBMOSI
IBM Shift-out/Shift-in
ASCII
BIGFIVE
EUC-CN
EUC-JP
EUC-KR
SJIS
237
ENCODING
Meaning
Characteristics
UHC
UTF8
UTF16
When the NAME operand is specified, if this name does not match the character set name
specified on the SET USERCS command, this directive and all directives until the next
CHARSET directive are ignored. When the NAME operand is not specified, then this directive
is used, which implies that any subsequent CHARSET directives in the file will never be
processed since this one will always be used.
While all codepoints are reflected to and from Teradata Database, for character sets that allow
mixtures of single and multi-byte characters, only the single-byte characters are meaningful to
TDP.
Example
Begin definition for IBM Code Page 833, the single-byte component for IBM CCSID 933.
CHARSET NAME KOREAN_EBCDIC933 ENCODING IBMSOSI
238
END
The END directive ends processing of records in the file.
Syntax
END
JCM_D003
Usage Notes
Any remaining records in the file are not read.
Example
END
239
MONOCASE
The MONOCASE directive optionally defines characters that have both lower and upper case.
If this information is not supplied, then no monocasing is performed.
Syntax
MONOCASE
MON
JCM_D004
Usage Notes
The actual monocase information is contained on statements that immediately follow the
MONOCASE directive. Each such statement has the following syntax:
target_codepoint1<-target_codepoint2>: data_codepoint ...
where:
Syntax Element
Function
target_cod epoint1
target_codepoint2
data_codepoint
240
If the same character is defined more than once for a character set (either on a MONOCASE
directive, or on a MONOCASE and a UNICODE directive), the last value is used.
If no CHARSET directive precedes MONOCASE, then a character set description is implicitly
begun -- in effect, a CHARSET directive with no operands is assumed.
Example
Define the monocase information for IBM Code Page 833, the single-byte component for
IBM CCSID 933.
MONOCASE
81-89: C1
91-99: D1
A2-A9: E2
241
SANITIZE
The SANITIZE directive optionally defines valid characters for TDP messages sent using
operating system facilities. Since all such facilities support only EBCDIC, the sanitizing
process ensures that unsupported or non-EBCDIC characters are replaced by an acceptable
character (the Hyphen character (hexadecimal 60) is the TDP convention). If this information
is not supplied, then a default is chosen based on the encoding scheme.
Syntax
SANITIZE
SAN
JCM_D005
Usage Notes
The actual sanitize information is contained on statements that immediately follow the
SANITIZE directive. Each such statement has the following syntax:
target_codepoint1<-target_codepoint2>: data_codepoint ...
where:
Syntax Element
Function
target_codepoint1
target_codepoint2
242
The order of data codepoints among different statements is not significant. If the same
character is defined more than once for a character set, the last value is used.
If no CHARSET directive precedes SANITIZE, then a character set description is implicitly
begun -- in effect, a CHARSET directive with no operands is assumed.
Example
Provide the sanitize information for IBM Code Page 833, the single-byte component for IBM
CCSID 933. The valid characters which do not correspond to standard EBCDIC are converted
to Hyphens
SANITIZE
0E-0F: 4C
42-49: 60
52-59: 60
62-69: 60
72-78: 60
8A-8F: 60
9A-9F: 60
AA-AF: 60
B2: 60
BA-BC: 60
E0: 60
6E
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60
60 60
60 60
60 60
60
60 60
243
UNICODE
The UNICODE directive defines the syntactic characters and characters that have both lower
and upper case. It may be possible to use it to provide the same information as the CHAR and
MONOCASE directives. Since UNICODE is required to add a user-defined character set to
CLIv2, it is also supported by TDP to potentially simplify use of user-defined character sets.
The relevant syntactic characters in the character set are those that have the Unicode
codepoints of 0020 (Space), 0022 (Quotation Mark), 0027, (Apostrophe), and 002C
(Comma). The monocase information in the character set are those that have the Unicode
codepoints of 0061 through 007A (lower case) and 0041 through 005A (upper case).
Codepoints beyond those relevant to CHAR and MONOCASE are ignored. If these are not
the characteristics of the character set, then CHAR and MONOCASE must be used instead of
UNICODE.
Syntax
UNICODE
UNI
JCM_D006
Usage Notes
The actual information is contained on statements that immediately follow the UNICODE
directive. Each such statement has the following syntax:
target_codepoint1<-target_codepoint2>: data_codepoint ...
where:
Syntax Element
Function
target_codepoint1
Specifies the first character in the user-defined character set that is defined
on this statement.
target_codepoint2
244
All statements after the UNICODE directive that contain a colon are associated with the
UNICODE directive. Lack of a colon indicates that the statement is a new directive and ends
that UNICODE directive.
The order of data codepoints among different statements is not significant.
The UNICODE directive can be specified only once for each character set.
If the same character is defined for the same purpose more than once for a character set
(either on a CHAR directive, on a MONOCASE directive, or on a UNICODE directive), the
last value is used.
If no CHARSET directive precedes UNICODE, then a character set description is implicitly
begun -- in effect, a CHARSET directive with no operands is assumed.
Example
Define the Unicode equivalents for IBM Code Page 833, the single-byte component for IBM
CCSID 933.
UNICODE
40-47: 0020
48-4F: 11AD
50-57: 0026
58-5F: 11B4
60-67: 002D
68-6F: 110A
70-77: 005B
78-7F: 1112
80-87: 005D
88-8F: 0068
90-97: 001A
98-9F: 0071
A0-A7: 00AF
A8-AF: 0079
B0-B7: 005E
B8-BF: 001A
C0-C7: 007B
C8-CF: 0048
D0-D7: 007D
D8-DF: 0051
E0-E7: 20A9
E8-EF: 0059
F0-F7: 0030
F8-FF: 0038
001A
1103
001A
11B5
002F
110B
001A
0060
0061
0069
006A
0072
007E
007A
001A
001A
0041
0049
004A
0052
001A
005A
0031
0039
115F
00A2
1104
0021
11B6
00A6
110C
003A
0062
1161
006B
1167
0073
116D
005C
1173
0042
001A
004B
001A
0053
001A
0032
001A
1100
002E
1105
0024
1106
002C
110D
0023
0063
1162
006C
1168
0074
116E
001A
1174
0043
001A
004C
001A
0054
001A
0033
001A
1101
003C
11B0
002A
1107
0025
110E
0040
0064
1163
006D
1169
0075
116F
001A
1175
0044
001A
004D
001A
0055
001A
0034
001A
1115
0028
11B1
0029
1108
005F
110F
0027
0065
1164
006E
116A
0076
1170
001A
001A
0045
001A
004E
001A
0056
001A
0035
001A
1102
002B
11B2
003B
1121
003E
1110
003D
0066
1165
006F
116B
0077
1171
001A
001A
0046
001A
004F
001A
0057
001A
0036
001A
11AC
007C
11B3
00AC
1109
003F
1111
0022
0067
1166
0070
116C
0078
1172
001A
001A
0047
001A
0050
001A
0058
001A
0037
001A
245
246
APPENDIX C
Parcel Flavors
Parcel Structure
A parcel is a discrete physical unit of information transferred between TDP and the Teradata
Database. It consists of two parts: the header and the body, which can be null.
Body
Header
GQ02J014
Parcel Header
There are two formats of parcel headers. Definitions for the parcel headers are located on a
release tape as shown below:
For this language . . .
IBM Assembler
Flag
Flavor
Length
GQ02J015
Field Name
Offset
Length
Description
PH0FLAVR
00
1 bit
PH0FLAVR
0.1
15 bits
247
Field Name
Offset
Length
Description
PH0LEN
02
2 bytes
Flag
Unused
Flavor
Length
GQ02J016
Field Name
Offset
Length
Description
PH1FLAVR
00
1 bit
PH1FLAVR
0.1
15 bits
PH1FILL1
02
2 bytes
PH1LEN
04
4 bytes
A response will only contain a parcel with the enlarged header if the APH-response-permitted
option was specified and the Teradata server supports the alternate header for that parcel.
Furthermore, parcels whose length is less than or equal to 65535 can use either header format.
Parcel Flavors
Definitions for the parcel flavors and content of the body headers are located on a release tape
as shown below:
For this language . . .
IBM Assembler
Table 6 provides the flavor number and name of the parcelsused by CLIv2 or CLIv2
applications.
248
Flavor
Parcel Name
Flavor
Parcel Name
Req
RunStartup
Data
Respond
KeepRespond
Cancel
Success
Failure
10
Record
11
EndStatement
12
EndRequest
13
FMReq
14
FMRunStartup
17
Ok
18
Field
19
NullField
20
TitleStart
21
TitleEnd
22
FormatStart
23
FormatEnd
24
SizeStart
25
SizeEnd
26
Size
27
RecStart
28
RecEnd
31
Rewind
32
NOP
33
With
34
Position
35
EndWith
36
Logon
37
Logoff
38
Run
46
PosStart
47
PosEnd
49
Error
68
IndicData
69
IndicReq
71
DataInfo
72
IVRunStartup
85
Options
86
PrepInfo
88
Connect
114
SessionOptions
115
VoteRequest
116
VoteTerm
117
Cmmt2PC
118
Abrt2PC
120
CursorHost
121
CursorDBC
122
Flagger
125
PrepInfoX
128
Multi-TSR
129
SP options
136
UserNameRequest
137
UserNameResponse
140
MultipartData
141
EndMultipartData
249
Flavor
Parcel Name
Flavor
Parcel Name
142
MultipartIndicData
143
EndMultipartIndicData
144
MultipartRecord
145
EndMultipartRecord
146
DataInfoX
147
MultipartRunStartup
148
MultipartReq
150
ElicitData
151
ElicitFile
152
ElicitDataReceived
153
ExtendedRespond
154
ExtendedKeepRespond
157
Keep-Position
158
RowPosition
159
OffsetPosition
164
ErrorInformation
169
StatementInformation
170
StatementInformationEnd
171
Result_summary
172
ResultSet
175
ResultSetCursor
178
Elicit Name
179
ResultSetSelection
189
ClientAttributes
190
FetchRowCount
192
StatementError
Parcel Types
There are two parcel types:
250
Flavor
Parcel Name
Use
1*
Req
RunStartup
3*
Data
4*
Respond
Flavor
Parcel Name
Use
5*
KeepRespond
Cancel
13*
FMReq
14
FMRunStartup
31
Rewind
32
NOP
Performs no operation.
36
Logon
Establishes a session.
37
Logoff
Terminates a session.
38
Run
68*
IndicData
69*
IndicReq
71*
DataInfo
72
IVRunStartup
85*
Options
88*
Connect
114
SessionOptions
Session options.
115
VoteRequest
116
VoteTerm
117
Cmmt2PC
118
Abrt2PC
120*
CursorHost
128
Multi-TSR
136
UserNameRequest
251
Flavor
Parcel Name
Use
137
UserNameResponse
140*
MultipartData
141*
EndMultipartData
142*
MultipartIndicData
143*
EndMultipartIndicData
146*
DataInfoX
147*
MultipartRunStartup
148*
MultipartReq
153*
ExtendedRespond
154*
ExtendedKeepRespond
157
KeepPosition
158
RowPosition
159
OffsetPosition
169
StatementInformation
170
StatementInformationEnd
175
ResultSetCursor
178*
Elicit Name
179
ResultSetSelection
189
ClientAttributes
190*
FetchRowCount
252
Flavor
Parcel Name
Use
Success
Failure
Indicates that the specified statement has failed and the entire
transaction was rolled back.
10
Record
(Record Mode)
10
Record
(Indicator Mode)
11
EndStatement
Delimits the end of the results from the specified Teradata SQL
statement.
12
EndRequest
17
Ok
18
Field
19
NullField
20
TitleStart
21
TitleEnd
22
FormatStart
23
FormatEnd
24
SizeStart
25
SizeEnd
26
Size
27*
RecStart
28*
RecEnd
253
254
Flavor
Parcel Name
Use
33*
With
34*
Position
35*
EndWith
Delimits the end of a set of parcels for the specified WITH clause.
46*
PosStart
47*
PosEnd
49*
Error
71*
DataInfo
86*
PrepInfo
121*
CursorDBC
122*
Flagger
125*
PrepInfoX
137
UserNameResponse
144*
MultipartRecord
145*
EndMultipartRecord
146*
DataInfoX
150*
ElicitData
151*
ElicitFile
152*
ElicitDataReceived
164
ErrorInformation
169
StatementInformation
170
Statement
InformationEnd
171
ResultSummary
Flavor
Parcel Name
Use
172
ResultSet
178*
ElicitName
192*
StatementError
Parcel Descriptions
This section describes the following parcels generated by user applications and the Teradata
Database.
Abrt2PC
Cancel
Client Attributes
Connect
Cmmt2PC
FMRunStartup
IVRunStartup
Logoff
Logon
Multi-TSR
NOP
OffsetPosition
ResultSet
ResultSet Cursor
Rewind
RowPosition
Run
RunStartup
SessionOptions
UserNameRequest
UserNameResponse
VoteRequest
VoteTerm
Abrt2PC
Purpose
The Abrt2PC parcel aborts the current transaction for a 2PC session. CLIv2 creates this parcel
at the direction of the coordinator. The parcel can be submitted whenever there is an open
transaction.
255
Usage Notes
Use of this parcel requires Teradata Database for UNIX version 2 release 2 (or later), or
Teradata DBS for TOS version 1 release 5 (or later).
Parcel Data
Table 9 lists field information for Abrt2PC Parcel.
Table 9: Abrt2PC Parcel Field Information
Flavor
Parcel
Body
Length
118
none
Cancel
Purpose
The Cancel parcel terminates Teradata Database output for the request, or cancels segments of
request data previously sent.
Usage Notes
The parcel is generated by CLIv2 at the direction of the application.
When used to terminate Teradata Database output, this parcel deletes spool files that contain
the results of a Teradata request. The response is an End Request parcel.
When used to cancel segments of a request, this parcel deletes segments that were previously
received by the Teradata Database. The response is a Failure parcel.
Parcel Data
Table 10 lists field information for the Cancel parcel.
Table 10: Cancel Parcel Filed Information
256
Flavor Field
Body Parcel
Length
none
ClientAttributes
Purpose
Provides descriptive information when establishing a session.
Table 11: ClientAttributes Parcel Information
TRDSPBCA
Flavor Field
Mnemonic
189
TRDSPFCA
Field
Length
Value
PBCAID
An attribute id
PBCALEN
From one to three attributes may be defined, each beginning with the PBCAID and
PNCALEN fields described above.
Table 12: Character Attributes
TRDSAACX
Field
Length
Value
PBCACXH
4 bytes
PBCACXC
1 byte hexadecimal
PBCACXTX
Attribute id
Mnemonic
Value
24
PBCAI2R
CLIv2 release
25
PBCAID
26
PBCAIAW
257
Cmmt2PC
Purpose
The Cmmt2PC parcel commits the current in-doubt transaction for a 2PC session.
Usage Notes
Teradata Database for UNIX version 2 release 2 (or later), or Teradata DBS for TOS version 1
release 5 (or later) is required to use this parcel.
CLIv2 creates this parcel at the direction of the coordinator.
Submit the Cmmt2PC parcel after a Success response has been returned for a VoteRequest
parcel.
The return results are as follows:
Not in-doubt
Parcel Data
Table 14 lists field information for Cmmt2PC.
Table 14: Cmmt2PC Parcel Field Information
Flavor Field
Body Parcel
Length
117
none
Connect
Purpose
The Connect parcel establishes a connection between an application and a specific Database
partition that is used for running Teradata SQL.
Usage Notes
The Connect parcel is sent from the client at the same time that a Logon parcel is sent.
This parcel is generated by CLIv2 on behalf of the application.
The response to a Connect parcel is first a Success parcel and then a RunResponse parcel.
258
Parcel Data
Lists field information for the Connect parcel.
Flavor Field
88
24
PartitionName: 16 bytes
LogonSequence Number: 4 bytes
Function: 2 bytes
Pad: 2 bytes
Fields
PartitionName is the name of the Database partition to which start requests are to be sent.
Function Number
Description
Requests session control allocate a logon sequence number and associate the
newly allocated logon sequence number with the requesting session.
Pad is unused.
FMRunStartup
Purpose
The FMRunStartup parcel executes the users Startup request and returns the results in Field
Mode.
Usage Notes
This parcel is generated by CLIv2 at the direction of the application.
If a startup request is not stored with the data base, the response is an Error parcel with error
code 3747.
Parcel Data
Table 15 provides field information for the FMRunStartup parcel
259
Flavor Field
Body Parcel
Length
14
none
IVRunStartup
Purpose
The IVRunStartup (Indicator Mode Run Startup) parcel executes the users startup request
and returns the results in Indicator Mode. If a startup request is not stored with the Teradata
Database, the response parcel is an Error parcel with error code 3747.
Usage Notes
This parcel is generated by CLI at the direction of the application.
Parcel Data
Table 16 provides field information for the IVRunStartup parcel.
Table 16: IVRunStartup Parcel Field Information
Flavor Field
Parcel Body
Length
72
none
Logoff
Purpose
The Logoff parcel terminates the session.
Usage Notes
This parcel is generated by CLIv2 at the direction of the application.
Parcel Data
Table 17 provides field information for the Logoff parcel.
260
Flavor Field
Parcel Body
Length
37
none
Logon
Purpose
Establishes a session if the userid and password are valid
Usage Notes
If an account is not supplied, the default account for the user is used.
This parcel is generated by CLIv2 at the direction of the application.
Parcel Data
Table 18 provides field information for the Logon parcel.
Table 18: Logon Parcel Field Information
Flavor Field
Body Parcel
Length
36
1 to 6916
LogonString:
1 to 6916
Field Notes
LogonString is a character string containing the following elements:
userid, password[, account]
where
The userid is the users identification. It must consist of at least one character and can consist
of as many as 6916characters. Each character may require 1, 2, or 3 bytes, depending on the
character set used. The userid can be enclosed in apostrophes, each of which requires 1 byte (2
bytes if Unicode).
Note that SQL terminal symbols (such as apostrophes) must always come from the shortest
repertoire; that is 1 byte. Terminal symbols are never 3 bytes.
The userid and password must be separated by a comma.
The password is the users password. It must consist of at least one character, and can consist
of as many as 6916 characters. Each character may require 1, 2, or 3 bytes, depending on the
character set used. The password can be enclosed in quotation marks, each of which requires 1
byte (2 bytes if Unicode).
Teradata Director Program Reference
261
Note that SQL terminal symbols (such as quotation marks) must always come from the
shortest repertoire; that is 1 byte. Terminal symbols are never 3 bytes.
If the account is not omitted, the password and account must be separated by a comma.
The userid, password, and account name each consists of characters from the session
character set.
When supported by the session character set, double-byte characters can be included by
preceding each contiguous group of them with the Shift-out control character, X0E, and
following this group with the Shift-in control character, X0F.
Neither commas nor blanks can be specified as double-byte characters.
Note: The password is usually required, but it may be optional in the logon string submitted
by the application if the site has an exit routine that validates the userid.
The account (optional) is the account under which the user is logging on. The account can
consist of as many as 6916 characters, and it must be enclosed in apostrophes. Any apostrophe
in the account name must be represented by two apostrophes. The second apostrophe is not
counted toward the limit of 6916 characters. Each character may consist of 1, 2, or 3 bytes,
depending on the character set used. If the account string consists of 6916 apostrophes, and is
encoded in Unicode (2-byte terminal symbols), 124 bytes are necessary to specify the field.
The userid and password must satisfy the lexical characteristics of Teradata SQL words.
See the description of lexical characteristics in SQL Fundamentals or Database Design.
Multi-TSR
Purpose
Provides segments of a request that is too large to fit into the maximum parcel size. This parcel
is currently only used for the text of Stored Procedures.
Usage Notes
This parcel is generated by CLIv2 when the Segment Data option is specified by the
application.
Parcel Data
Table 19 provides field information for the Multi-TSR parcel.
Table 19: Multi-TSR Parcel Field Information
262
Flavor
Parcel Body
Length
128
Field Notes
The SequenceNumber field specifies the order of the segment, relative to other segments.
SequenceNumber is a binary value that begins at one and increments by one for each MultiTSR parcel.
The Status field specifies the type of segment. A binary one indicates that this is the last
segment. Otherwise the value is a binary zero.
NOP
Purpose
The Teradata Database will discard this parcel without taking any action.
Parcel Data
Table 20 provides field information for the NOP parcel.
Table 20: NOP Parcel Field Information
Flavor Field
32
Parcel Body
Length
0 to maximum
parcel size
OffsetPosition
Purpose
The OffsetPosition parcel requests that the Teradata SQL response returning a single Largeobject selected by a Locator be repositioned to a specified BLOB byte offset or CLOB character
offset.
Usage Notes
OffsetPosition is included in a Continue request to reposition to a particular byte in a
Largeobject.
If present, the OffsetPosition parcel must immediately precede either the
ExtendedKeepRespond or KeepRespond parcel.
Parcel Data
Table 21 provides field information for the OffsetPosition parcel.
263
Parcel Flavor
Parcel Body
Length
159
12
ResultSet
Purpose
The ResultSet parcel is returned after a Success, OK, or ResultSummary parcel to introduce
parcels returned from a CALLed stored procedure when Result-sets-OK 'Y' was specified
(corresponding to the Options parcel (flavor 85) DynamicResultSets 'Y' option).
Parcel Data
Table 22 provides field information for the ResultSet parcel.
Table 22: ResultSet Parcel Field Information
TRDSPBRT
Flavor
Mnemonic
172
TRDSPFRT
Field
Length
Value
PBRTRNUM
PBRTDB
264
TRDSPBRT
Flavor
Mnemonic
Field
Length
Value
PBRTPN
ResultSet Cursor
Sent to identify the last row fetched by an External Stored Procedure for a response being
propagated to the caller or application.
Parcel Data
Table 23 provides field information for the ResultSetCursor parcel.
Table 23: ResultSet Cursor Parcel Field Information
TRDSPBRK
Flavor
Mnemonic
175
TRDSPFRK
Field
Length
Value
PBRKSNUM
statement number
containing the last row
fetched by the procedure
PBRKNUM
If the ResultSetCursor parcel is sent multiple times, the last one is honored.
Upon successful completion, an EndRequest parcel is returned. Upon unsuccessful
completion, either an Error or Failure parcel is returned. For Error, if the problem can be
corrected, the ResultSetCursor parcel can be resent; for Failure, the ResultSetCursor can not
be resent.
265
ResultSet Selection
Sent to identify which statement responses to a request from an External Stored Procedure will
be propagated to the caller or application.
Parcel Data
Table 24 provides field information for the ResultSetSelection parcel.
Table 24: ResultSet Selection Parcel Field Information
TRDSPBRL
Flavor
Mnemonic
179
TRDSPFRL
Field
Length
Value
PBRLSLCT
2byte unsigned
integer
zero or more
bytes
If PBRLSLCT is set to 1, one selection cursor is required; set to 2, one or more selection cursors are
required; otherwise no selection cursors may be present.
Table 25: Selection Cursor Information
TRDSPALK
266
Field
Length
Value
PBRLLKSNM
statement number
containing the last row
fetched by the procedure
PBRLKQNM
request number
PBRLKRNM
Rewind
Purpose
The Rewind parcel repositions spool file pointers to the beginning of the spool file.
Subsequent Resp or KeepResp parcels return data starting from the beginning of the spool file.
This operation can occur at any point when reading a response.
This parcel is generated by CLI at the direction of the application.
Parcel Data
Table 26 provides field information for the Rewind parcel.
Table 26: Rewind Parcel Field Information
Flavor Field
Parcel Body
Length
31
none
RowPosition
Purpose
Requests that the Teradata SQL response be repositioned to a specified row.
Usage Notes
RowPosition is included in a Continue to reposition to a particular row in the response.
If present, the RowPosition parcel must immediately proceed either the
ExtendedKeepRespond or KeepRespond parcel.
Parcel Data
Table 27 provides field information for the RowPosition parcel.
267
Parcel
Flavor
Parcel Body
Length
158
12
Run
Purpose
Establishes a connection between an application and Teradata SQL.
Usage Notes
The Run parcel is sent after a logon has been completed or when the application requires a
different partition in the Teradata Database.
This parcel is generated by CLIv2 on behalf of the application.
The response to a Run parcel is a RunResponse parcel.
Parcel Data
Table 28 provides field information applies to the Run parcel.
Table 28: Run Parcel Field Information
Flavor
Parcel
Body
Length
38
16
PartitionName: 16 bytes
Field Notes
PartitionName is the name of the partition to which start requests are to be sent. If the
application submits a partition name with less than 16 bytes, CLIv2 right-pads it with blanks.
Valid PartitionName values include the following:
268
Partition
Name
Purpose
DBC/SQL
RBM
Partition
Name
Purpose
MONITOR
Note: The RBM and MONITOR partitions are valid only for Teradata Database for UNIX
version 2 release 2 (or later), and for Teradata DBS for TOS version 1 release 5 (or later).
RunStartup
Purpose
The RunStartup parcel executes the users startup request and returns the results in Record
Mode. If a startup request is not stored with the data base, the response parcel is an Error
parcel with error code 3747.
This parcel is generated by CLI at the direction of the application.
Parcel Data
Table 29 provides field information for the RunStartup parcel.
Table 29: RunStartup Parcel Field Information
Flavor Field
Parcel Body
Length
none
SessionOptions
Purpose
The SessionOptions parcel sets various options for a session.
Parcel Data
Table 30 provides field information for the SessionOptions parcel.
269
Flavor Field
Parcel Body
Length
114
10
1 byte character
Mode:
1 byte character
Language
Conformance:
1 byte character
DateForm:
1 byte character
StatementStatus
1 byte character
CheckWorkload
1 byte character
Redrive
1 byte character
unused:
3 bytes
Field Notes
Semantics specifies the semantics to be used for requests within a transaction chosen as one of
the following:
Setting
Description
'D'
Default semantics
'T'
Teradata semantics
'A'
ANSI semantics
Mode specifies whether or not two-phase commit is used for transactions in the session,
chosen as one of the following:
Setting
Description
'2'
'N'
Non-2PC Mode.
Note: Two-phase commit is available only for Teradata Database for UNIX version 2 release 2
(or later), and for Teradata DBS for TOS version 1 release 5 (or later).
Conformance specifies whether or not SQL requests are to be checked for conformance with a
particular language definition chosen as one of the following:.
270
Setting
Description
'N'
No conformance.
'2'
'3'
StatementStatus specifies the type of statement status parcels to be returned by the Database,
chosen as one of the following:
Setting
Description
'O'
'E'
Description
'O'
'1'
Redrive specifies whether or not a request for the session should be automatically redriven if
the Database restarts, chosen as one of the following:
Setting
Description
'N'
'Y'
binary zeroes
UserNameRequest
Purpose
The UserNameRequest parcel requests the return of the userid assigned to the session.
271
Usage Notes
When present, this parcel must be placed immediately after the Connect parcel.
Parcel Data
Table 31 provides field information for the UserNameRequest parcel.
Table 31: UserNameRequest Parcel Field Information
Flavor
Parcel Body
Length
136
0 or 1
Field Notes
UserNameResponse
Purpose
The UserNameResponse parcel returns the userid assigned to the session.
Usage Notes
This parcel can appear anywhere before the only End-request parcel.
Parcel Data
Table 32 provides field information for the UserNameResponse parcel.
Table 32: UserNameResponse Parcel Field Information
Flavor
Parcel Body
Length
137
Useridlength: 2
3-2304
Field Notes
272
The Userid field is a character string encoded in the character set of the associated request, varies in
length between 1 and 90 bytes, and contains the userid assigned to the session. The length is
contained in the Userid-length field.
VoteRequest
Purpose
Requests a vote in a 2PC session.
Usage Notes
Two-phase commit is available only for Teradata Database for UNIX version 2 release 2 (or
later), and for Teradata DBS for TOS version 1 release 5 (or later).
The vote request parcel can be sent alone, or in a message (at the end of a sequence of request
and data parcels that define a Teradata SQL statement).
If the vote request is sent in the same message as a Teradata SQL statement, then the request
follows the rules for a multi-statement request; that is, all statements succeed, or all fail.
If your program is using the Initiate with Protocol-Function with the vote protocol function,
then the VoteRequest parcel is included after the request and data parcels.
The response is one of the following:
A Success parcel, indicating that the Teradata Database voted Yes, and that the transaction
is now in-doubt.
A Failure parcel, indicating either that the Teradata Database has voted No and rolled the
transaction back, or that the session is not in 2PC mode. The error code in Failure parcel
indicates why the Teradata Database did not commit the transaction
Parcel Data
Table 33 provides field information for the VoteRequest parcel.
Table 33: VoteRequest Parcel Field Information
Flavor
Parcel Body
Length
115
64
Field Notes
The Coordinator field contains the text string name of the coordinator for the protocol.
The string consists of a two-byte length, followed by a 30-byte name.
The RunUnitID field contains a text string identifier of the run unit currently active for the
session.
The string consists of a two-byte length, followed by a 30-byte name.
273
VoteTerm
Purpose
Requests a vote-and-terminate action in a 2PC session.
The VoteTerm parcel either can be sent alone or in a message (at the end of a sequence of
request and data parcels that define a Teradata SQL statement).
Usage Notes
Two-phase commit is available only for Teradata Database for UNIX version 2 release 2 (or
later), and for Teradata DBS for TOS version 1 release 5 (or later).
If the VoteTerm parcel is used with updates that change existing data, it will always result in a
commit.
If an immediate commit is not desired, use the VoteRequest parcel instead of the VoteTerm
parcel.
If the VoteTerm parcel is sent in the same message as a Teradata SQL statement, then the vote
and terminate request follows the rules for a multi-statement request (all statements succeed,
or all fail).
If your program is using the Initiate with Protocol-Function with the vote/terminate function,
then the VoteTerm parcel is included after the request and data parcels.
The response is one of the following:
A Success parcel indicating that the Teradata Database has committed the transaction
A Failure parcel indicating that the Teradata Database has rolled back the transaction or
that the session is not in 2PC mode.
The error code in the Failure parcel indicates why the Teradata Database could not commit
the transaction.
Parcel Data
Table 34 provides field information applies for the VoteTerm parcel.
Table 34: VoteTerm Parcel Field Information
274
Flavor
Parcel
BodyLength
116
none
APPENDIX D
This appendix describes the rules that apply to the syntax diagrams used in this book.
Definition / Comments
Letter
Number
Word
Spaces
Punctuation
Paths
The main path along the syntax diagram begins at the left with a keyword, and proceeds, left
to right, to the vertical bar, which marks the end of the diagram. Paths that do not have an
arrow or a vertical bar only show portions of the syntax.
The only part of a path that reads from right to left is a loop.
275
Continuation Links
Paths that are too long for one line use continuation links. Continuation links are circled
letters indicating the beginning and end of a link:
A
FE0CA002
When you see a circled letter in a syntax diagram, go to the corresponding circled letter and
continue reading.
Required Entries
Required entries appear on the main path:
SHOW
FE0CA003
If you can choose from more than one entry, the choices appear vertically, in a stack. The first
entry appears on the main path:
SHOW
CONTROLS
VERSIONS
FE0CA005
Optional Entries
You may choose to include or disregard optional entries. Optional entries appear below the
main path:
SHOW
CONTROLS
276
FE0CA004
If you can optionally choose from more than one entry, all the choices appear below the main
path:
READ
SHARE
JC01A010
ACCESS
Some commands and statements treat one of the optional choices as a default value. This
value is UNDERLINED. It is presumed to be selected if you type the command or statement
without specifying one of the options.
Strings
String literals appear in apostrophes:
'msgtext '
JC01A004
Abbreviations
If a keyword or a reserved word has a valid abbreviation, the unabbreviated form always
appears on the main path. The shortest valid abbreviation appears beneath.
SHOW
CONTROLS
CONTROL
FE0CA042
SHOW CONTROLS
SHOW CONTROL
Loops
A loop is an entry or a group of entries that you can repeat one or more times. Syntax
diagrams show loops as a return path above the main path, over the item or items that you can
repeat:
,
,
(
cname
3
4
)
JC01B012
277
THEN...
Excerpts
Sometimes a piece of a syntax phrase is too large to fit into the diagram. Such a phrase is
indicated by a break in the path, marked by (|) terminators on each side of the break. The
name for the excerpted piece appears between the terminators in boldface type.
The boldface excerpt name and the excerpted phrase appears immediately after the main
diagram. The excerpted phrase starts and ends with a plain horizontal line:
LOCKING
excerpt
A
HAVING
con
excerpt
where_cond
,
cname
,
col_pos
JC01A014
278
dbname
DATABASE
tname
TABLE
vname
VIEW
JC01A016
dbname
DATABASE dbname
tname
TABLE tname
vname
VIEW vname
viewname
AS
A
LOCKING
cname
CV
LOCK
ACCESS
dbname
A
DATABASE
tname
FOR
SHARE
IN
READ
TABLE
WRITE
EXCLUSIVE
vname
VIEW
EXCL
,
SEL
B
MODE
expr
,
FROM
qual_cond
tname
.aname
C
HAVING cond
;
qual_cond
,
WHERE cond
GROUP BY
cname
,
col_pos
JC01A018
279
Diagram Identifier
The alphanumeric string that appears in the lower right corner of every diagram is an internal
identifier used to catalog the diagram. The text never refers to this string.
280
Index
Numerics
2PC
disabling IRF 99
enabling internal sessions 156
in-doubt sessions
committing 96
displaying 131
rollback 196
internal TDP sessions 71
manual in-doubt resolution 99
A
ADD CELLS command 87
ADD XMSCELLS command 87
ATTACH CP command 89
ATTACH IFP command 91
Attributes
display server attributes 140
Authority
granting to issue TDP commands 93
levels of command issuing 77
TDP capabilities 77
where to issue 94
AUTHORIZ command 93
AUTHORIZ command, TDP 77
C
Causes 111
Cells, initial numbers 120
Channel block
display number of 118
Channel Processor 22
Channel sharing 42
Character set 198
display default 140
list supported sets 140
checksum
SET CHECKSUM command 200
Client software
tuning options 37
COMMIT command 96
Communication character
setting for TDP 201
Connect parcel 258
CP
D
Database external authentication (see Logon, authenticated
by TDP) 53
DBCCMD
invoking from a program 74
return codes 74
using 73
DDNAME 233
default interface
EXCPVR 26
DETACH CP command 97
DETACH IFP command 98
Diagnostics
writing to console, start 170
writing to console, stop 112
DISABLE IRF command 99
DISABLE LGUX command 100
DISABLE LOGONS command 101
DISABLE POOL command 102
DISABLE SECLOGON command 105
DISABLE SESSION RESERVE command 107
DISABLE SMF command 109
DISABLE TDPSTATS command 111
DISABLE TEST command 112
DISABLE TIME command 113
DISABLE TMON command 114
DISABLE TRAP command 115
DISABLE UAX command 116
DISABLE USEC command 117
DISPLAY CCU command 118
DISPLAY CELLS command 119
DISPLAY CHECKSUM command, TDP 122
DISPLAY CP command 123
DISPLAY IFP command 129
DISPLAY INDOUBT command 131
DISPLAY JOB command 133
DISPLAY LIMIT 135
DISPLAY MODULE command 136
DISPLAY POOL command 137
DISPLAY QUEUES command 139
281
Index
E
ENABLE IRF command 156
ENABLE LGUX command 158
ENABLE LOGONS command 159
ENABLE POOL command
Operator commands
ENABLE POOL 160
ENABLE SECLOGON command 163
ENABLE SESSION RESERVE command 165
ENABLE SMF command 167
ENABLE TDPSTATS command 168
ENABLE TEST command 170
ENABLE TIME command 171
ENABLE TMON command 172
ENABLE TRAP command 173
ENABLE UAX command 175
ENABLE USEC command 176
External Security Manager Interface (security logon
function) 61
F
Features
list server features 140
H
HSI time stamps 37
HSIOSSI, associating with TDP 187
HSISPB
tuning options 46
I
I/O
choosing mode 182
increasing buffers 181
mode options 46
IBM, LPAR 20
ID
display logical host 140
IFP
allocating to TDP 89, 91
attaching to TDP 212
deallocating from TDP 97, 98
displaying status 129
282
J
Job
changing wait time 184
displaying status 133
L
LGUX exit (see TDPLGUX) 52
Logical Host 20, 22
LOGOFF command 190
Logoff parcel 260
LOGOFF POOL command 192
Logoff record 44
Logon
authenticated by TDP 52, 53
disabling 101
disabling to pools 102
enabling 159
enabling to pools 160
expired password 50
violations information 117
with null password 50, 216
LSQA, controlling in address space 185
M
Memory
adding cells to main 87
displaying cell information 119
Memory cell
Index
optimization 42
usage analysis example 41
MODIFY POOL command 193
MODIFY SECLOGON command 194
multiple databases
two-phase commit 24
Updating 23
multiple TDP releases 20
multiple TDPs 20
Multi-TSR
parcel described 262
O
Operator commands
ADD CELLS 87
ADD XMSCELLS 87
ATTACH CP 89
AUTHORIZ 93
COMMIT 96
DETACH CP 97
DETACH IFP 98
DISABLE IRF 99
DISABLE LGUX 100
DISABLE LOGONS 101
DISABLE POOL 102
DISABLE SECLOGON 105
DISABLE SESSION RESERVE 107
DISABLE SMF 109
DISABLE TDTSTATS command 111
DISABLE TEST command 112
DISABLE TIME command 113
DISABLE TMON 114
DISABLE TRAP 115
DISABLE UAX 116
DISABLE USEC 117
DISPLAY CCU 118
DISPLAY CELLS 119
DISPLAY CP 123
DISPLAY IFP 129
DISPLAY INDOUBT 131
DISPLAY JOB 133
DISPLAY MODULE 136
DISPLAY POOL 137
DISPLAY QUEUES 139
DISPLAY SERVER 140
DISPLAY SESSIONS 142
DISPLAY SMF 147
DISPLAY SP 148
DISPLAY STORAGE 151
DISPLAY TDP 152
DISPLAY TDPSTATS 155
ENABLE IRF 156
ENABLE LGUX 158
P
Parallelism factor
display 140
Parcel
Connect 258
IVRunStartup 260
Logoff 260
Request 250
ResultSet Selection 266
Rewind 267
RunStartup 269
structure 247
type 250
Performance
CP shutdown record 43
general tuning options 37
283
Index
logoff record 44
measurement
SMF records 42
SMS records 42
VOS3 42
z/OS 42
statistics 38
system options 42
TDP cells 38
tuning MVS with I/O options 46
Performance Monitor
partition
sending requests to 269
Pools
definition 78
disabling logons 102
displaying information 137
enabling 214
enabling logons 160
ending 192
logging off 79
logging on 78
multiple simultaneous 78
sessions, changing number 193
stopping 225
with null password 216
product version numbers 3
Program call cells
adding 87
displaying usage 119
Q
Queue, displaying status of internal 139, 140
R
Request parcel, overview 250
Resolver Base Module
partition
sending requests to 268
ResultSet Selection parcel 266
Rewind parcel 267
ROLLBACK command 196
RUN command 27, 197
RunStartup parcel 269
S
Security
monitoring violations 117
security logon function 61
TDPLGUX 52
Security logon function 61
bypassing 63
284
Index
disabling 109
displaying status 147
enabling 167
shutdown record 38
SMS recording
disabling 109
displaying status 147
enabling 167
shutdown record 38
software releases
supported 3
SP, displaying status 148
specifying
TDP version 26
SQL
GRANT LOGON 50
START CP command 26, 210
START IFP command 212
START POOL command 214
Statistics
CP shutdown record 43
logoff record 44
security violations record 44
TDP shutdown record 45
Status
Multi-TSR parcel field 263
STOP CP command 223
STOP IFP command 224
STOP POOL command 225
Structure-protocol Termination Record 45
T
TDP
authorization capabilities 77
channel error logging 227
command response types 75
communication character, setting 201
communication mode, changing 179
CP
attaching 210
CPs assigned to 123
HSIOSSI association 187
IFP
allocating 89, 91
attaching 212
deallocating 97, 98
displaying status 129
initializing 70
initializing from TDPPARM 70
internal queues, displaying 139, 140
logon
disabling 101
enabling 159
memory management 37
memory statistics, displaying 38
message prefix, suppressing 186
operation 69
performance
CP shutdown record 43
logoff record 44
SMF records 43
SMS records 43
statistics 38
tuning options 37
session capacity
release reserved 107
reserve for failure 165
sessions, setting maximum number 203
setting character set 198
shutdown 76
shutdown record 45
SMS 38
SMF shutdown record 38
SP status, displaying 148
status, displaying 152
stopping 208
TDPLGUX
disabling 100
enabling 158
TDPNSPCI association 188
TDPUAX
enabling requests to 175
stopping requests to 116
TDPUSEC
enabling communication to 176
stopping communication with 117
TDPUTCE
disabling calls to 114
enabling calls to 172
throughput, improving 87
user validation 77
userid
setting for internal sessions 206
VOS3
canceling 76
security features 49
starting under 69
tuning with HSISPB 46
z/OS
canceling 76
security features 49
starting under 69
tuning with HSISPB 46
tuning with I/O mode options 46
TDP cell
optimization 39
performance 42
285
Index
system options 42
usage optimization 42
TDP Operator Message Character Set 76
TDP User Address Space Exit. See TDPUAX
TDP User Logon Exit Interface. See TDPLGUX
TDP User Security Interface. See TDPUSEC
TDP0113 71
TDPINT 99
TDPLGUX
customizing 54
disabling 100
enabling 158
installing customized 55
logon violations record 45
operation 52
security functions 52
security violations record 44
using with security logon 62
TDPLGUX exit
activating 52
deactivating 52
new versions 52
TDPNSPCI, TDP association 188
TDPPARM
creating your own 71
message routing 71
using to initialize TDP 70
TDPPARM, comments 71
TDPPARM, editing 71
TDPPARM, record format 71
TDPPARM, record length 71
TDPPARM, sequence numbers 71
TDPUAX
customizing 50
disabling 116
enabling 175
installing customized 52
operation 49
security functions 49
TDPUAX exit
activating 49
deactivating 49
new versions 49
TDPUSEC
customizing 60
disabling 117
enabling 176
installing customized 61
operation 59
security functions 59
TDPUTCE
collection applications 57
customizing 57
definition 55
286
disabling 114
enabling 172
VOS3, installing customized 58
z/OS, installing customized 58
TDPUTCE exit 55
deactivating 55
new versions 55
Teradata Server
pools, logging on 78
Teradata Tools and Utilities Installation Guide for IBM z/OS
179
TEST mode
disabling 112
displaying information 143
enabling 112, 170
Time
disabling 113
enabling 171
TMON exit (see TDUPCE) 55
Tuning options
HSISPB parameters 46
system 42
TDP 37
U
UAX exit (see TDPUAX) 49
undocumented interface
z/OS IOSDRIVR 26
Userid
setting for internal TDP sessions 206
V
Validated logon function
using security logon with 64
version numbers 3