问题1.
PERFORM get_subroutine(SUBROUTINE) USING formel a b c.
a,b,c 和var是整型,formel 是一些字符组成的运算公式,exp: a + b + c .
get_subroutine中有var = formel
怎样传递参数才能让整型a,b,c 替代formel中的字符,进而可以计算得var?
不要用append.
问题2.
我在程序中多次使用
GENERATE SUBROUTINE POOL tab NAME prog
MESSAGE mess
SHORTDUMP-ID sid.
出现:
You can create up to 36 subroutine pools for one program
能否实现调用多次而不有错误产生?
谢谢先!
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10842258/viewspace-605504/
,如需转载,请注明出处,否则将追究法律责任。