You're right Jack. COBOL does not like starting a dataname with a hyphen. My copybook had a dataname such as
:a1:-account-number and when I used the REPLACING string as in my last post, I got a compile error for each dataname that looked like that. It became -account-number.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.