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 ...
随机推荐
- PAT 乙级 -- 1008 -- 数组元素循环右移问题
题目简述 一个数组A中存有N(N>0)个整数,在不允许使用另外数组的前提下,将每个整数循环向右移M(M>=0)个位置,即将A中的数据由(A0 A1--AN-1)变换为(AN-M -- AN ...
- android中Stub Proxy答疑
在上篇添加账户源码解析的博文中,我们发现功能是由AccountManager的mService成员来实现.而mService其实是AccountManagerService,如果对android系统有 ...
- poj1190深搜 生日蛋糕
题意: 让你制作一个蛋糕,这个蛋糕有m层,而且每层都是圆柱形,并且每一层都必须满足 ri>ri+1 && hi > hi+1,然后给出蛋糕的总体积是n*PI,还有 ...
- 逆向 ctype.h 函数库 isalnum、iscntrl、islower、isxdigit、tolower 函数
0x01 isalnum 函数 函数原型:int isalnum(int c); 函数功能:检查所传的字符是否是字母和数字 动态链接库:ucrtbase.dll C\C++ 实现: #define _ ...
- 源码分析SpringCloud Gateway如何加载断言(predicates)与过滤器(filters)
我们今天的主角是Gateway网关,一听名字就知道它基本的任务就是去分发路由.根据不同的指定名称去请求各个服务,下面是Gateway官方的解释: https://spring.io/projects/ ...
- vue 2.9.6升级到最新版本
在看文档https://cli.vuejs.org/zh/guide/installation.html中,按步骤升级vue: 于是就先通过 npm uninstall vue-cli -g卸载vue ...
- vue-router的几种用法
1.全局路由守卫 router.beforeEach((to, from, next) => { // ... }) 当一个导航触发时,全局前置守卫按照创建顺序调用.守卫是异步解析执行,此时导航 ...
- 程序时间计算函数(被tle出阴影来了)
初次意识到程序的时间复杂度(tle多了 ) 第一次写博客(被大佬们的博客所折服orz) 拿打素数表的程序为例 优化前代码: #include<iostream> #include<c ...
- Spring context的refresh函数执行过程分析
今天看了一下Spring Boot的run函数运行过程,发现它调用了Context中的refresh函数.所以先分析一下Spring context的refresh过程,然后再分析Spring boo ...
- 使用 vue3 的自定义指令给 element-plus 的 el-dialog 增加拖拽功能
element-plus 提供的 el-dialog 对话框功能非常强大,只是美中不足不能通过拖拽的方式改变位置,有点小遗憾,那么怎么办呢?我们可以通过 vue 的自定义指令来实现一个可以拖拽的对话框 ...