| Command group | Flag affected | Reversible | Execute on client | Platform(s) |
| Report destinations | YES | NO | NO | All |
This command specifies the name of the port to be used with subsequent input or output via the port. The flag is set if the port is successfully selected. The command should follow Send to port. You can set the baud rate and other parameters for the port using Set port parameters.
Set port name is not reversible, but if you use it in a reversible block the specified port is closed when the method terminates.
If an error occurs, then this command sometimes generates a fatal error. You can use an error handler to intercept the fatal error; see Load error handler for details.
Set report namerMyReport
Send to port
Ifplatform()='X'Set port name1 (Modem port)## Mac OSX
ElseSet port nameCOM1:## Windows & Linux
End If
Set port parameters1200,n,7,2
Print report