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

can anyone explain aboutovrOVRDBF,OPNQRYF, OVRSCOPE and OPNSCOPE?

2 Answers   TCS,


can i use UPDDTA command in rpg program in which contains a file

1 Answers   TCS,


we hav job which is running as batch. it takes atleast 06hours to complete tht job. bu i wana do tht job with in 3hours.........? so plz post ur answers

8 Answers   Cap Gemini, IBM,


IN RLU what are the record level keyword is used?

5 Answers   iGate, TCS,


What are different ways to pass data between programs and which one is the efficient way?

5 Answers  






Hi,Please give me complete code with this logic. The question is how to read the records from a file with load an array of size with error condition? (The logic is Z-Add 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN9 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO)please give me complete code with explanation?

1 Answers  


wat is meant by hidden field , why it is used?

4 Answers   Four soft,


How to print output from openquery in as400 ?

1 Answers   Four soft,


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

0 Answers   Wipro,


How to check which are the pgms using 1 perticulate file.? I know there is many tool available for X-reference...but need to know is there any command available in the system...?

4 Answers   IBM,


can we use cl programming to update or delete physical files

12 Answers  


how do u find whether a record is locked or not??

4 Answers   CTS,






Categories