SELECT ICECREAM-FILE
ASSIGN TO DATABASE-ICEPF
ORGANIZATION IS INDEXED
RECORD KEY IS IC-ICE-CREAM-CODE.
SELECT SHIPPING-FILE
ASSIGN TO DATABASE-ICSHIPPF
ORGANIZATION IS INDEXED
ACCESS IS RANDOM
RECORD KEY IS SHIPPING-CODE.
ASSIGN TO DATABASE-ICEPF
ORGANIZATION IS INDEXED
RECORD KEY IS IC-ICE-CREAM-CODE.
SELECT SHIPPING-FILE
ASSIGN TO DATABASE-ICSHIPPF
ORGANIZATION IS INDEXED
ACCESS IS RANDOM
RECORD KEY IS SHIPPING-CODE.
It gives me i-o error, then I press enter twice (one per file) and the program seems to run fine. But when I select, assign like this:
SELECT ICECREAM-FILE
ASSIGN TO DISK-ICEPF.
SELECT SHIPPING-FILE
ASSIGN TO DATABASE-ICSHIPPF.
ASSIGN TO DISK-ICEPF.
SELECT SHIPPING-FILE
ASSIGN TO DATABASE-ICSHIPPF.
It generates no errors, but of course it won't run as needed due to access mode problems. What am I doing wrong? The display file generates no errors. Only two physical files.
OPEN I-O ICECREAM-FILE
DISPLAY-FILE.
OPEN INPUT SHIPPING-FILE.
DISPLAY-FILE.
OPEN INPUT SHIPPING-FILE.