×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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!
  • Students Click Here

*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

Jobs

how to make a program that sends pcl to the printer from Mainframe

how to make a program that sends pcl to the printer from Mainframe

how to make a program that sends pcl to the printer from Mainframe

(OP)
Hi all, i am trying to make a program(in Easytrieve) on the mainframe, so that it can send PCL commands to the printer.

But the problem is that I don't know where to start.
do I hava to put the pcl commands in my program or do
I have to make a seperate file for the commands?

Please help.

Regards Tim

RE: how to make a program that sends pcl to the printer from Mainframe

When I do it in COBOL, I put the PCL commands in the source code.  I know very little able Easytrieve so cannot help  you there.

RE: how to make a program that sends pcl to the printer from Mainframe

Most PCL escape sequences use plain ASCII graphic (printable) characters (in the range 0x21 -> 0x7e), the obvious exception being the Escape character itself (0x1b).

I too have no knowledge of Easytrieve; provided that it has a means of writing a stream of ASCII characters (in this sense, I'm using ASCII to include the C0 control code characters in the range 0x00-> 0x1f, and 0x7f), you shouldn't have a  problem.

Having said that, a few escape sequences have binary data associated with them; this binary data could include bytes of any value (i.e. in the range 0x00 -> 0xff).

RE: how to make a program that sends pcl to the printer from Mainframe

If you need a decent looking form overlay with a logo, etc.  Then, I recommend using PCLWorks's Img2PCL program to easily generate a form overlay macro or automatic overlay.  Then, all you need to do is insert the appropriate PCL to invoke the macro and the absolute coordinates to position the variable data text.

It's always helpful to indicate what type of document(s) you are talking about.  If they are highly structured (claim forms, invoices, etc.) or unstructured (reports, lists, ?).

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