Page 1 of 2

what is X'82' or X'80'

PostPosted: Fri Nov 25, 2011 6:23 pm
by rajufis_01
what is X'82' or X'80' ,what it represents i mean what value it will caontain when we will use this???

can you please help me???apologies if i am wrong

thanks,
raj

Re: what is X'82' or X'80'

PostPosted: Fri Nov 25, 2011 6:56 pm
by Robert Sample
The X means hexadecimal. So x'82' is 3 times 16 plus 2, or 130. x'80' is 8 times 16 or 128 (edited to mtch question). As to when you would use these values, it would entirely depend upon which application or subsystem you are using them with.

Re: what is X'82' or X'80'

PostPosted: Fri Nov 25, 2011 8:07 pm
by Anuj Dhawan
Robert has very patiently given you a nice explnation, however, I wonder - why do you ask this? Why X'80' or X'82' - why are you not intrested in X'AA', X'FF' o r X'01'... :)

Re: what is X'82' or X'80'

PostPosted: Fri Nov 25, 2011 9:12 pm
by BillyBoyo
X'82' in EBCDIC is b, lowercase. X'80' has no specific meaning in EBCDIC.

The above does not matter if you have come across a program that uses those values. They can be used for whatever a program needs, if that is what someone, sometime, decided.

We have no clue in your specific case, because you have give us no clues to the context of your question.

Re: what is X'82' or X'80'

PostPosted: Sun Nov 27, 2011 3:45 pm
by dick scherrer
Hello,

what is X'82' or X'80' ,what it represents i mean what value it will caontain when we will use this???

Each is a one-byte value. If some "data" contains these, that is what will be contained? I suspect you are asking somethiing else.

Where did you see these used (i've seen them used many, many times). Every time they were used they meant something to that particular bit of code, or control block, or data. Whatever the use is, it will be documented somewhere. Once you determine what you want to learn, someone may be able to help.

Re: what is X'82' or X'80'

PostPosted: Tue Nov 29, 2011 7:09 am
by Pedro
Clearly, it is a flag byte. The various bits of the flag tell you whether something is on or off. As other posters have mentioned, the meaning of the flags depend entirely on the program using them.

x'82' = '1000 0010'b
x'80' = '1000 0000'b

Actually, it is not very clear at all because the poster did not give the context. I just wanted to mention an equally likely usage.

Re: what is X'82' or X'80'

PostPosted: Thu Dec 15, 2011 11:48 pm
by rajufis_01
hi all thanx for your reply

i am still confusing with x'82' here i am posting the code
IF DZ0J1-SELIN NOT EQUAL '_' AND SPACE AND X'82'

can you please explain what X'82' will do???

thnax in advance if anything wrong please excuse...

Re: what is X'82' or X'80'

PostPosted: Thu Dec 15, 2011 11:51 pm
by NicC
x'82' is just a number in hex - what it represents depends on the application. Note that instead of SPACE, x'40' could have been coded.

Re: what is X'82' or X'80'

PostPosted: Thu Dec 15, 2011 11:59 pm
by rajufis_01
thank you for reply nic,
for example i am adding a record to a file it should not allow special charecaters( like*,&,%...),how can a keep a condition to avoid this situation can u please help me out

thanks,
raj

Re: what is X'82' or X'80'

PostPosted: Fri Dec 16, 2011 12:07 am
by NicC
if not this character, next character, some other character, etc then process.