PCL5 using AS/400 COBOL

Tags:
AS/400
COBOL
PCL5
Please help me with an example to generate Barcode logic in COBOL 400 for Sharp Printer. New to PCL 5. Any sample sent to OUTQ will be very helpful.


Software/Hardware used:
AS400, PCL5
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 6  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Splat
    I'm not a COBOL programmer but I would think the answer lies in using the BARCODE keyword in a print file (AFPDS or IPDS) rather than in any particular logic or technique in the program itself.
    12,935 pointsBadges:
    report
  • SudheerPula
    In AS400 for every printer there will be a OUTQ created, COBOL/RPG programs will populate a file in the below format and send to printer. 
    I am looking like the format below in code 139 in similar to PCL5 to send the print to Printer OUTQ.


    Below is Code 139 language.
    ~PY~-~F~-~L50~-                                                                                                           
    ~M0804000~T00601W6585   039T1~M0302030~T07801W6585~T1030039T1~-                                                           
    ~M0402030~T010019N610230M~T0460182673~M0201040~T075019N610230M~M0302040~T1050182673~-                                     
    ~M0402020~T0110 1W6585  ~M0201020~T0390 -                  ~M0302020~T0762 1W6585  ~M0201020~T0990 -                  ~-  
    ~M0402010~T0110      ~T0470      ~T0800        ~T1070      ~-                                                             
    ~M0201010~T0010                ~M0201010~T0700                ~-                                                          
    ~M0302120~T00601W6585         1W6585         VOID           VOID  ~-                                                      
    ~M0302010~T0060039T1          039T1          000            000  ~-                                                       
    ~M0302010~T006019N610230M     19N610230M     VOID           VOID      ~-                                                  
    ~M0302030~T0060182673         182673         VOID           VOID  ~-                                                      
    ~M0201010~T0060 -                             -                            VOID                          VOID             
    ~M0302020~T0060 1W6585         1W6585        VOID           VOID     ~-                                                   
    ~M0301020~T0040      ~T0190      ~T0330        ~T0490      ~T0630        ~T0790      ~T0930        ~T1090      ~-         
    ~M0201010~T0010                ~T0300                ~T0600                ~T0900                ~-                       
    ~O~-~PN~-    

    Please help me if you are aware of PCL5 language.
    35 pointsBadges:
    report
  • Splat
    I've not run into Code 139.  Could you mean Code 3 of 9?  If so, the BARCODE keyword supports that ID (it's one we make use of).  The print files using the BARCODE keyword have no problem printing on the HP and Xerox printers defined to our system. 
    12,935 pointsBadges:
    report
  • PGMBOB
    The external print file can define the barcode and all the output. The system can provide the PCL5 to the printer. Multiple fonts can be defined also. The field to be barcoded is defined with the barcode keyword. Horizontal or ventricle can be specified as well it human readable should print with it. The print file should be *AFPDS or *IPDS when created. The printer should be *IPDS or *AFPDS capable. Good luck.
    1,235 pointsBadges:
    report
  • SudheerPula
    Thanks. Could you please help me with sample print file generated in PCL5 Language.

    I am not aware of initial syntax for the print file. Please direct me with some examples. That will be a great help. 
    35 pointsBadges:
    report
  • Splat
    If you've worked with DDS you have the basic knowledge to create print files.  The IBM manuals for DDS for printer files can be found here.
    12,935 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: