View previous topic :: View next topic
|
Author |
Message |
shan007
New User
Joined: 28 Jun 2009 Posts: 3 Location: bangalore
|
|
|
|
What is the HEX value for the superscript s & t.
Thanks for your help in advance. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You need to post more detail.
What does "superscript s & t" mean to you?
Keep in mind that what you want to know is completely clear to you, but may not be clear to others who whould help if they understood the question. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Please define a "Superscript" as it relates to Mainframe COBOL.
Do you mean "Subscript" use for a table?
If so, then review the source code for the definitions of variables "S" and "T" and post them.
If they truly are subscripts, the most optimum definition will be unsigned binary fullwords, PIC 9(09) COMP.
Bill |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
When you say "HEX value", you are being extremely unclear. Do you mean the EBCDIC hex value used on the mainframe, the ASCII hex value used on a PC, or do you mean the hex value on some other code page yet to be determined? The code page determines the character set which determines what the hex values are for each character -- and EBCDIC, for example, has more than one code page so characters on one EBCDIC code page do not map exactly to characters on another EBCDIC code page. |
|
Back to top |
|
|
shan007
New User
Joined: 28 Jun 2009 Posts: 3 Location: bangalore
|
|
|
|
Thanks so much for you reply.
I want to print in the output statement "st" as in 31 St dec or 1st jan. I need to pass hex value for the superscript s,t. In order to print the superscript st in the output statement.
Plz let me know if you need more info. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
You need to look at Your <printer> manuals! |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Depending upon the printer, it may -- or may not -- be possible to do what you are wanting. As enrico says, look at the printer manual. |
|
Back to top |
|
|
Ronald Burr
Active User
Joined: 22 Oct 2009 Posts: 293 Location: U.S.A.
|
|
|
|
Also, consider the possibly that you will need the codes for the letters "d", "h", "n" and "r" as well - since "st" would not be not be the appropriate superscript for dates ending in:
0 (superscript should be "th"),
2 (superscript could be either "th" (for 12th) or "nd" (for 2nd or 22nd)),
3 (superscript could be either "th" (for 13th) or "rd" (for 3rd or 23rd)), or
4-9 (superscript should be "th"). |
|
Back to top |
|
|
Kjeld
Active User
Joined: 15 Dec 2009 Posts: 365 Location: Denmark
|
|
|
|
I assume you with 'superscript' mean printing the ordinal letters in a smaller font elevated from the surrounding font image.
In standard EBCDIC nor ASCII, there are no values representing separate superscript characters.
You can only accomplish this by changing the font or character set for the desired characters to print, so you have to look that up depending on what printer types you need to support. |
|
Back to top |
|
|
|