For integrate submit JCL and compile with Vim, we need some pre-works:
1. One shell script: use ftp and site command to submit JCL to jes, we call it ftpwj.sh, JCL file name is passed as parameter.
2. One shell script: generate JCL for compile programs, the compile mode and program name can be passed to shell as parameters. We call it comp2jes.sh
Use shc compile the two scripts to executable files, and move them to folder which in $PATH.
Now we can use vim's scirpt to call these executable files to submit JCL or compile programs:
Submit JCL:
1
function
! SubmitJCL(
...
)
"{{{
2
if
&ft==
"jcl"
3
let
s:sourceFile=
substitute
(
expand
(
"%"
)
,"
//
"
,"/"
,"g"
)
4
else
5
echohl
ErrorMsg
| echo
"Not a JCL file"
|
echohl
NONE
6
return
7
endif
8
if
a:0
==
1
9
let
s:siteSys=
a:1
10
if
s:siteSys==
"w"
11
exec
"silent !ftpwj put "
.
s:sourceFile
12
elseif
s:siteSys==
"q"
13
exec
"silent !ftpqj put "
.
s:sourceFile
14
endif
15
else
16
exec
"silent !ftpwj put "
.
s:sourceFile
17
endif
18
endfunction
"}}}
JCL file is the parameter passed to function SubmitJCL and then passed to ftpwj.exe, ftpwj.exe will put it to JES.
ftpqj is another application like ftpwj, they can send JCL to diffrent server.
Compile programs:
20
function
! CompFile(
...
)
"{{{
21
if
&ft==
"pli"
22
let
s:sourceFile=
substitute
(
expand
(
"%"
)
,"
//
"
,"/"
,"g"
)
23
else
24
echohl
ErrorMsg
| echo
"Not a source file"
|
echohl
NONE
25
return
26
endif
27
if
a:0
==
1
28
let
s:sourceType=
a:1
29
call
FtpMput
()
30
if
s:sourceType==
"bat"
31
exec
"!comp2jes "
.
s:sourceFile.
" BAT"
32
elseif
s:sourceType==
"onl"
33
exec
"!comp2jes "
.
s:sourceFile.
" ONL"
34
endif
35
else
36
echohl
ErrorMsg
| echo
"Parameter needed"
|
echohl
NONE
37
endif
38
endfunction
"}}}
BAT or ONL is the compilation mode as parm transfer to comp2jes.
Program name also is one parm. Here call FtpMput function to transfer source to server then compile.
分享到:
相关推荐
Accenture-Financial-Services-Mainframe-Modernization-to-Microsoft-Azure (1).pdf
大型计算机 ------------------------------------------- 应用技术培训 --------------------------------------------------- JCL 语言与实用程序
mainframe 大型机 JCL语言与实用程序教程 中文经典版
Welcome to mainframe computing! We begin this text with an overview of the mainframe computer ...and the unique manner in which this work is processed by a widely used mainframe operating system—z/OS.
DD 语句常见参数——JCL MainframeDD 语句常见参数——JCL MainframeDD 语句常见参数——JCL MainframeDD 语句常见参数——JCL MainframeDD 语句常见参数——JCL MainframeDD 语句常见参数——JCL Mainframe
MAINFRAME JCL PPT 自学
Tutorial for JOB CONTROL LANGUAGE (JCL) for IBM Mainframe
学习本资源能够对JCL 语言有深入的了解,能够读懂和独立编 写各种JCL 语言,掌握常用实用程序的功能与使用,能根据需要编写进行处理的 JCL。
Mainframe cics cobol jcl vasm db2 are all included !
VSAM JCL mainframe 代码
Furthermore, it has trans- formed the way computing happens, which for both authors started by carrying decks of JCL (Job Control Language) cards for feeding an IBM mainframe, cul- minated with ...
jcl初学者必备ibm mainframe jcl handbook
资源来自pypi官网。 资源全名:mainframe-bot-api-1.0.0.tar.gz
信息安全_数据安全_us-18-Rikansrud-Mainframe-[zOS]- 信息安全 信息安全 大数据 安全实践 漏洞分析
IBM mainframe JCL经典面试题库(中英版)
IBM mainframe JCL的中文简明版教程
Web servers for Windows, UNIX (including Linux), Mac OS, VMS, and mainframe operating systems now support servlet and JSP technology either natively or by means of a plug-in. With only a small amount ...
JCL语言基础教程 Mainframe 的基础教程之一
日立大型机的JCL手册_影印版,日文 hitachi host jcl reference
a doco for JCL on mainframe.