web services demo execution causes 3970

Document ID : KB000104077
Last Modified Date : 03/07/2018
Show Technical Document Details
Question:
When we add all of the definitions for the WebServices demo and compile all of the pgms and dialogs, any input cause CV to crash with 3970.  Why? 
Answer:
The Listener PTERM in the TCPIP LINE was defined with parameter TASK IS RHDCNP3W MODE IS SYSTEM. 
Once it was changed to MODE IS USER the Web Services Demo worked as expected. 

Example: 

ADD PTERM TCPWSRV 
ENABLED 
IN LINE TCPIP 
MAXIMUM ERRORS IS 3 
PRINTER CLASS IS 1 
READBUFFER 
TYPE IS LISTENER 
TASK IS RHDCNP3W MODE IS USER 
PORT IS 3850