rec批量合并+TXT转REC——Excel版
本工具是基于epic.exe写成了,原理很简单,利用excel根据epic.exe命令生成一个bat文件,运行它就可以,所以当前目录中必须要有epic.exe文件。epidata本身可以合并rec文件,但每次只能合并两个,效率比较低。[attach]6037[/attach]
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.导入完成.
[attach]6037[/attach]
EpiC - the EpiData command application version 3.1.2 14. Nov. 2006
(C) Copyright 2002-2006 - EpiData Association, [url]http://www.epidata.dk[/url]
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 [url]http://www.epidata.dk[/url])
List of errorcodes type: EpiC codes
页:
[1]