比较在JCL中的符号参数中存储的2个值

发布于 2025-01-27 04:26:43 字数 168 浏览 1 评论 0原文

我需要比较存储在2个符号参数中的值。

例如,

Set1 set day1=&odd
Set2 set day2=&cdd

我需要做的是,如果第1天和第2天的值相等,则执行特定的操作,否则执行不同的代码集。

提前致谢

I need to compare the values stored in 2 symbolic parameters.

For example

Set1 set day1=&odd
Set2 set day2=&cdd

What I need to do is if the values of day1 and day2 are equal, then execute a specific action else execute different set of codes.

Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

热鲨 2025-02-03 04:26:43

实现目标的一种方法是将每个符号参数写入带有您的排序产品的临时文件,如此答案 。现在您有两个文件,可以将它们与IEBCOMPR进行比较,如果它们相等,则参数是相等的。您可以使用JCL IF语句来测试IEBCOMPR的返回代码。

One way to accomplish your goal is to write each symbolic parameter to a temporary file with your SORT product, as shown in this answer. Now that you have two files, you can compare them with IEBCOMPR and if they are equal then the parameters were equal. You can use a JCL IF statement to test the return code from IEBCOMPR.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文