what is X'82' or X'80'



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

what is X'82' or X'80'

Postby rajufis_01 » Fri Nov 25, 2011 6:23 pm

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
rajufis_01
 
Posts: 17
Joined: Thu Nov 24, 2011 4:54 pm
Has thanked: 0 time
Been thanked: 0 time

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

 

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

Postby Robert Sample » Fri Nov 25, 2011 6:56 pm

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.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

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

Postby Anuj Dhawan » Fri Nov 25, 2011 8:07 pm

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'... :)
Anuj
Anuj Dhawan
 
Posts: 274
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

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

Postby BillyBoyo » Fri Nov 25, 2011 9:12 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

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

Postby dick scherrer » Sun Nov 27, 2011 3:45 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

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

Postby Pedro » Tue Nov 29, 2011 7:09 am

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.
Pedro Vera
User avatar
Pedro
 
Posts: 569
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 39 times

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

Postby rajufis_01 » Thu Dec 15, 2011 11:48 pm

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...
rajufis_01
 
Posts: 17
Joined: Thu Nov 24, 2011 4:54 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby NicC » Thu Dec 15, 2011 11:51 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

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

Postby rajufis_01 » Thu Dec 15, 2011 11:59 pm

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
rajufis_01
 
Posts: 17
Joined: Thu Nov 24, 2011 4:54 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby NicC » Fri Dec 16, 2011 12:07 am

if not this character, next character, some other character, etc then process.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Next

Return to IBM Cobol