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 ...
随机推荐
- WindowsPE 第五章 导出表
导出表 PE中的导出表存在于动态链接库文件里.导出表的主要作用是将PE中存在的函数导出到外部,以便其他人可以使用这些函数,实现代码重用. 5.1导出表的作用 代码重用机制提供了重用代码的动态链接库,它 ...
- 分布式事务与Seate框架(1)——分布式事务理论
前言 虽然在实际工作中,由于公司与项目规模限制,实际上所谓的微服务分布式事务都不会涉及,更别提单独部署构建Seata集群.但是作为需要不断向前看的我,还是有必要记录下相关的分布式事务理论与Seate框 ...
- Root mapping definition has unsupported parameters
使用ElasticSearch创建映射报错 Root mapping definition has unsupported parameters 原因 使用的ES版本为7.2.0,不再支持创建指定类型 ...
- composer update -- memory_limit
compsoer update取消memory_limit限制.取消扩展对于版本的限制 php -d memory_limit=-1 ./composer.phar update --ignore-p ...
- JDBC往数据库里插入数据
首先还是一个工具类 插入数据
- (10)MySQL进阶篇SQL优化(InnoDB锁-间隙锁)
1.概述 当我们用范围条件而不是相等条件检索数据,并请求共享或排他锁时,InnoDB会给符合条件的已有数据记录的索引项加锁:对于键值在条件范围内但并不存在的记录,叫做"间隙(GAP)&quo ...
- python分析《三国演义》,谁才是这部书的绝对主角(包含统计指定角色的方法)
前面分析统计了金庸名著<倚天屠龙记>中人物按照出现次数并排序 https://www.cnblogs.com/becks/p/11421214.html 然后使用pyecharts,统计B ...
- 关于Redis哨兵机制,7张图详解!
写在前面 之前有位朋友去面试被问到Redis哨兵机制,这道题其实很多小伙伴都应该有被问到过!本文将跟大家一起来探讨如何回答这个问题!同时用XMind画了一张导图记录Redis的学习笔记和一些面试解析( ...
- Iterable 和 Iterator
可以被for循环输出的为iterable (可迭代对象) 可以被next()调用并不断返回下一个数据的对象为iterator迭代器(python一切皆对象) 数据流,无法知晓其终点,只能推过next不 ...
- Spring Cloud Alibaba Nacos Discovery 实战
Nacos 作为服务注册中心,可以快速简单的将服务自动注册到 Nacos 服务端,并且能够动态无感知的刷新某个服务实例的服务列表,为分布式系统提供服务注册与发现功能 一.创建服务 1.创建项目 pom ...