adspace


i was faced one question-
i have value
-00001234.56
Suppress the zeroes and the output should be -1234.56
But Not - 1234.56 spaces should not be available after suppressing the zeroes.


logic in jcl and cobol?

Answer Posted / Rahul Jha

In COBOL, you can use the PIC S9(4)V99 format for the field containing the number. In JCL, you can use the REDEFINES clause to create a new symbol for the edited field without leading zeros.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i need a small 3d program using inline and outline.

2307


Are you comfortable in cobol or jcl?

1114