Example
SORT SALES WITH PART.NO = "ABC]" BY POSTCODE CUST.NAME POSTCODE TOTAL VALUE DBL-SPC HDR-SUPP (PSORT the jQL Command.
SALES the filename
WITH PART.NO = "ABC]"
The selection criterion: select all records, which contain a part number beginning with ABC.
BY POSTCODE
The sort criterion
CUST.NAME POSTCODE TOTAL VALUE
The output specification:
- Column 1 will contain the key of the SALES file
- Column 2 will contain the customer name
- Column 3 will contain the POSTCODE.
- Column 4 will contain VALUE (this is totaled at the end of the report)
DBL-SPC HDR-SUPP The format specifications - Double-space the lines and suppress the automatic header.
(P An option: redirect output to the system printer, rather than to the terminal.PART.NO, CUST.NAME, POSTCODE, VALUE.
References to data definition records defined in the dictionary level of the SALES file
0 comments:
Post a Comment