Top Navigational Bar

Chaining Primary File Helpful Hint
DocumentID: 651155
Revision Date: 29-Feb-96 8:29:04 PM

The information in this document applies to:
WordPerfect® 5.1 for DOS

Problem

Solutions: To merge four primary files with the same secondary file, a customer used {CHAIN PRIMARY}filename~ at the end of each primary file. This only merged the first record of the secondary file with each primary file. To correct this problem, the customer put a "dummy" record at the end of the secondary file that has an asterisk for each field. At the top of each primary file, he created a {WHILE} loop. {WHILE}"{FIELD}1~"!="*"~ is the correct format. At the end of the each primary file he put {NEXT RECORD}{END WHILE}{SUBST SECONDARY}filename~ {CHAIN PRIMARY}filename~. This loops each primary filename to read the secondary file until it is finished, and then it moves on to the next primary file.

Answer:

Details:


Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER.