Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Language Reference


Special insertion editing

This type of editing is valid for either numeric-edited items or external floating-point items.

The period (.) is the special insertion symbol; it also represents the actual decimal point for alignment purposes.

The period insertion symbol is counted in the size of the item, and represents the position within the item where the actual decimal point is inserted.

Either the actual decimal point or the symbol V as the assumed decimal point, but not both, must be specified in one PICTURE character-string.

For example:

PICTURE Value of data Edited result
        999.99       
          1.234      
        001.23       
        999.99       
         12.34       
        012.34       
        999.99       
        123.45       
        123.45       
        999.99       
       1234.5        
        234.50       
       +999.99E+99   
      12345          
       +123.45E+02   

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)