Hi,
I have a main file (Quest) and 21 related files.
At the end of the input data file 21 that want to go back to the file Quest for new entry. How?
I tried:
FQ21 AFTER ENTRY IF FQ21=1 THEN GOTO WRITE ENDIF END END
and
FQ21 AFTER ENTRY IF FQ21=1 THEN GOTO QUEST ENDIF END END
-------------------------------------- Silvano Cesar da Costa Departamento de Estatística Universidade Estadual de Londrina Fone: 3371-4346 --------------------------------------
You probably mean "records" rather than files?
If so, it is simple, no commands are needed in the CHK file of the related file, just press F10 to return to the parent file, whenever you have entered the last of the child records belonging to one given parent.
Hans
On 20:59, epidata-list@lists.umanitoba.ca wrote:
Hi,
I have a main file (Quest) and 21 related files.
At the end of the input data file 21 that want to go back to the file Quest for new entry. How?
I tried:
FQ21 AFTER ENTRY IF FQ21=THEN GOTO WRITE ENDIF END END
and
FQ21 AFTER ENTRY IF FQ21=THEN GOTO QUEST ENDIF END END
Silvano Cesar da Costa Departamento de Estatística Universidade Estadual de Londrina Fone: 3371-4346
You should look at the command "relate" in the help file.
To see a specific implementation I suggest you download these three and look at the check files: *1 Relate example - Clinical Study with four forms **2 Relate example - Multilevel, Village, Family, Person - Nutritional survey of region in Burkina Faso **3 Relate example - hospital infections - 3 examples*
You find it all at http://www.epidata.dk/examples.php
Let us know how it works at the end - your example could be added to the examples page. (without proper data obviously)
regards Jens Lauritsen EpiData Association
On 2011-04-20 16:26, epidata-list@lists.umanitoba.ca wrote:
Hi,
I have a main file (Quest) and 21 related files.
At the end of the input data file 21 that want to go back to the file Quest for new entry. How?
I tried:
FQ21 AFTER ENTRY IF FQ21=1 THEN GOTO WRITE ENDIF END END
and
FQ21 AFTER ENTRY IF FQ21=1 THEN GOTO QUEST ENDIF END END
Silvano Cesar da Costa Departamento de Estatística Universidade Estadual de Londrina Fone: 3371-4346
EpiData-list mailing list EpiData-list@lists.umanitoba.ca http://lists.umanitoba.ca/mailman/listinfo/epidata-list
participants (1)
-
epidata-list@lists.umanitoba.ca