In this section: |
SALES contains sample data about a dairy company with an affiliated store chain. Its segments are:
Lists the stores buying the products.
Contains the dates of inventory.
Contains sales data for each product on each date. The PROD_CODE field is indexed. The RETURNS and DAMAGED fields have the MISSING=ON attribute.
FILENAME=KSALES, SUFFIX=FOC SEGNAME=STOR_SEG, SEGTYPE=S1 FIELDNAME=STORE_CODE, ALIAS=SNO, FORMAT=A3, $ FIELDNAME=CITY, ALIAS=CTY, FORMAT=A15, $ FIELDNAME=AREA, ALIAS=LOC, FORMAT=A1, $ SEGNAME=DATE_SEG, PARENT=STOR_SEG, SEGTYPE=SH1, FIELDNAME=DATE, ALIAS=DTE, FORMAT=A4MD, $ SEGNAME=PRODUCT, PARENT=DATE_SEG, SEGTYPE=S1, FIELDNAME=PROD_CODE, ALIAS=PCODE, FORMAT=A3, FIELDTYPE=I,$ FIELDNAME=UNIT_SOLD, ALIAS=SOLD, FORMAT=I5, $ FIELDNAME=RETAIL_PRICE,ALIAS=RP, FORMAT=D5.2M,$ FIELDNAME=DELIVER_AMT, ALIAS=SHIP, FORMAT=I5, $ FIELDNAME=OPENING_AMT, ALIAS=INV, FORMAT=I5, $ FIELDNAME=RETURNS, ALIAS=RTN, FORMAT=I3, MISSING=ON,$ FIELDNAME=DAMAGED, ALIAS=BAD, FORMAT=I3, MISSING=ON,$
SECTION 01 STRUCTURE OF FOCUS FILE SALES ON 05/15/03 AT 14.50.28 STOR_SEG 01 S1 ************** *STORE_CODE ** *CITY ** *AREA ** * ** * ** *************** ************** I I I I DATE_SEG 02 I SH1 ************** *DATE ** * ** * ** * ** * ** *************** ************** I I I I PRODUCT 03 I S1 ************** *PROD_CODE **I *UNIT_SOLD ** *RETAIL_PRICE** *DELIVER_AMT ** * ** *************** **************