Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hexadecimal value of @, '.', >.... 3

Status
Not open for further replies.

claudeb

Programmer
Nov 23, 2000
140
CA
Hi, is there a way or a web site where i could find the hexadecimal value of certain special characters like: @, '.', >, # etc
Thanks
 
Hi Nina Too,

I have here some source examples for you for the pc environment.

On the mainframe it works different.

Code:
 01  VALUE-THIRTEEN                  PIC S9(4) COMP-5 VALUE 13. 
 01  FILLER REDEFINES VALUE-THIRTEEN.                           
     03  NEW-LINE                    PIC X.                     
     03  FILLER                      PIC X.                     
                                                                
                                                                
 01  VALUE-8                         PIC S9(4) COMP-5 VALUE 8.  
 01  FILLER REDEFINES VALUE-8.                                  
     03  DESTRUCTIVE-BACKSPACE       PIC X.                     
     03  FILLER                      PIC X.                     
                                                                
 01  VALUE-7                         PIC S9(4) COMP-5 VALUE 7.  
 01  FILLER REDEFINES VALUE-7.                                  
     03  BEEP-CHARACTER              PIC X.                     
     03  FILLER                      PIC X.                     
                                                                
 01  VALUE-27                        PIC S9(4) COMP-5 VALUE 27. 
 01  FILLER REDEFINES VALUE-27.                                 
     03  ESCAPE                      PIC X.                     
     03  FILLER                      PIC X.                     
                                                                
 01  VALUE-10                        PIC S9(4) COMP-5 VALUE 10. 
 01  FILLER REDEFINES VALUE-10.                                 
     03  LINE-FEED                   PIC X.                     
     03  FILLER                      PIC X.                     
                                                                
 01  VALUE-9                         PIC S9(4) COMP-5 VALUE 9.  
 01  FILLER REDEFINES VALUE-9.                                  
     03  TAB                         PIC X.                     
     03  FILLER                      PIC X.

I hope this is helpful.

Regards,

Crox

 
Claude, what he was posting were various values of undisplayable characters. Every time you hit <Enter> or <Backspace> or <Beep> or <Tab> or <Escape> or whatever, you generate an undisplayable character. These characters all have EBCDIC or ASCII values. So if you need to test for any of these values, you can do so, using either the ordinal value or its literal hex value.

Crox, if you are using a PC, then these are probably ASCII values. Are these ordinal values or not?

And actually, if these are ASCII, they don't do a mainframe programmer a lot of good because we use EBCDIC.

Nina Too


 
hi Nina2,
i know that ` X40` is `blank`, but i don`t see that way in the table ! I am positive that there is some thing i don`t understand.
Thanks for the link.
 
X'40' (EBCDIC) is SP in the table: SPACE!

*Sigh* you know, i did a search on EBCDIC, and it took 30 seconds to find a good EBCDIC/ASCII table, at

So many answers are found with just a little search --- instead here is a thread with 24 posts...

By the way, another good forum is the newsgroup comp.lang.cobol
If your news server does not carry it, you can access it easily thru groups.google.com (which replaced deja).
 
Thanks to Stephen Spiro. The chart he found was a lot clearer than the link I posted. This is very useful information to have.

Nina Too
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top