I will be entering the amount values in the screen and need to edit the entered amount.
Initially all the fields in the CICS screen will be '____' [PIC X(4)]. So the user can enter the amount as 10 or 11 or 123, 1234 etc.. Then I will do numeric check in the COBOL prgoram. If the entered amount is 12, it will be coming to the program as 12__
Is there any way, I can edit the program and make it as 0012 ?
Similarly, the entered value '10' in screen will be 10__ but need to change it as 0010 in the program.
Similarly the value '1' can be entered as ___1 and we need to make it as 0001 (I think this case can be checked using INSPECT variable REPLACING ALL '_' BY ZEROES after checking for leading '-').