CICSTTY class
Displays a string on the System Transcript window, when you are running in the development image, and on the CICS terminal in CICS for workstation or CICS Transaction Server, when you are running as a CICS transaction. The CICSTTY class contains three class methods; the behavior for methods show: and cr mirrors the methods of the same name in EtTranscript.
Defined class methods
cr
Forces a carriage return on the System Transcript window or on the CICS terminal.
flush
Displays the string immediately. If you do not use flush, your output will appear either when the program ends or when the output screen fills. For example, to print a message to the CICS terminal immediately, while the program is running, enter:
CICSTTY show: 'Send it now.'; flush.
nextPut:
Adds a character to the receiver on the System Transcript window or on the CICS terminal.
nextPutAll:
Adds a string to the receiver on the System Transcript window or on the CICS terminal.
show:
Displays the string on the System Transcript window or on the CICS terminal.
space
Adds one space to the receiver on the System Transcript window or on the CICS terminal.
space:
Adds a specified number of spaces to the receiver on the System Transcript window or on the CICS terminal.
tab
Adds one tab to the receiver on the System Transcript window or on the CICS terminal.
tab:
Adds a specified number of tabs to the receiver on the System Transcript window or on the CICS terminal.
Examples
Example 1
Displays a status message on the System Transcript window or on the CICS terminal, depending on where it is issued.
CICSTTY show: 'Your Smalltalk code is running on CICS Transaction Server.'; cr.
Example 2
Displays a status message on the System Transcript window or on the CICS terminal, depending on where it is issued.
CICSTTY cr;
nextPutAll: 'Your Smalltalk program is running on CICS';
nextPut: '/';
nextPutAll: 'ESA.';
space: 2;
nextPutAll: 'Congratulations!';
flush.
Last modified date: 07/09/2019