| Author |
Message |
shreevamsi
Senior Member
Joined: 23 Feb 2006 Posts: 316 Location: Hyderabad,India
|
|
|
|
Hi,
What is the basic difference between 'HIGH-VALUE' and 'LOW-VALUE' in cobol.
Some times in cobol, I have seen
MOVE LOW-VALUE TO WS-VARIABLE.
I remember i have seen HIGH-VALUE in the searches but never moved to a variable
What exactly are the both for??
~Vamsi |
|
| Back to top |
|
 |
References
|
Posted: Thu Jul 27, 2006 2:44 pm Post subject: Re: What is HIGH-VALUE and LOW-VALUE in Cobol |
 |
|
|
 |
dkalyan_c
New User
Joined: 06 Apr 2006 Posts: 9
|
|
|
|
HIGH-VALUE/HIGH-VALUES
Represents one or more occurrences of the character that has the
highest ordinal position in the collating sequence used. For the
EBCDIC collating sequence, the character is X'FF'; for other collating
sequences, the actual character used depends on the collating
sequence. HIGH-VALUE is treated as a nonnumeric literal.
LOW-VALUE/LOW-VALUES
Represents one or more occurrences of the character that has the
lowest ordinal position in the collating sequence used. For the
EBCDIC collating sequence, the character is X'00'; for other collating
sequences, the actual character used depends on the collating
sequence. LOW-VALUE is treated as a nonnumeric literal. |
|
| Back to top |
|
 |
dkalyan_c
New User
Joined: 06 Apr 2006 Posts: 9
|
|
|
|
U CANNOT MOVE LOW OR HIGH VALUES TO "PIC 9" FIELD
CAN MOVE ONLY TO "PIC X" FIELD
MOVE LOW-VALUE TO WS-VARIABLE-1.
MOVE HIGH-VALUE TO WS-VARIABLE-2.
RESULT:
WS-VARIABLE-1= x'0000'
WS-VARIABLE-2= x'0000' |
|
| Back to top |
|
 |
Raja Suman Chowdary
New User
Joined: 20 Sep 2006 Posts: 1 Location: Bangalore
|
|
|
|
| Can anyone explain this in detail with examples? I didn't understand the explanation posted in the forum previously.. |
|
| Back to top |
|
 |
|
|