pui.disconnectJob(callback)





This API was introduced in Profound UI Version 6, Fix Pack 16.0



This function disconnects the 5250 interactive job. 

Parameters:

  • callback (optional) - A callback function that will be invoked when the disconnect request completes. 1 argument is passed to the callback. The value will be null if the request was successful, or an error message string if the request failed.

The 5250 interactive job is disconnected using the DSCJOB command. If the request is successful, the session will go to a 5250 sign on display. The user can sign in again to resume the session. The session can also be resumed if the Genie session is ended and a new one is started with the workstation id of a disconnected job.

Example:

pui.disconnectJob(function(error) { if (error) { alert(error); } });