The text of a manual · part 10 of 37
TCL Terminal Control Language Programmer's Manual, pages 91 to 100
Pages 91 to 100 of 362
The original document is the PDF (13 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the VeriFone Tranz 330
Page 91
Description:
See Also:
Category:
Buffer Status:
Terminals Supported:
Command Format:
Parameters:
D - Delete Characters from Destination Buffer
Deletes characters from the end of the destination buffer.
Command
Description
Delete Commands:
G
Buffer Commands:
B G H +J O +S U V Zz
Buffer Operations
Source Buffer
Clear Destination
Select Buffers
Clear Destination
Search for String
Buffer Modification
Move Extraction Pointer
Get Buffer Size
Copy Buffer to Memory Location Display Buffer
Pad Destination Buffer
Destination Buffer
No change Characters deleted Terminal Special Conditions
PNC 330/340 None XL None TRANZ 330/340/380 None
Default Parameter Value Description n 1 Optional; the number of characters to delete from the end of the destination buffer; must be a positive number
Page 92
D - Delete Characters from Destination Buffer
Examples: Command Operation
; Get password and store it in a memory location for later use
840$ B.3 ; Select destination buffer 3 G ; Clear destination buffer F47 ; Display fixed prompt "ENTER PASSWORD" K5.4..4 ; Accept 4-digit alphanumeric password D ; Remove field separator at end U55 ; Store password
Page 93
Description:
See Also:
Category:
Buffer Status:
Terminals Supported:
*D - Delete Batch, Records or Headers
Deletes all or selected detail records, batches and batch headers from the data capture memory specified by the “a” parameter. Before using the "*D" command, you must select a batch using the "*B" command.
Note: Refer to Appendix D of the TRANZ 380 Reference Manual for execution details.
Command Description *A Open New Batch *B Select Batch for Read Operations *C Copy Destination Buffer to Batch *E Append Batch Detail to Destination Buffer +G Append Detail Record into Batch
Data Capture and Batch Functions
Source Buffer
Destination Buffer
No change No change
Terminal Special Conditions
PNC 330/340 "s" not available
XL *D3 and "s" not available
TRANZ 330 *D3 available on versions 2.1 or greater,
TRANZ 330 (202)
TRANZ 340
TRANZ 380
"s" not available *D3 available on versions 2.1 or greater, "s" not available *D3 available on versions 2.1 or greater, "s" not available
"s" available on versions 1.10 or greater.
Page 94
*D - Delete Batch, Records or Headers
Command Format:
Parameters: Default Parameter Value Description a 0 Optional; data capture item to be deleted;
options for this parameter include:
0 delete selected batch and batch header
1 delete all detail records for selected batch
2. delete all batches and detail records
3 delete selected detail record from any batch s 0 Optional; number of commands to skip if the operation is successful
Example: Command Operation
: This routine is used to delete a selected batch with its detail records and ; report any errors on deleting the batch. 72=BATCH NOT FOUND
287$
B.3 ; Select work buffer 3
G ; Clear buffer
R’BATCH’ ; Append "BATCH" to buffer
A50 ; Append batch number to buffer
*B3 ; Select batch with header matching ; destination buffer contents
*F2.2 ; If batch selected skip 2 else
P72 ; Display "BATCH NOT FOUND"
*K1 ; Abort and leave the current display
*D : Delete selected batch and batch header
Page 95
Description:
See Also:
Category:
Buffer Status:
Terminals Supported:
Command Format:
+D - DTMF Tone Dial
Causes the terminal to use DTMF (dual tone multifrequency), also called touch tones, to dial the characters in the destination buffer. Only characters "0-9," "A-D," "*" and "#", are dialed. This command also specifies the length of the touch tone digits which affects the dial speed.
Note: If you use +D to dial a phone number, you must first use Sg to go off hook. Command Description +F Response ACK +1 Send Over Modem +K Carrier Control +M Set Modem Parameters *P Specify Characters S Dial Phone Number *T Specify Timeouts *V Append Phone Status +X Transmit Data to Network +Y Receive Data from Network
Process and Flow Control
Source Buffer
Destination Buffer
No change No change; buffer read
Terminal Special Conditions
PNC 330 None
PNC 340 Not available
XL Not available
TRANZ 330 Available on versions 1.3 or greater TRANZ 330 (202) Not available
TRANZ 340 Not available
TRANZ 380 None
Page 96
Parameters:
Examples:
+D - DTMF Tone Dial
Default Parameter Value Description t 50ms Optional; the period of tone, which is the "t"
(10dps) parameter times 10ms (Default t=5)
Command Operation
; This routine will cause the terminal to go off hook and dial the digits "123". 148$
$3 ; Go off hook
*W1 ; Wait 1 second for dial tone
G ; Clear the destination buffer
R‘123’ ; Append "123" to the destination buffer +D ; Dial the contents of the destination buffer
Page 97
Description:
See Also:
Category: Buffer Status:
Terminals Supported:
E - Input from Cardreader or Keypad
Causes the terminal to accept input from either the cardreader or the keypad, automatically places a field separator after the data entry (except when input type flag 4 is selected) and appends the data to the destination buffer. The terminal checks to see if the account number is greater in length than 0 and less than 128 before copying to the destination buffer.
When input type flag 4 is selected and a field separator is desired, use the "R" command to append a field separator to the end of the entered data. The minimum number of characters for this flag will be four because of padding and the decimal point. Null cannot be used.
Note: The cardreader buffer will be cleared when the terminal receives keyboard input, thus preventing problems that could result from incorrect data entry.
Command Description +E Input Variable Decimal Point K Input from Keypad Only M Input from Card Reader Only *U Input from Bar Code Reader *Y Check Input Devices
Data Entry
Source Buffer
Destination Buffer
No change
Terminal
Buffer updated
Special Conditions
PNC 330/340
XL
TRANZ 330 TRANZ 330 (202) TRANZ 340
TRANZ 380 ZON 5XX
$3, a2 and c not available
$2, S3, a2, i and c parameters are not available "|" parameter available on version 1.3 or greater, s3, a2 and c not available
"i" parameter available on version 2.1 or greater, s3, a2 and c not available
“" parameter available on version 2.1 or greater, s3, a2 and c not available
None
(See Appendix J for unique usage)
Page 98
E - input from Cardreader or Keypad
Command Format:
Parameters: Default Parameter Value Description S1 0 Optional; number of commands to skip when input is from the cardreader; the default is 0 ai 0 Optional; the input type flag; identifies the type of input criteria to be applied when data entry is from keypad; the default flag is 3, (alphanumeric chars)
Other options include Input Type Flag:
1 alphanumeric
2 numeric
3 alphanumeric characters
4 amount; the decimal is added automatically;
the default field length is 10 characters with a maximum length of 15 alphanumeric; hidden entry (displays ******)
numeric; hidden entry (displays ******)
alphanumeric; hidden entry; password verification; entered data is not appended to the destination buffer; if password entered incorrectly, terminal beeps and aborts operation j 60 Optional; maximum number of input characters the terminal will accept from the keypad; 60 for XL, 120 for PNC/TRANZ; default for input type flags 1, 2, 3, 5, 6 and 7 is 60 characters; the default for input type 4 is 10 characters. The maximum length for amount data is 15.
$2 0 Optional; the number of commands to skip after a NULL entry from keypad. NULL entry occurs if you press [FUNC/ENTER] without entering data. Only valid for keyboard entry.
i 0 Optional; minimum number of input characters from the keypad. Only valid for keyboard entry. Note: If greater than ‘j", "i" will be set to zero.
NOwo
TRANZ 380 Only:
$3 0 Number of commands to skip if three bad card reads. Note: When reading two tracks, if one track contains an error or is not read properly, the terminal puts an error code in the destination buffer instead of the track information. The correctly read track will also be placed in the destination buffer, and the two tracks will be separated by the track separator. Errors are displayed as AA - AE on the terminal and as 0 - 5 in the destination buffer.
Page 99
E - Input from Cardreader or Keypad
Parameters: Default (continued) Parameter Value Description a2 0 Track Selection Options 0 = Track 2 1 = Track 1 2 = Tracks 1 and 2 3 = Track 3 4 = Tracks 2 and 3
Cc 29 Track separator
Example: Command Operation
; Get the 12-digit employee number and 8 digit department ; number either manually or from the cardreader. The two ; numbers are separated with a "*".
180=ENTER EMPLOYEE #
421$ B.3 ; Select destination buffer as 3 G ; Clear destination buffer P180 ; Display custom prompt "ENTER EMPLOYEE #" E3.2.40.12 ; Accept entry from cardreader or keypad ; Skip 3 commands if input is from cardreader ; accept numeric from 12 to 40 characters D ; Delete field separator at end *L422 ; Get department number manually, store ; employee number and department number 16 ; Skip over MAG stripe handling code U95 ; Store employee and department numbers B3.5 ; Select source and destination buffer G ; Clear destination buffer H.42 ; Search source buffer for a "*", which is start ; of expiration date O ; Move extraction pointer 1 pass "*" X8 ; Copy the department number from source ; buffer to the destination buffer U96 ; Store department number only
Notes: When using a data type of 4 (amount),
There is no null entry. If the user presses [ENTER] without entering data, 0.00 is appended to the destination buffer.
You can use the [*] key to toggle between negative and positive values, however, if you enter the maximum number of characters (15) in TRANZ 330 EPROMs less than 3.60, you will corrupt the last digit if you try to toggle to negative.
There is no minimum number of input characters.
Page 100
E - Input from Cardreader or Keypad
For EPROMs with 10-digit math, the "A" parameter is set to 4 (amount) and parameter "J" is left as the default, maximum input is 10 digits. The “J" parameter can be set to a maximum of 15 characters. Maximum input for 15- digit EPROMs with the same settings is 15 characters. Note: For U.S. firmware only, TRANZ 330 versions 3.60 and above feature 15-digit limitations.