CodeGen CreateFile实用程序
CodeGen CreateFile实用程序
CreateFile实用程序允许根据存储库文件或结构定义创建ISAM文件。
CreateFile实用程序的命令行选项如下:
CreateFile -f <fname> | -s <sname> [-out filespec] [-r] [-h]
-f <fname>
Name of
repository file definition to process.
-s <sname>
The name of
the repository structure definition to process.
-in <infile>
Name of JSON
input file containing the details of file(s) to create.
-out <filespec>
File
spec of file to create, overriding repository file spec. Not used with -in.
-r Replace existing files. The default is not to replace
existing files. Not used with -in.
-h Display this usage information.
当基于存储库文件定义创建文件时,密钥规范将由分配给该文件的第一个结构中定义的键确定。当基于存储库文件结构创建文件时,文件规范将由分配给该结构的第一个文件确定。CreateFile假定存储库键定义的定义顺序与它们引用的键相同。假设第一个定义的键是主键,第二个键(如果有的话)是第一个备用键,依此类推。
-f和-s选项只能用于创建ISAM文件。-in选项可用于创建ISAM和相关文件,但只有在提供包含初始数据的输入文件时才能创建相关文件。
与-in选项一起使用的输入文件必须是类似于以下内容的JSON文件:
[
{
"RepositoryFileName": "CUSTOMER",
"CreateFile":
"DAT:CUSTOMER.ISM",
"LoadFromFile":
"TESTDATA:CUSTOMER.TXT",
"OverwriteExistingFile": true
},
{
"RepositoryFileName": "OPTIONS",
"CreateFile":
"DAT:OPTIONS.DDF",
"LoadFromFile":
"TESTDATA:OPTIONS.TXT",
"OverwriteExistingFile": false
}
]
包括“CreateFile”是可选的。默认情况下,使用存储库文件定义的文件规范。
对于ISAM文件,包含“LoadFromFile”是可选的,如果没有提供,将创建一个空文件。对于相对文件,必须提供一个初始数据文件,并且该文件必须至少包含一个适当长度的记录。 包括“OverwriteExistingFile”是可选的。默认情况下,文件不会被覆盖。
Example
1
C:\> createfile
-f CUSTFIL
DAT:customer.ism
-> File created.
Example 2
C:\> createfile
-s CUSTOMER
DAT:customer.ism
-> File created.
Example 3
C:\> createfile
-f CUSTFIL -f DAT:customer_save.ism
DAT:customer_save.ism
-> File created.
Example 4
C:\> CreateFile
-in CreateAndLoadFiles.json
Where CreateAndLoadFiles,json
contains:
[
{
"RepositoryFileName": "MEMBERS",
"CreateFile": "CUFILES:MEMB01.DDF",
"LoadFromFile": "SEQ:MEMB01.SEQ",
"OverwriteExistingFile": true
},
{
"RepositoryFileName": "ACCOUNTS",
"CreateFile": "CUFILES:MEMB02.DDF",
"LoadFromFile": "SEQ:MEMB02.SEQ",
"OverwriteExistingFile": true
},
{
"RepositoryFileName": "PERSONS",
"CreateFile": "CUFILES:PERMST.DDF",
"LoadFromFile": "SEQ:PERMST.SEQ",
"OverwriteExistingFile": true
},
{
"RepositoryFileName": "CHCARD",
"CreateFile": "CUFILES:CHCARD.DDF",
"LoadFromFile": "SEQ:CHCARD.SEQ",
"OverwriteExistingFile": true
},
{
"RepositoryFileName": "TRANSMAS",
"CreateFile": "CUTRX:TRANSMAS.DDF",
"LoadFromFile": "SEQ:TRANSMAS.SEQ",
"OverwriteExistingFile": true
},
{
"RepositoryFileName": "OPTIONS",
"LoadFromFile": "SEQ:OPTIONS.SEQ",
"OverwriteExistingFile": true
}
]
输出如下:
********************************************************************************
Processing file
MEMBERS
- ISAM file
CUFILES:MEMB01.DDF replaced
- Data load
command: fconvert -s -it SEQ:MEMB01.SEQ -ai CUFILES:MEMB01.DDF
- Data load
starting at: 14:43:34
Summary of Statistics
Records Read/Write: 000004/000004 Errors
Read/Write: 0/0
Exception Records: 0
Elapsed Time:
00:00:01
Kb/sec: 5.8594
- Data load
ending at: 14:43:34
********************************************************************************
Processing file
ACCOUNTS
- ISAM file
CUFILES:MEMB02.DDF replaced
- Data load
command: fconvert -s -it SEQ:MEMB02.SEQ -ai CUFILES:MEMB02.DDF
- Data load
starting at: 14:43:34
Summary of Statistics
Records Read/Write: 000004/000004 Errors
Read/Write: 0/0
Exception Records: 0
Elapsed Time:
00:00:01
Kb/sec: 7.8125
- Data load
ending at: 14:43:34
********************************************************************************
Processing file
PERSONS
- ISAM file
CUFILES:PERMST.DDF replaced
- Data load
command: fconvert -s -it SEQ:PERMST.SEQ -ai CUFILES:PERMST.DDF
- Data load
starting at: 14:43:34
Summary of Statistics
Records Read/Write: 000003/000003 Errors
Read/Write: 0/0
Exception Records: 0
Elapsed Time:
00:00:01
Kb/sec: 4.7402
- Data load
ending at: 14:43:34
********************************************************************************
Processing file
CHCARD
- ISAM file
CUFILES:CHCARD.DDF replaced
- Data load
command: fconvert -s -it SEQ:CHCARD.SEQ -ai CUFILES:CHCARD.DDF
- Data load
starting at: 14:43:34
Summary of Statistics
Records Read/Write: 000003/000003 Errors
Read/Write: 0/0
Exception Records: 0
Elapsed Time:
00:00:01
Kb/sec: 2.9297
- Data load
ending at: 14:43:34
********************************************************************************
Processing file
TRANSMAS
- ISAM file
CUTRX:TRANSMAS.DDF replaced
- Data load
command: fconvert -s -it SEQ:TRANSMAS.SEQ -ai CUTRX:TRANSMAS.DDF
- Data load
starting at: 14:43:34
Summary of Statistics
Records Read/Write: 000034/000034 Errors
Read/Write: 0/0
Exception Records: 0
Elapsed Time:
00:00:01
Kb/sec: 34.8965
- Data load
ending at: 14:43:34
********************************************************************************
Processing file
OPTIONS
- RELATIVE
file CUFILES:CUNOPT.DDF will be created
- Data load
command: fconvert -s -it SEQ:OPTIONS.SEQ -or -fr 651 CUFILES:CUNOPT.DDF
- Data load
starting at: 14:43:34
Summary of Statistics
Records Read/Write: 000005/000005 Errors
Read/Write: 0/0
Exception Records: 0
Elapsed Time:
00:00:01
Kb/sec: 0.0049
- Data load
ending at: 14:43:34
********************************************************************************
Processing
summary:
- 6 files
created, 0 failed.
- 6 files
loaded, 0 failed.
********************************************************************************
CodeGen CreateFile实用程序的更多相关文章
- 代码生成codegen
代码生成codegen 该模块提供了从SymPy表达式生成直接可编译代码的功能.该codegen功能是SymPy中代码生成功能的用户界面.下面为可能希望直接使用框架的高级用户提供了一些实现细节. 注意 ...
- CodeGen API分析
CodeGen API分析 作为使用命令行界面的替代方法,开发人员可以使用核心CodeGen环境编写自定义工具或实用程序来生成代码,从而将CodeGen更紧密地集成到开发环境中. 为了实现这一点,Co ...
- Orchard中codegen相关命令
Orchard开放了命令行功能,用于在快速创建代码. 由于该功能默认没有开启.系统中提供两种开启方式: 1.进入管理后台->Modules->找到[Code Generation]-> ...
- CreateFile函数详解
CreateFile函数详解 CreateFile The CreateFile function creates or opens the following objects and returns ...
- CreateFile() 打开u盘 物理设备
//以下是用的vs2010 windows7 64 管理员权限编译成功的 HANDLE hDev = CreateFile(TEXT("\\\\.\\PhysicalDrive1" ...
- 第10章 同步设备I/O和异步设备I/O(1)_常见设备及CreateFile函数
10.1 打开和关闭设备 10.1.1 设备的定义——在Windows中可以与之进行通信的任何东西. (1)常见设备及用途 设备 用途 用来打开设备的函数 文件 永久存储任何数据 CreateFile ...
- ePass.CreateFile
javascript和vbscript中没有结构体Struct,ePass的ActiveX对象中把各个参数都展开了,官方文档只给出了对应的代码,没有给出相应的数字,示例代码中却都是数字,其VC代码中有 ...
- sqoop的codegen工具
一.codegen工具的使用 sqoop codegen --connect jdbc:mysql://localhost:3306/test --username root --password 1 ...
- CreateFile,WriteFile,ReadFile
注意: CreateFile 跟 fopen 不同,打开文件时不区分 文本方式 或 二进制 方式 ReadFile 或 WriteFile 都是对二进制数据进行操作 HANDLE WINAPI Cre ...
随机推荐
- Python脚本爬取网站美女照片
上次无意之中看到一个网站,里面全是美女的照片,我就心想,哪天有时间了得把这网站的所有美女照片都得爬下来.今天有时间,写了点代码,爬去了网站的所有照片.附上战果!图片实在是太多了,爬半个多小时 先附上所 ...
- PWD 好网站
http://angelboy.logdown.com/ https://wizardforcel.gitbooks.io/sploitfun-linux-x86-exp-tut/content/ h ...
- Vue源码解析-调试环境-代码目录和运行构建
目录 前言 1 代码结构 1.1 octotree插件 1.2 vue工程项目目录 1.3 主要代码目录src compiler core platforms server sfc shared 2 ...
- 记一次 .NET 医院CIS系统 内存溢出分析
一:背景 1. 讲故事 前几天有位朋友加wx求助说他的程序最近总是出现内存溢出,很崩溃,如下图: 和这位朋友聊下来,发现他也是搞医疗的,哈哈,.NET 在医疗方面还是很有市场的,不过对于内存方面出的问 ...
- Day006 什么是方法
什么是方法? 方法是语句的集合,他们在一起执行一个功能. 方法是解决一类问题的步骤的有序集合. 方法包含于类和对象中. 方法在程序中被创建,在其他地方被引用. 设计方法的原则 方法的本意是功能块, ...
- linux 发送邮件
参考资料:https://www.cnblogs.com/imweihao/p/7250500.html https://blog.csdn.net/liang19890820/article/det ...
- 【译】.NET 的新的动态检测分析
随着 Visual Studio 16.9 的发布,Visual Studio 中的检测分析变得更好用了.本文介绍我们新的动态分析工具.这个工具显示了函数被调用的确切次数,并且比我们以前的静态检测工具 ...
- Navicat操作MySQL简易教程
前言: 日常使用 MySQL 的过程中,我们可能会经常使用可视化工具来连接 MySQL ,其中比较常用的就是 Navicat 了.平时也会遇到某些同学问, Navicat 怎么安装,如何使用等问题.本 ...
- [bug] docker:write /var/lib/docker/tmp/GetImageBlob613162680: no space left on device
原因 分区空间不够,无法安装镜像 参考 https://www.cnblogs.com/elizwy/p/7722898.html https://blog.csdn.net/TinyJian/art ...
- Scala 中为什么不建议用 return 关键字
在scala中使用 return 的话,编译的时候会提示the latest statement is method is automatically returned, use of th retu ...