I am getting 11 chars length String (ex.0000001010{ , +0000090191, -0000020503 ) from Java People, once i get this i have to do two things.
1. If the Input is already overpunched ( ex: 0000001010{ ), i have to convert it into signed numeric (based on the overpunch '+' or '-') , i mean to the original value
2.If the Input is not overpunched (ex: +00000010101 )i have to convert it into overpunch format, for this case if the input string has '-' (minus) as first char my pgm shud be able to identify that (for this case i can simply use the input as base as it will come with '-' sign, but is there any logic in COBOL to identify this sign....?)
The { is a 0, the A is a 1, the B is a 2, etc., so I'm assuming that you mean 0000001010{ is already the way you want it and only the +/- numbers have to be converted to opunch.
If this is not correct, please provide an example of what 0000001010{ should be converted to; if what I assumed IS correct, you can try something like this: