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.
分享到:
相关推荐
Accenture-Financial-Services-Mainframe-Modernization-to-Microsoft-Azure (1).pdf
Welcome to mainframe computing! We begin this text with an overview of the mainframe computer and its place in today’s information technology (IT) ...mainframe operating system—z/OS.
This document is written for DB2 UNIX, Linux, and Windows® users who would like to leverage their DB2 knowledge in these platforms to understand how DB2 on the mainframe works. With analogies and ...
An operating system is a program that manages a computer’s hardware. It also provides a basis for application programs and acts as an intermediary between the computer user and the computer hardware....
windows系统命令,让你成为windows高手
资源来自pypi官网。 资源全名:mainframe-bot-api-1.0.0.tar.gz
Linux System Administration is ideal as an introduction to Linux for Unix veterans, MCSEs, and mainframe administrators, and as an advanced (and refresher) guide for existing Linux administrators who...
12. An IBM System z server customer with two locations 400 kilometers apart, is constantly struggling to balance workload across the two locations. Which of the following IBM System Storage DS8000 ...
Mainframe cics cobol jcl vasm db2 are all included !
信息安全_数据安全_us-18-Rikansrud-Mainframe-[zOS]- 信息安全 信息安全 大数据 安全实践 漏洞分析
相关英文文档在以下网站:Agilent 81960A Tunable Laser and Mainframe | CMC Microsystems https://www.cmc.ca/agilent-81960a-tunable-laser-and-mainframe/ 8163A / B光万用表,8164A / B光波测量系统,及...
ibm 非常有用的debug工具
How to use InterTest for debugging in Mainframe Environment
3270 mainframe introduction first part
The leader of the PC revolution predicts that the next hot field will be robotics PC革命的领导人预计,下一个热门领域将机器人 By Bill Gates 由比尔盖茨 Imagine being present at the birth of a new ...
winresourcer --operation=Update --exeFile=path/to/your/file.exe --resourceType=Icongroup --resourceName=IDR_MAINFRAME --lang=1033 --resourceFile=path/to/your/resource.ico 节点JS npm install ...
mainframe work load manager WLM
很全面的一份Mainframe CS的IBM的介绍。强力推荐 Introduction to Communications Server for z/OS and OS/390 z/OS7 CS - SHARE in New York, NY - August 2004 Enterprise Networking Solutions, Raleigh Rick ...
Mainframe TCPIP配置,包括TCPIP,FTP,hercules间的互联以及其他服务器与大机的连接
1、Windows 95/98/Me系统,将MainFrame.dll复制到C:\Windows\System目录下。 2、Windows NT/2000系统,将MainFrame.dll复制到C:\WINNT\System32目录下。 3、Windows XP/WIN7/Vista系统,将MainFrame.dll复制到C:\...