There are several references to this type of question within this Knowledge Exchange. If you do a search for Barcode you will find where there are several answers to this question…
See website for additional information…
use Display Device Description (DSPDEVD) to check the host print transform attribute. It needs to have a value of *YES. Use the Change Device Desc (Printer) (CHGDEVPRT) command to change the device if necessary.
Second, add the BARCODE keyword to the printer file. (See the DDS manual for more information about this splendid keyword.)
A H1ID 12 O 4 41BARCODE(CODE3OF9 *HRZ *NOHRI *NOAST)
Third, create the printer file as DEVTYPE(*AFPDS).
CRTPRTF FILE(xxx/PICKLIST) +