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

suppose we have 10 members in physical file and i have to use 4 out of 10 so how can we read this in RPG

3 Answers   TCS,


use of PUTOVR,OVRDTA,KEEP keywords?

2 Answers   HCL,


In single page subfile,if I select the mutiple options in 1 page and without pressing enter,I press rollup key (pagedown).In such case how I can handle it in rpg becasue in single page we have to handle it in pgm. It would be helpful if any one answer with coding

4 Answers   Infinite Computer Solutions,


check existence of one record without using chain or read?

1 Answers   IBM,


if there is pf in two libraries and there is a logical file based on the PF, how to find the pf on which the pf is based.

2 Answers   TCS,






In case if I want to know whether a record exists in a file, which one do you prefer CHAIN or a SETLL and why ?

1 Answers  


What is the name of default out queue when user logs inn to syatem with valid profile?

3 Answers   IBM,


3 members in databasefile .how to read records from all the members??

6 Answers   CTS,


What is ment by record level identifier?

0 Answers  


How to call one program from another program in RPG? please help me with the code

0 Answers   HCL,


How to declare the dynamic(run time) array in rpgle? can you please give example

2 Answers   Polaris,


1.Can any body share me about thease opcodes with example please.Im new for AS/400.Could u please tell me in real senario? 1.TESTN, 2.EVAL 3.EVALR, TIME, 4.MONITOR 5. ENDMON 6.ON-ERROR 7.COMMIT ROLLBACK?

1 Answers   CSC,


Categories