Top Navigational Bar

Merge - Nesting Secondary Files From A Second
DocumentID: 651559
Revision Date: 29-Feb-96 8:29:08 PM

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

Problem

Symptoms: The customer created a merge with a primary and secondary file. The primary file is a standard one page letter with two fields for the inside address.
The secondary file contains three {Nest Secondary} files only: {Nest Secondary}One~, {Nest Secondary}Two~, {Nest Secondary}Three~.
When the user merges the primary and secondary files, the information from the nested secondaries comes in fine; however, the letter in the primary file is duplicated again at the end of the merge with no fields, just the letter. The customer then has to delete that page before printing. Also, the merge does not recognize named fields when using {Nest Secondary} commands unless the user places those named fields at the first of the secondary file, which contains the {Nest Secondary} commands. Solutions: Nesting secondary files from a secondary file can sometimes be tricky. The Problem Resolution Specialist used the following format to get it to work:
{NEST SECONDARY}One~{END FIELD}
{END RECORD}
[HPg]
{NEST SECONDARY}Two~{END FIELD}
{END RECORD}
[HPg]
{NEST SECONDARY}Three~{END FIELD}
{END RECORD}
[HPg]

Rather than:
{NEST SECONDARY}One~
{NEST SECONDARY}Two~
{NEST SECONDARY}Three~

Using the second example (that the customer was using) and {End Record} will return to the secondary file that called it. Then, it will try to go to another record, and since there isn't another record, it will stop. If the first example is used, the next record is found, which causes the second {NEST SECONDARY} command to be found, and it is executed. There are probably other ways of doing it, but this works as expected.

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.