[EpiData-list] Re: EpiData-list Digest, Vol 28, Issue 5

epidata-list at lists.umanitoba.ca epidata-list at lists.umanitoba.ca
Sun Feb 12 09:47:21 CST 2006


Hello

The final code is :

AFTER FILE
    BACKUP "C:\formulaire\sauvegardes" ZIP form DATE
    EXECUTE "C:\formulaire\bin\EpiC.exe" "e SPS
C:\formulaire\donnees\Registre.rec
C:\formulaire\exportation_spss\Registre.sps REPLACE"  NOWAIT
    EXECUTE "C:\formulaire\bin\EpiC.exe" "e SPS
C:\formulaire\donnees\reponse_DT4.rec
C:\formulaire\exportation_spss\reponse_DT4.sps REPLACE"  NOWAIT
    EXECUTE "C:\formulaire\bin\EpiC.exe" "e SPS
C:\formulaire\donnees\reponse_somatostatine.rec
C:\formulaire\exportation_spss\reponse_somatostatine.sps REPLACE" 
NOWAIT
    EXECUTE "C:\formulaire\bin\EpiC.exe" "e SPS
C:\formulaire\donnees\reponse_triac.rec
C:\formulaire\exportation_spss\reponse_triac.sps REPLACE"  NOWAIT
    EXECUTE "C:\formulaire\bin\EpiC.exe" "e SPS
C:\formulaire\donnees\reponse_T3.rec
C:\formulaire\exportation_spss\reponse_T3.sps REPLACE"  NOWAIT
    EXECUTE "C:\formulaire\bin\EpiC.exe" "e SPS
C:\formulaire\donnees\reponse_dopaminergique.rec
C:\formulaire\exportation_spss\reponse_dopaminergique.sps REPLACE" 
NOWAIT
END

i don't know if "" are needed ( they were with EXPORT.exe binary file
), but it works well. With Export.exe, only one file is created, a
.sps file with labels and data. With EpiC.exe, it's like epidata,
datas are in a .txt file and labels with data emplacement in a .sps. I
made a .sps called EXPORTATION.sps, wich is made with copies of all
.sps files ( registre.sps, reponse_*.sps ), and then merge all these
data with the numdos key and then create a registre_reponse.sav spss
file. In fact, i only use new .txt files made "after file".

In didn't found something to export only data to .txt in a
sps-readable format. But it doesn't matter, all works.

Thanks a lot for help and for EpiC.exe ( it came very just on time, as
I had to give the form last friday  ;) ).

Jerome

P.S : if someone want it, i can send the .sps file but it's not the
right place here ;)





2006/2/9, epidata-list-request at lists.umanitoba.ca
<epidata-list-request at lists.umanitoba.ca>:
> Send EpiData-list mailing list submissions to
>         epidata-list at lists.umanitoba.ca
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.umanitoba.ca/mailman/listinfo/epidata-list
> or, via email, send a message with subject or body 'help' to
>         epidata-list-request at lists.umanitoba.ca
>
> You can reach the person managing the list at
>         epidata-list-owner at lists.umanitoba.ca
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of EpiData-list digest..."
>
>
> EpiData-list mailing list
> ___________________________________
>
> Today's Topics:
>
>    1. Export code in a .chk file (epidata-list at lists.umanitoba.ca)
>    2. Check files as Email Attachment (epidata-list at lists.umanitoba.ca)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 9 Feb 2006 09:18:11 +0100 (CET)
> From: epidata-list at lists.umanitoba.ca
> Subject: [EpiData-list] Export code in a .chk file
> To: <epidata-list at lists.umanitoba.ca>
> Message-ID:
>         <25242.130.226.78.129.1139473091.squirrel at webmail.webhosting.dk>
> Content-Type: text/plain; charset=iso-8859-1
>
> >.....I used the EXPORT.exe from an old version of Epi-Info with the
> EXECUTE command in epidata. It seems to work very well.
>
> This would work, but if you have properly defined e.g. missing values and
> value labels (comment legal) in the chk file for your study, then
> neither variable lable, value label or missing value will be exported to
> SPSS with the old epi6 export file (I could be wrong).
>
> Regarding BACKUP command. If you want one copy marked with current
> date:
>
> IF you want as well a working copy in the backup folder and a zip copy,
> something like this (the principle here should be tested with proper files):
>
> AFTER FILE
>   * first backup from current folder to f:\backup
>   BACKUP F:\backup\
>
>   * then create a copy of that folder with EpiC:
>     c:\epidata\EpiC zip f:\backupzip\prjA  path replace date f:\backup
>
>   * The backup file from today would be: f:\backupzip\prjA_09feb2006.zip
>
>   * then export to SPSS
>     c:\epidata\EpiC e spss f:\backup\file1 f:\spss\file1  replace
>     c:\epidata\EpiC e spss f:\backup\file2 f:\spss\file1  replace
>     c:\epidata\EpiC e spss f:\backup\file3 f:\spss\file1  replace
>     c:\epidata\EpiC e spss f:\backup\file4 f:\spss\file1  replace
>     c:\epidata\EpiC e spss f:\backup\file5 f:\spss\file1  replace
> END
>
> Note that all folders must be created before calling epic first time.
>
> With the EpiC.exe being used all labels will be exported. I suggest that
> you send the final solution to this list, such that other users can see
> the
> solution.
>
> Jens Lauritsen
> Coordinator and initiator of EpiData Project
> http://www.epidata.dk
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 09 Feb 2006 13:37:47 +0100
> From: epidata-list at lists.umanitoba.ca
> Subject: [EpiData-list] Check files as Email Attachment
> To: EpiData-list at lists.umanitoba.ca
> Message-ID: <BAY106-F319344F1FC4736B1646EFC5030 at phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"; format="flowed"
>
>
>
> ------------------------------
>
> ________________________________________
> EpiData-list at lists.umanitoba.ca
> http://lists.umanitoba.ca/mailman/listinfo/epidata-list
>
>
> End of EpiData-list Digest, Vol 28, Issue 5
> *******************************************
>


More information about the EpiData-list mailing list