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.1.2 Currency Symbol



The currency symbol in a character-string is represented by the symbol $,
X or by a single character specified either in the CURRENCY compiler option
X or in the CURRENCY SIGN clause in the SPECIAL-NAMES paragraph of the Environment Division.


X If the CURRENCY SIGN clause is specified, the CURRENCY and NOCURRENCY
X compiler options are ignored. If the CURRENCY SIGN clause is not
X specified and the NOCURRENCY compiler option is in effect, the dollar sign
X ($) is used as the default currency sign value and currency symbol. For
X more information about the CURRENCY SIGN clause, see "CURRENCY SIGN
X Clause" in topic 4.1.7. For more information about the CURRENCY and
X NOCURRENCY compiler options, see the IBM COBOL Programming Guide for your
X platform.

A currency symbol may be repeated within the PICTURE character-string to
X specify floating insertion. Different currency symbols must not be used
X in the same PICTURE character-string.


X Unlike all other PICTURE clause symbols, currency symbols are
X case-sensitive: for example, 'D' and 'd' specify different currency
X symbols.

A currency symbol may be used only to define a numeric-edited item with USAGE DISPLAY.

In the following description of the PICTURE clause, cs indicates any valid currency symbol.

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.