HPlogo Asynchronous Serial Communications Programmer's Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 8 Intrinsics Reference

PRINT

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Glossary

 » Index

Prints a character string on job/session list device.

Syntax

       CA     I16V    I16V
PRINT(message,length,controlcode);

Use

The PRINT intrinsic enables you to write a string of ASCII characters from your program to the job/session listing device ($STDLIST). This provides a quick method of sending output to the terminal. However, because the PRINT intrinsic does not allow you to take full advantage of the capabilities of the file system, it is recommended that you use FWRITE for permanent programs.

Parameters

message

character array (required)

Passes the string of ASCII characters to $STDLIST. Note that all character arrays must start on a halfword boundary.

length

16-bit signed integer by value (required)

The length of the character string to be passed in message. If length is positive, the length is in halfwords. If length is negative, the length is in bytes. If length exceeds the configured record length of the device, successive records are written only on terminals.

controlcode

16-bit signed integer by value (required)

A carriage control directive. See Table 8-11 “Selected Carriage Control Directives” for a list of valid codes.

Condition Codes

CCE

Request granted.

CCG

End-of-data was encountered.

CCL

Request denied. An input/output error occurred. Further error analysis through the FCHECK intrinsic is not possible.

Additional Discussion

See the discussion of printing character strings to $STDLIST in Accessing Files Programmer's Guide.

Feedback to webmaster