Hi,
I have FOCUS installed on Main Frames version. 7.1.1.
This is the first time I am writing a FOCUS program and I have encountered the below situation. Please help.
All together I have 5 files
FILE contents
---- --------
File1 Contains the course id
Course1 Contains course id and course desc
Course2 Contains course id and course desc
Course3 Contains course id and course desc
course4 contains course id and course desc
Now I have to fetch a single record with correct description of the course depending on the course id. The course id in file1 may be present in more than one course files. The order in which I have to fetch the right description is from file course4, course3, course2, course1.
In this situation what I can do is join file1 with course4, if there is no match then join file1 with course3 so on. I am unable to make out how will I findout if a join has not fetched any record.
Thanks
Sandesh Gadgil