无需 ISPF 的文件裁剪
我目前正在尝试为大型机 ISPF 面板编写一个更简单的外部接口,但是它利用 ISPF 文件定制在执行前修改 JCL 脚本,并且如果没有运行 ISPF 会话,则 ISPF 服务(包括文件定制)不可用。 我使用了一个名为“batchpdf”的 Rexx 脚本(http://www.sillysot.com/mvs/batchpdf.htm)来设置适当的 DD 语句,然后运行 ISPSTART 和 FTINCL,目前运行良好,但这似乎是一个脆弱的解决方案 - 如果公司更改其 ISPF 数据集串联,JCL 可能会崩溃。是否有任何解决方案可以在 ISPF 之外简单地运行文件裁剪(即在批处理/JES2 中)?
I'm currently attempting to write a simpler external interface to a mainframe ISPF panel, however it makes use of ISPF file tailoring to modify JCL scripts before execution, and ISPF services (including file tailoring) aren't available without a running ISPF session.
I've used a Rexx script called 'batchpdf' (http://www.sillysot.com/mvs/batchpdf.htm) to set up the appropriate DD statements and then run ISPSTART and FTINCL, and at the moment this is working well, however it seems to be a fragile solution - if the company changes their ISPF dataset concatenations the JCL could break. Is there any solution for simply running file tailoring outside ISPF (ie. in batch/JES2)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简短的回答是否定的。文件裁剪本质上需要 ISPF。
我想要问自己的问题是......
串联?
模拟文件裁剪?
我不会称你所做的事情是“脆弱的”。根据您商店的标准记录依赖性。
The short answer is no. File tailoring inherently requires ISPF.
I guess the questions to ask yourself are...
concatenations?
emulates file tailoring?
I wouldn't call what you've done "fragile." Document the dependency according to your shop's standards.
虽然文件定制仅在 ISPF 下运行,但您可以在批量 TSO 中运行 ISPF(前提是不显示面板)。通常,您会执行类似
ISPF CMD(mycommand) 的
操作,这将输入 spf,运行命令并返回 TSO
其中 mycommand 是相应库中的 clist/rexx 程序。
While file tailoring only runs under ISPF, you can run ISPF in batch TSO (provided there is no panels displayed). Typically you would do something like
ISPF CMD(mycommand)
This will enter spf, run the command and return to TSO
where mycommand is a clist/rexx program in appropriate library.