USE Procedure Step not supported on selected environment

Document ID : KB000012167
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

When generating a server Procedure Step that contains a Procedure Step USE statement in language of 'C' and with the following generation defaults, a developer gets a message "A USE Procedure Step statement is not supported on the selected environment.", why is this the case?  

Generation Defaults: 
Operating System: WINDOWS
DBMS(TD): <any>
LanguageL C
TP Monitor: IEFAE
Communications: GEN

Answer:

On Windows, it is not allowed to have a Procedure Step USE statement on a Server Procedure Step, except with a communications type of MQS or Tuxedo

Gen allows the Procedure Step use within a server Procedure Step when:
commtype = MQS or TUX    and   Operation System = WINDOWS, UNIX, or LINUX