How to print Superscript / Subscript from RPG400



How to print Superscript / Subscript from RPG400..

Answer / javeed

How to print subscript / superscript through RPGLE into spool file. This gets converted to pdf at the end.

How to print "1st" as 1<st> (superscript) using RPGLE.
The printer field type is character length 15.

External printer file.
Printer device type . . . . . . . . . : *AFPDS

coded as @Symbo = '1' x'09 'st' x'03
it prints "1 st ", with special characters in place of hex x'09 & x'03 but not as 1<st> (superscript).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

How can we receive values from a called procedure in CL?

1 Answers   IBM, NTT Data,


How can you determine the number of characters in a variable?

3 Answers  


How do you know if a record exists without doing a READ and CHAIN?

6 Answers   IBM,


In ProgramB there is a SBMJOB, which is a call to program C .There is also a CALL to program D from B. How would you check the program C has been executed in D?

4 Answers  


1.Where we declare Variables in RPG/400,RPGIV,RPGILE.? 2.When do we use D-spec and I-spec in real time ?.what is difference between them?

1 Answers   HP,






What you have to do in the display file when you are using message subfile?

1 Answers  


1.I have a Batch job, Running for 4 hours, i want to reduce the executing time to 2 hours what should you do?

5 Answers   Cap Gemini,


How to update only a field of a PF in an RPG program. I don't want to update the record, only one field.

2 Answers  


CAN WE READ RECORDS WITHOUT USING SETLL,READ,CHAIN IN RPG?

6 Answers   Satyam,


can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com

0 Answers  


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

0 Answers   iGate,


Difference between RESET and CLEAR

1 Answers   TCS,


Categories