1 Star 0 Fork 0

cfg0523/progress

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
xx28.10.1cim.p 1.94 KB
一键复制 编辑 原始数据 按行查看 历史
cfg0523 提交于 2016-06-15 11:37 . first commit
/* xx28.10.1cim.p - Gen CIM for modifing ERS Option
Created By: Hayden (2015EE) 2016-06-15
Purpose: Gen CIM for modifing ERS Option
Runtime: 2015EE
Cimload: 2015EE
Upgrade Step:
1. run program in 2015EE generate *.cim files
2. doing cimload in each domain by cim file prefix
*/
{us/mf/mfdtitle.i}
def var outname as char format 'x(16)' init '28.10.1-ers' label 'Out File'.
def var outfile as char format 'x(24)'.
outfile = global_domain + '-' + outname + '.cim'.
repeat:
disp 'Gen CIM for modifing ERS Option' skip
'Runtime: 2015EE' skip
'Cimload: 2015EE' skip(1)
'Upgrade Step:' skip
' 1. run program in 2015EE generate *.cim files' skip
' 2. doing cimload in each domain by cim file prefix' skip(1)
outname colon 14 '.cim' space(2) outfile no-label view-as text skip
with frame a width 80 side-label.
prompt-for outname with frame a editing:
if frame-field = 'outname' then do:
if input outname <> '' then do:
disp global_domain + '-' + input outname + '.cim' @ outfile with frame a.
end.
else do:
disp '' @ outfile with frame a.
end.
end.
status input.
readkey.
apply lastkey.
end.
outname = input outname.
if outname = '' then do:
message 'Error: Please enter all Filenames'.
next.
end.
outfile = global_domain + '-' + outname + '.cim'.
os-delete value(outfile).
output to value(outfile).
for each ers_mstr where ers_domain = global_domain no-lock:
def var v_vend as char.
v_vend = trim(ers_vend).
put '@@batchload apersmt.p' skip.
put unformatted '"' v_vend '" "' ers_site '" "' ers_part '"' skip.
if v_vend <> '' and upper(substring(v_vend, length(v_vend))) = 'D' then do:
put unformatted 2.
end.
else do:
put unformatted 3.
end.
put ' -' skip.
put '@@end' skip.
end.
output close.
message 'Completed!'.
end.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cfg0523/progress.git
git@gitee.com:cfg0523/progress.git
cfg0523
progress
progress
master

搜索帮助