Print TRansaction (62)

How to sort a transaction printout
How to print specified types of transactions
How to print a range of transactions

Prints completed transactions.
Options: A P1 P2
A option prints with physical record numbers
P1 and P2 options sort transactions
Use the command PRINT TRANSACTION or P TR to print transactions from the transaction-begin pointer to the end of the file. The terminal will print the transaction number and data for each transaction. Transactions are printed in order of transaction number.
Note: The format of the transaction printout is determined by the Site Controller configuration, and may be different from the example.

PRINT TRANSACTION (P TR)

R* PRINT TRANSACTION

Tran Card Account Veh Date Time P# Pr Qty Price $Total Error
1201 65289 5006127285 9183 2/28 10:58 1 1 4.851 1.159 5.62
1202 65180 9097075558 6249 2/28 10:58 4 4 9.794 1.049 10.27
1203 82429 3834546687 2491 2/28 10:59 2 2 13.281 1.119 14.86
1204 56218 3859872185 1126 2/28 10:59 3 3 8.606 1.299 11.18
1205 28593 4136528253 9138 2/28 11:01 2 2 19.195 1.119 21.48
1206 82429 3834546687 2491 2/28 11:02 1 1 9.247 1.159 10.72
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1234 82429 3834546687 2491 2/28 11:20 4 4 12.449 1.099 13.68
1235 65180 9097075558 6249 2/28 11:20 2 2 14.761 1.069 15.78
1236 56218 3859872185 1126 2/28 11:22 4 4 35.000 1.099 38.47 LIMIT
1237 28593 4136528253 9138 2/28 11:22 3 3 13.635 1.299 17.71
1238 82429 3834546687 2491 2/28 11:23 2 2 4.197 1.119 4.70
1239 65289 5006127285 9183 2/28 11:23 1 1 6.557 1.159 7.60
1240 65180 9097075558 6249 2/28 11:24 2 2 9.316 1.069 9.96
=============
448.281514.84
R*

How to sort a transaction printout


You can use the P1 and P2 options (the P stands for parameter) with the PRINT TRANSACTION command to sort and print transactions.

Quantity and dollar totals are printed for each section specified by P2 and subtotals are printed for each group specified by P1, if the Site Controller is configured to do so.
To sort transactions, type PRINT TRANSACTION;P2=value2,P1=value1. Substitute the names of the fields you want to sort by for value2 and value1.

How to print specified types of transactions

The P1 and P2 options, used to specify fields to be sorted, can be used to restrict the printout to only those transactions with a given value in the specified field.

For example:
PRINT TRANSACTION;P2=ACCOUNT=54,P1=PR does a P2 sort by account number and includes only transactions whose account number begins with 54.
PRINT TRANSACTION;P1=AUTH=SC prints transactions whose authorization code begins with SC.
PRINT TRANSACTION;P2=AUTH=CASH prints out only transactions whose authorization code begins with CASH.
PRINT TRANSACTION;P1=P#=1 prints out only transactions that were completed on pump number 1.
PRINT TRANSACTION;P1=PR=1 prints out only transactions that used product number 1.
PRINT TRANSACTION;P2=DATE=930610 prints out transactions that occurred on June 10, 1993.
PRINT TRANSACTION;P1=$TOTAL=500 prints out all $5.00 sales.
PRINT TRANSACTION;P1=QTY=10000 prints out all ten-gallon sales.

How to print a range of transactions

You can specify a range of transactions to print with the PRINT TRANSACTION command.

If the starting transaction number specified is not in the file, no transactions are printed. The printout stops after the last transaction number specified or at the end of the file if the ending number is not in the file.
For example:
PRINT TRANSACTION 23-150 prints transactions 23 through 150.
PRINT TRANSACTION 23- prints transaction number 23 through the end of the transaction file.
PRINT TRANSACTION -5 prints transactions from the beginning of file through transaction 5.
PRINT TRANSACTION 34 prints only transaction number 34.
PRINT TRANSACTION;P2=ACC=54, 1-10 prints transactions whose account number starts with 54, in the transaction range 1 through 10.


Basic CFNIII Commands
[Top of the page]