×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Need examples of BOCA printer language in RPG3

Need examples of BOCA printer language in RPG3

Need examples of BOCA printer language in RPG3

(OP)
I need to convert RPG3 code from printing labels with ZEBRA printers to BOCA code. Have a very skimpy programming manual downloaded from BOCA, but no hints on AS/400 code. Current programs have all ZEBRA commands in O specs, eg

@CTL - HEX CONTROL CODE = CARET CHARACTER ^ defined as follows:-
C                     BITOF'01234567'@CTL    1
C                     BITON'02346'   @CTL      

INIT coding for each ticket printed
OCIB907PAE                #INIT                       
O                                      '&%'           
O                         @CTL                        
O                                      'XA'           
O                         @CTL                        
O                                      'LH000,000'    
O                         @CTL                        
O                                      'CF0,30,24'    
O                         @CTL                        
O                                      'FWR'          
O*** R3.09K - LABEL LENGTH = 8"                       
O                         @CTL                        
O                                      'LL1626'       
O*** END - PRINT TICKET INSTRUCTION                   
O        E                #END                        
O                         @CTL                        
O                                      'XZ&%'         
First part of ticket -
O*** PA6 - LEFT STUB OF TICKET                        
O*** EVENT                                            
O        E                #PA6                        
O                         @CTL                    
O                                      'FO100,040' <-positioning
O                         @CTL                    
O                                      'A0N,30,24' <- font size
O                         @CTL                    
O                                      'FD'        <-data field marker
O                         I@SN                     <-data itself
O                         I@SNS                   
O                         @CTL                    
O                                      'FS'        <-end of data field

I can work out the positioning, fonts, etc myself, but does anyone know if BOCA needs initialisation and end codes like ZEBRA (see code under #INIT and #END above)
Thanks
Bob

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close