View previous topic :: View next topic
|
Author |
Message |
sanjayis01 Warnings : 1 New User
Joined: 13 Jun 2007 Posts: 55 Location: banaglore
|
|
|
|
Hi
How we can declare COMP variable is easzytrieve
Suppose for COBOL declartion we have 05 NEW-VARIABLE PIC X(5)
in EASYTREIEV WILL DEFINE IT IS NEW-VARIABLE 1 5 A
so in the same way how we can declare
15 ABC-TEXT PIC S9(07) COMP-3.
15 ABC-TEXT2 PIC S9(04) COMP.
Please let me know how we can do this ? |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
CA-Easytrieve/Plus Reference Guide wrote: |
{A} — alphanumeric—use when none of the numeric data types apply to the associated field.
{N}—zoned decimal — the field contains digits 0 through 9 in external decimal form (that is, 0 = X'F0').
{P}—packed decimal — the field contains numbers which meet IBM's definition of internal packed decimal. For instance, the two-byte packed field containing 123 looks like X'123F'.
{B}—binary — the fields contain binary data. In a quantitative binary field (a field with zero (0) or more decimal places specified), the high order bit is the sign bit. In a non-quantitative binary field (a field with no decimal place specification), the high order bit is a binary digit. |
|
|
Back to top |
|
|
sanjayis01 Warnings : 1 New User
Joined: 13 Jun 2007 Posts: 55 Location: banaglore
|
|
|
|
Thanks A lot |
|
Back to top |
|
|
|