返回列表 发帖

rec批量合并+TXT转REC——Excel版

rec批量合并+TXT转REC——Excel版

本工具是基于epic.exe写成了,原理很简单,利用excel根据epic.exe命令生成一个bat文件,运行它就可以,所以当前目录中必须要有epic.exe文件。
epidata本身可以合并rec文件,但每次只能合并两个,效率比较低。

0.把qes文件和excel文件放到本文件夹下
1.把excel另存为文本文件,命名为"查漏补种覆盖范围表.txt"
2.右击recinput.bat,编辑,修改为第二行中的3个地方 为所对应的名字.此行的意思是:把txt文件导入qes数据库后生成rec文件
  epic.exe I TXT 第一个.TXT 第二个.REC qes=第三个.QES
3.保存退出
4.运行recinput.bat
5.导入完成.


EpiC - the EpiData command application version 3.1.2  14. Nov. 2006
(C) Copyright 2002-2006 - EpiData Association, http://www.epidata.dk
Programmed by M.Bruus. Design: JM.Lauritsen & M.Bruus

Export:   EpiC e[xport] exporttype recfile outfile|* [replace] options
Import:   EpiC i[mport] importtype inputfile recfile|* [replace] options
Revise:   EpiC rev[ise] qes_filename recfilename|* auto|first [force] options
Validate: EpiC v[alidate] file1[.rec] file2[.rec] [key1 [key2 [key3]]] options
Count Records: EpiC count fieldname recfile1 [recfile2] [file3...] options
Consistency check:  EpiC cc inputfilename consist.check_file|* options
Pack:               EpiC pack recfile options
Zip:                EpiC zip zipfilename [path] [update|replace] files...
Unzip:              EpiC unzip zipfilename destdir [replace]
Encrypt:            EpiC en[crypt] filename key|key=? [replace]
Decrypt:            EpiC de[crypt] filename key|key=? [replace]
Append:   EpiC app[end] fileA fileB fileC [KEYA=key] [KEYB=key] [USEALLFROMB]
Merge:    EpiC MER[GE] fileA fileB fileC KEY=keyfield [MERGEALLB]
               [COMMON=a|b] [KEYA=xxx] [KEYB=xxx]

Extended help and options: EpiC ? command, e.g. EpiC ? import

or see EpiC.rtf (Available from http://www.epidata.dk)
List of errorcodes type:    EpiC codes
附件: 您需要登录才可以下载或查看附件。没有帐号?受邀者注册

返回列表