IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

HEX Values for Super script s and t


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shan007

New User


Joined: 28 Jun 2009
Posts: 3
Location: bangalore

PostPosted: Mon Jan 24, 2011 12:08 am
Reply with quote

What is the HEX value for the superscript s & t.

Thanks for your help in advance.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jan 24, 2011 12:40 am
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Mon Jan 24, 2011 12:40 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Jan 24, 2011 12:51 am
Reply with quote

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
View user's profile Send private message
shan007

New User


Joined: 28 Jun 2009
Posts: 3
Location: bangalore

PostPosted: Mon Jan 24, 2011 12:52 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jan 24, 2011 1:08 am
Reply with quote

You need to look at Your <printer> manuals!
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Jan 24, 2011 1:57 am
Reply with quote

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
View user's profile Send private message
Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Mon Jan 24, 2011 4:17 am
Reply with quote

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
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Mon Jan 24, 2011 5:18 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
Search our Forums:

Back to Top