1,145 pts.
 AFPDS PRTF special character printing within text string?
Is it possible to include a special character within a text sting output to an AFPDS print file? We have output the special character by using a symbol character set but it has to be output as an individual field and results are not perfect for different printers. Has anyone created a DDS Print file with a similar requirement? Special Character of a Check Mark, Copyright Symbol or Trademark, Etc.

Software/Hardware used:
iSeries V5R2 and above
ASKED: January 7, 2013  9:02 PM
UPDATED: January 8, 2013  2:56 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question. hafwhit   1,145 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Without knowing what a “special character” is, I can’t think of a good way to answer. — Tom

 107,735 pts.

 

I have created a program to produce a print out of the code page table for the Font Character Set. I used the table to determine the hex value of the character required. Each code page is different. Code page T1D0BASE has less characters thanT1V10037.

 1,145 pts.

 

If I understand, you want to generate a text string that contains a special character mixed in with ‘normal’ characters something like this:

[ Items marked ® are our trademarks. ]

Is it a text string from a program variable? Or is it literal in the printer file? (I hope my special character came across okay.)

Tom

 107,735 pts.

 

Tom as in your example that is what I needed to do. The text string is created in a RPGLE program as a character string and printed with an AFPDS print file. Once I was able to determine the proper hex code from the Code Page I was able to combine the combine the character.

 *----------------------------------------------------------------
 *  Code Page T1V10037 Copyright Symbol
D xB4             c                   const(x'B4')
 *----------------------------------------------------------------
C                   Eval      CPYRGHT = xB4 + 'Company name, 2013'  
 *----------------------------------------------------------------
 1,145 pts.