HPlogo Using SNA IMF Pass Thru: HP 3000 MPE/iX Computer Systems > Chapter 6 Using Printers with Pass Thru

UDCs for Entering Printer Commands

» 

Technical documentation

» Feedback

 » Table of Contents

 » Glossary

 » Index

You can create UDCs for entering the printer commands described in the last section. The steps to creating a UDC are as follows:

  1. Issue the MPE SETCATALOG command at the MPE colon prompt.

    :SETCATALOG

  2. Use the MPE editor to add the UDC to your UDC file. Add a row of asterisks (*) to separate UDCs in the same file.

  3. Issue the MPE SETCATALOG command to reset your UDC file.

    :SETCATALOG udcfile

See "Creating and Using UDCs," in Chapter 3 “Starting Pass Thru” for step-by-step instructions for creating or modifying a UDC file.

For Sending Any Printer Command

This example UDC allows you to enter any printer command, with fewer key strokes than it would take to enter the entire MPE RUN command. Following are the lines you would add to your UDC file to create this UDC:

PTRCMND COMMAND
RUN TTSSON.PUB.SYS,COMMAND;INFO="COMMAND"
**********

This UDC has one parameter: COMMAND. To send a printer command, you would type the name of the UDC (PTRCMND) followed by the command you wanted to send. For example, typing

:PTRCMND SEND PA1 to IL26104P

would send the [PA1] key to the LU whose configured name is 1l26104P. It would have the same effect as typing

:RUN TTSSON.PUB.SYS,COMMAND;INFO="SEND PA1 to IL26104P"

For Sending the PA1 Key

This example UDC provides a shorthand way of entering the SEND PA1 printer command. Following are the lines you would add to your UDC file to create this UDC:

PA1 NAU
RUN TTSSON.PUB.SYS,COMMAND;INFO="SEND PA1 to !NAU"
**********

This UDC has one parameter: NAU. To send the [PA1] key to LUs IL26104P and IL22164P, you would type the following:

     :PA1 IL26104P
     :PA1 IL22164P

This would have the same effect as typing the following commands:

:RUN TTSSON.PUB.SYS,COMMAND;INFO="SEND PA1 to IL26104P"
:RUN TTSSON.PUB.SYS,COMMAND;INFO="SEND PA1 to IL22164P"

For Checking NAU Session Status

If you wanted to find out which NAUs were engaged in OPEN or ACTIVE sessions (LU.T1, LU.T2, or LU.T3), you could create a UDC to issue the SHOW command. Following are the lines you would add to your UDC file to create this UDC:

SHOW NAU
RUN TTSSON.PUB.SYS,COMMAND;INFO="SHOW !NAU"
**********

This UDC has one parameter: NAU. To receive a list of all LUs currently in OPEN or ACTIVE sessions, you would type the following:

:SHOW ALL

This would have the same effect as typing

:RUN TTSSON.PUB.SYS,COMMAND;INFO="SHOW ALL"

A message listing all LUs currently in OPEN or ACTIVE sessions would appear on your screen.

Feedback to webmaster