|
Assignment to a ChannelWriting a string to an open channel can be achieved using assignment statements in which the symbolic name on the left hand side of the equals sign is #(<channel>). Channel 6 is assigned to system output.
qcl>#(6)='This string will be written to the screen'
qcl>
qcl>CHANNEL=NEW('lp.lis')
qcl>#(CHANNEL)='Write a line to the new file lp.lis'
qcl>#(CHANNEL)='Write another line'
[Next: HDS] [Previous: Special Functions] [Back to Assignments and Expressions] |
|||||||||||||||||||||||||||||||||||
|
|