A Mainframe IDE Powered By Unix Technology [16] - Compile local file with Rational Developer for System z
来源:互联网 发布:打立出局淘汰赛算法 编辑:程序博客网 时间:2024/06/06 04:49
Here use PLI as example: 2 choices to integete compile results with vim:
.
1. Compile source on Mainframe then use XDC command to save results into dataset or use ftp and site command to fetch result from job's sysout. After this we can reformat result and integrate with vim.
I already introduced that, first use one shell to reformat result that vim can read it, then use vim command to open error file in quickfix window.
2. Compile local file with Rational developer for System z(RDZ), this is much more fast than option 1.
.
Today, I will show you how to compile with RDZ.
.
You can download RDZ from ibm.com for 50 days' trial version. After installation, add X:/Program Files/IBM/SPD/bin/ into enviroment variable PATH. Then you can call pli.exe to compile pli source in command window with this format:
pli.exe file_name.pli (Compile time option
In order to integrate with vim, do the steps bellow:
1. Change $VIMRUNTIME/compiler/pli.vim:
let current_compiler = "pli" “compiler type
CompilerSet makeprg=rdzpli.exe "shell script to call pli.exe and pass compile time option to pli.exe
CompilerSet errorformat=%f.pli(%l:2)/ :/ IBM%nI/ %t/ %m "error message file format
.
2.Create one shell script "rdzpli.sh" and use shc compile as executable file, then move to Cygwin/bin.
So we can call rdzpli to compile pli source:
rdzpli filename or rdzpli -i filename to throw out information level's msg.
pli.exe receive filename as parm and then search for filename.pli to compile, we almost use file without extention file name.
So copy filename to filename.pli then compile it.
/(include /(ext/(/' /',Inc,Cpy/)/) is compile time option pass to pli.exe, this configure copybook file's extention name, and search in sequence: blank, inc and cpy.
.
3. Add one system virable INCLUDE which value is the folder contains copybook. pli.exe search IBM.SYSLIB and then INCLUDE to find copybook.
.
4. Compile: I use the source from multics: www.multicians.org
Use vim open it and edit, then use :make % command, % means current filename.
Vim will call rdzpli.exe in this format: rdzpli.exe <current_filename>, the compilation result will be open in quickfix window automaticlly after compile complete.
Quickfix:
Maybe it's not the best way to compile pli, but it can integrate with vim to locate error position in quickfix then use vim's advantage. Perhaps we can integrate vim with RDZ based on ecplise in the future.
- A Mainframe IDE Powered By Unix Technology [16] - Compile local file with Rational Developer for System z
- A Mainframe IDE Powered By Unix Technology [12] - Integrate submit JCL and compile with Vim
- A Mainframe IDE Powered By Unix Technology [11] - Submit JCL from ftp command or shell script
- Accessing the Local File System with Flex
- Apollo Local File System
- Jinja2 example for generating a local file using a template
- Tips for Writing a File System Filter
- Check for a case sensitive file system
- ADD a new USERID in mainframe system
- unix file system
- Unix file System Structure
- Unix File System
- ORA-00245: control file backup failed; target is likely on a local file system
- ORA-00245: control file backup failed; target is likely on a local file system
- ORA-00245: control file backup failed; target is likely on a local file system
- ORA-00245: control file backup failed; target is likely on a local file system
- Build a Python IDE for Windows with Notepad++ and IPython
- Developing Web Services with Open Source - A quick start for Web services technology
- jdk的安装
- 重装系统的问题
- C++的效率浅析
- ADO封装类(此类不完善,欢迎拍砖)
- gridview获取当前行索引的方法
- A Mainframe IDE Powered By Unix Technology [16] - Compile local file with Rational Developer for System z
- [windows_internals]Stack Frame
- 卸载了瑞星防火墙 感觉真是爽
- 了解了一下财付通接口
- dbms_random
- 回忆青牛的笔试题
- C# .NET4.0 自定义文件并实现文件与应用程序关联
- 简单计算器
- Java读取UTF-8格式txt文件第一行出现乱码——问号“?”及解决;Java读带有BOM的UTF-8文件乱码原因及解决方法