by BillyBoyo » Fri Apr 22, 2011 2:46 am
First, if you want to use Cobol's numeric-edited pictures, you have to get your data "right justified".
Then you'll need to turn the decimal point into an implied decimal point (ie such that it does not really exist, but the last two characters represent the decimal part). Remember that you currently have 0, 1 and 2 decimal places and you will need to make them all have two decimal places without messing up the data.
You'll have to then, for a reasonable amount of characters, turn the leading spaces into zeros.
Look up STRING/UNSTRING, INSPECT and justification.
You will then have a field containg numerics which you can redefine so that it has two (implied) decimal places.
Then you can move that to your edited field.
Then, for some reason, you want them lined-up flat along the currency. You should be able to get to that from what you've already read and understood in the manual.