5.3.17.1.1 Rules for Literal Values:
- Wherever a literal is specified, a figurative constant can be
substituted.
- If the item is numeric, all VALUE clause literals must be numeric. If
the literal defines the value of a Working-Storage item, the literal
is aligned according to the rules for numeric moves, with one
additional restriction: The literal must not have a value that
requires truncation of nonzero digits. If the literal is signed, the
associated PICTURE character-string must contain a sign symbol (S).
- All numeric literals in a VALUE clause of an item must have a value
that is within the range of values indicated by the PICTURE clause for
that item. For example, for PICTURE 99PPP, the literal must be within
the range 1000 through 99000, or zero. For PICTURE PPP99, the literal
must be within the range 0.00000 through 0.00099.
- If the item is an elementary or group alphabetic, alphanumeric,
alphanumeric-edited, or numeric-edited item, all VALUE clause literals
must be nonnumeric literals. The literal is aligned according to the
alphanumeric alignment rules, with one additional restriction: the
number of characters in the literal must not exceed the size of the
item.
- The functions of the editing characters in a PICTURE clause are
ignored in determining the initial appearance of the item described.
However, editing characters are included in determining the size of
the item. Therefore, any editing characters must be included in the
literal. For example, if the item is defined as PICTURE +999.99 and
the value is to be +12.34, then the VALUE clause should be specified
as VALUE "+012.34".
© 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.