Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

5.3.11.8.1 Representing Floating Insertion Editing



In a PICTURE character-string, there are two ways to represent floating insertion editing and, thus, two ways in which editing is performed:

  1. Any or all leading numeric character positions to the left of the decimal point are represented by the floating insertion symbol. When editing is performed, a single floating insertion character is placed to the immediate left of the first nonzero digit in the data, or of the decimal point, whichever is farther to the left. The character positions to the left of the inserted character are filled with spaces.
    
    
    If all numeric character positions in the PICTURE character-string are represented by the insertion character, then at least one of the insertion characters must be to the left of the decimal point.
    
    
  2. All the numeric character positions are represented by the floating insertion symbol. When editing is performed, then:
    
    
    • If the value of the data is zero, the entire data item will contain spaces.
    • If the value of the data is nonzero, the result is the same as in rule 1.
      
      

For example:


        PICTURE               Value of Data        Edited Result

$$$$.99 .123 $.12 $$$9.99 .12 $0.12 $,$$$,999.99 -1234.56 $1,234.56 +,+++,999.99 -123456.789 -123,456.78 $$,$$$,$$$.99CR -1234567 $1,234,567.00CR ++,+++,+++.+++ 0000.00



Previous Topic Next Topic © Copyright IBM Corp. 1991, 1998

IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.





Return to library:   z/OS | z/OS.e | TPF | z/VSE | z/VM | IBM Hardware | IBM System z Redbooks
Glossary:   IBM terminology
Publications:   How to order publications
Readers:   Download IBM Library Reader | Download IBM Softcopy Reader | Download Adobe® Acrobat® Reader®
Library management:   Download IBM Softcopy Librarian
Contacts:   Contact z/OS


Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.