confusedlady
Programmer
I am trying to pass a negative value to a Cobol program. I am not able to alter the existing Cobol program, only the CL I am writing. In the Cobol program, the field is defined as S9(6), so my question is, how do I need to define the value in the CL?
For example, how would I pass say -145? This is a value entered by the user, so it first is a parameter for the CL. As it is, if the user wished to pass positive 145, I just have it defined as CHAR (6), and alls fine, but can't get that - to go! I hope this makes sense........
For example, how would I pass say -145? This is a value entered by the user, so it first is a parameter for the CL. As it is, if the user wished to pass positive 145, I just have it defined as CHAR (6), and alls fine, but can't get that - to go! I hope this makes sense........