在 PS 文件中,我有如下 XML 数据:
For ex:
(<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>onlinerecharge</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>)
我希望数据排成一行。(中间没有任何空格)
那么我应该如何处理呢? (Rexx和JCL哪个好办
并维持)
也请告诉我如何处理。
您提到 Rexx 和 JCL,我认为这些只是建议而不是要求。
我建议你看看z/OS Unix 系统服务 https://www.ibm.com/docs/en/zos/2.4.0?topic=services-zos-unix-system-command-reference您的解决方案的实用程序。您提到“巨大的 XML”,如果“巨大”意味着“超过 32K”,那么您可能会发现自己将单行 XML 写入 Unix 文件系统中的文件而不是 PS 数据集。
An awk https://www.ibm.com/docs/en/zos/2.4.0?topic=descriptions-awk-process-programs-written-in-awk-language例如,脚本可以做你想做的事。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)