Troubleshooting
Problem
Your application is trying to use the SNA character stream (SCS) Transparent code x'35' to send Printer Control Language (PCL) printer commands in the datastream. Sometimes the PCL commands are printed as if they were part of the data.
Symptom
The application first sets up a BMS ROUTING environment then uses SEND TEXT ACCUM commands to build up the datastream one line at a time. It then does a SEND PAGE AUTOPAGE to route the message to the printer. The send page starts a CSPG BMS PAGING transaction on the printer, which delivers the datastream.
The problem of some of the PCL commands printing only happens when the data originates from CICS. A non-CICS program sending the same datastream works. The application uses the x'35' transparent command so the PCL codes would not be translated.
Most of the nonstandard functions that followed the transparency command had no problem. However, when certain functions are in the datastream, CICS removes them from the data. Specifically, if the function includes a x'28'. The x'28' and the two bytes that follow it are removed from the data stream. This means that three (3) bytes were removed from the data stream.
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
08 October 2025
UID
swg21081334