The text of a manual · part 12 of 37
TCL Terminal Control Language Programmer's Manual, pages 111 to 120
Pages 111 to 120 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 111
Description:
See Also:
Category:
Buffer Status:
Terminals Supported:
Command Format:
Parameters:
Example:
G - Clear Destination Buffer
Deletes all data from the destination buffer.
Command Description D Delete Characters from Buffer Buffer Operations
Source Buffer
Destination Buffer
No change Buffer is cleared Terminal Special Conditions PNC 330/340 None XL None TRANZ 330/340/380 None
Default Parameter Value Description
(The "G" command has no parameters)
Command
Operation
110$ B.5 G
; Selects buffer 5 as destination buffer ; Clears the contents of the destination
; buffer (buffer 5)
Page 112
Description: Category:
Buffer Status:
Terminals Supported:
Command Format:
Parameters:
Example:
*G - Terminal Beep
Causes the terminal to give a normal or an error key beep.
Outputs and Data Display
Source Buffer Destination Buffer
No change No change
Terminal Special Conditions
PNC 330/340 None
XL *G2 available on versions 2.80 and greater TRANZ 330 None
TRANZ 330 (202) *G2 available on versions 2.1 and greater TRANZ 340 *G2 available on versions 2.1 and greater TRANZ 380 None
Default
Parameter Value Description a 0 Optional; options include:
Q normal beep - short, high tone
1 error beep - long, low tone
2 normal beep - no beep if turned off
(location 9)
Command Operation 113$ ; Display "NOT FOUND" and beep to get user's
; attention. The following shows this *G ; command used with the F command: F71 ; Display "NOT FOUND" *Gi1 ; Beep to get the users attention
Page 113
Description:
See Also:
Category:
Buffer Status:
Terminals Supported:
Command Format:
+G - Append Detail Record into Batch
Appends a detail record to the selected batch or inserts a detail record in front of the selected record.
You must use “*B to select a batch before using +G.
Note: Refer to Appendix D in the TRANZ 380 Reference Manual for execution details.
Command Description *A Create/Open Batch *B Select Batch *C Copy Buffer to Batch *D Delete Batch Information *E Copy Batch Detail to Buffer *F Detect Data Capture Errors
Data Capture and Batch Functions
Source Buffer
Destination Buffer
No change No change; buffer read Terminal Special Conditions PNC 330/340 "s" not available
XL Not available
TRANZ 330/340
TRANZ 380
Available on versions 2.1 or greater, "s" not available “s" available on versions 1.1 or greater
Page 114
Parameters:
Examples:
+G - Append Detail Record into Batch
Default Parameters Value Description a 0 Optional; options for this parameter are:
Q append record to selected batch
1 insert record in front of selected record Ss 0 Optional; number of commands to skip if the operation is successful.
Command Operation
; This routine is to add a record to the preselected batch. It also ; checks for an error of not enough memory to add a record. 73=OUT OF MEMORY
289$ +G ; Add the record to the batch with the contents ; that was built in the current destination buffer *F2.1 ; If not out of memory skip 2 else P73 ; Display "OUT OF MEMORY" *K1 ; Abort and leave the current display
Page 115
Description:
See Also:
Category:
Buffer Status:
Terminals Supported:
Command Format:
H - Search for String in the Source Buffer
Searches for a string or character constant in the source buffer. When searching, the terminal looks from the extraction pointer to the end of the source buffer.
If the terminal finds the string or constant, it moves the extraction pointer to the first character. If no string or constant is found, the extraction pointer retains its original position.
Command Description B Select Buffers D Delete Characters from Buffer G Clear Destination tJ Buffer Modification Oo Move Extraction Pointer
Buffer Operations
Source Buffer Destination Buffer
Pointer is in front of No change found string, else no change; buffer is read
Terminal Special Conditions PNC 330/340 None XL None
TRANZ 330/340/380 None
Page 116
H - Search for String in the Source Buffer
Parameters: Parameter
Default Value
Description
C1
C2
Examples: Command
0
28/FS to end
Optional; number of commands to skip if character or string is not found; the "s" parameter can be positive or negative
Optional; string or constant to search for;
can be a literal string, enclosed in single quotes, or a decimal value of an ASCII character; default value: 28, decimal constant for an ASCII field separator
Optional; maximum number of characters to search forward; default is 0, causing the search to continue to the end of the buffer string. If not found, the data extraction pointer is preserved.
Optional; decimal value of an end sentinel;
if the terminal encounters the “c2" parameter at or before the "c1" value, the search stops and the extraction pointer remains at its original position
Operation
; This routine is called after we receive a response message back from the ; host and we want to extract the display message found between the
; second and third field separator and the approval number between the
; fourth and fifth field separator.
180$ B.2 U195 B2.3
G U49 H O H X.28 U49
X.28 U50
; Select receive buffer containing host response ; Save the entire host response
; Select the receive buffer as the source
; buffer and 3 as the destination buffer
; Clear destination buffer
; Clear the display message
; Find first field separator in the host response
; Move the extraction pointer by 1
; Find second field separator in host response
; Copy display message up to third field separator ; Save the display message
; Move the extraction pointer by 1
; Find fourth field separator in the host response ; Clear destination buffer
; Copy approval number up to fifth field separator ; Save the approval number
Page 117
Description:
See Also:
Category:
Buffer Status:
*H_ - Encrypt PIN and Account Number
Gives the terminal the ability to instruct a PIN Pad to encrypt personal identification numbers (PINs) and account numbers using DES encryption in compliance with the ANSI 9.8 standard. Also sends the PIN Pad the command to accept a PIN entry and return it to the terminal.
When the terminal executes the *H command, it:
¢ checks to see if the PIN Pad is connected,
* sends the account data, the encrypting working key (stored in location 016) and the Mkey pointer to the PIN Pad,
* instructs the PIN Pad to prompt for PIN entry,
* gets the PIN from the PIN Pad keyboard,
* combines the account number and PIN to create the formatted PIN block, * decrypts the working key with the master key,
* encrypts the formatted PIN block with the working key using the DES encryption standards,
* sends the encrypted PIN block back to the TRANZ * moves the encrypted PIN block to the destination buffer.
Note: The "i" and ‘j" parameters for the *H command will only work with PIN Pad firmware 1C or higher. Also verify that the PIN Pad is selected as the DIN 6 peripheral in location 970/0970 (970/0970 = 2).
Command Description
+H Wait for PIN
+T Send over DIN 6
+U Set DIN 6 Parameters Encryption Source Buffer Destination Buffer No change Buffer updated
Page 118
Terminals Supported:
Command Format:
Parameters:
*H_ - Encrypt PIN and Account Number
Terminal Special Conditions PNC 330/340 Value "0" for parameter “a" not available XL "a" parameter not available; command not available on versions 2.4 or greater
TRANZ 330/340 Value of "0" for parameter "a" (internal PIN encryption)
not available on versions 2.30 or greater TRANZ 380 Value of "0" for parameter "a" not available
Default Parameter Value Description i 4 Optional; the minimum number of PIN digits; range 4-12 j 12 Optional; the maximum number of PIN digits; range 4-12
Warning: Be careful when specifying the "i" and ‘j" parameters as the terminal will not stop you from specifying a minimum number of PIN digits that is greater than the maximum number allowed.
a 2 Required; this parameter specifies that encryption and account number entry is from an external PIN Pad. Select one of the options as described below and on the next page.
If a=0 (PIN and account number from TRANZ terminal) Note: This parameter is not available.
Source Buffer Destination Buffer Before *H Command Account Number _ --- After *H Command Account Number Encrypted PIN Block
If a = 1 (PIN from PIN Pad; account number from TRANZ)
Source Buffer Destination Buffer
Before *H Command Account Number Amount
After *H Command Account Number, Encrypted PIN Block
If a=2 (PIN and account number from PIN Pad 201 only) Source Buffer Destination Buffer
Before *H Command, - Amount
After *H Command Card Data Encrypted PIN Block
Page 119
Command Requirements:
Example 1:
Example 2
*H - Encrypt PIN and Account Number
Input
¢ Source buffer should only contain the account number, including checkdigit;
¢ Destination buffer contains amount of sale;
* Location 016 must contain the encrypted working key and master key pointer in the following format:
016=nnnnnnnnnnnnnnnn-x where: n = encrypted working key hexadecimal digit - = mandatory data separator xX = master key pointer (0-9).
Output
¢ Source buffer contains the account number; ¢ Destination buffer contains the encrypted PIN block.
Warning: The command deletes all the data in the destination buffer, then appends the encryption block.
Command Operation
;This routine gets encrypted PIN Block from PIN Pad 101 050$
B3.4 ; Source = buffer 3 (has the account number) ; Destination = buffer 4 (has sale amount) *H..1 ; Get PIN from PIN Pad; 4-12 digits, combine
; with the account no. (in buffer 3 - source) ; and create the encrypted PIN block, ; move the encrypted PIN block to buffer 4
B4.1 ; Source = buffer 4 (encrypted PIN block) ; Destination = transmit buffer
X ; Append the encrypted PIN block to the ; Transmit buffer
*M ; Return
;This routine gets encrypted PIN Block from PIN Pad 201
B1.2 ; Select source = buff 1, dest = buff 2
G ; Clear destination buffer
R’10.00’ ; Amount
*H..2 ; PIN Pad prompts to slide card and for PIN entry ; displays "PLEASE WAIT ...’
B.1 ; Select dest = buff 1
*J1 ; Display leftmost side of buffer
V ; Display Account number and allow scrolling ; until the user presses [ENTER]
B.2 ; Select dest = buff 2
V.2.2 ; Display the encrypted PIN block
*K1 ; Abort, leaving the display as is
Page 120
Description:
See Also:
Category:
Buffer Status:
Terminals Supported:
Command Format:
Parameters:
+H - Wait for Encrypted Block from PIN Pad
Instructs the terminal to wait for an encrypted PIN Block from the PIN Pad. This transferral of PIN Block is sent via the PIN Pad using a type 71 message only. When the command is completed, the encrypted PIN will be in the destination buffer.
Command Description *H Encrypt PIN +T Send over DIN 6 +U Set DIN 6 Parameters Encryption Source Buffer Destination Buffer No change Encrypted PIN block appended to data Terminal Special Conditions PNC 330/340 None XL Not available TRANZ 330/340 Available in versions 2.1 or greater TRANZ 380 None
Default Parameter Value Description s 0 Number of commands to skip if an EOT is received