Information icon IBM Information Server, Version 8.1
Feedback

CRT32 function

Syntax

CRT [print.list]

Description

Use the CRT statement to print data on the screen, regardless of whether a PRINTER ON statement has been executed. The syntax for print.list is the same as for PRINT statements.

print.list can contain any BASIC expression. The elements of the list can be numeric or character strings, variables, constants, or literal strings; the null value, however, cannot be output. The list can consist of a single expression or a series of expressions separated by commas ( , ) or colons ( : ) for output formatting. If no print.list is designated, a blank line is output.

Expressions separated by commas are printed at preset tab positions. You can use multiple commas together to cause multiple tabulation between expressions.

Expressions separated by colons are concatenated. That is, the expression following the colon is printed immediately after the expression preceding the colon. To print a list without a LINEFEED and RETURN, end the print.list with a colon ( : ).

The CRT statement works similarly to the DISPLAY statement.

If NLS is enabled, the CRT statement uses the terminal map in order to print. For more information about maps and devices, see WebSphere DataStage National Language Support Guide.

Example

CRT "This can be used to print something on the"
CRT "terminal while"
CRT "the PRINTER ON statement is in effect."

The program output on the terminal is:

This can be used to print something on the
terminal while
the PRINTER ON statement is in effect.

PDF This topic is also in the IBM WebSphere DataStage BASIC Reference Guide.

Update icon Last updated: 2008-09-30