How to simulate Web service environment when running code in editor

Set GSERVEUR variable to 1 for example

 

GSERVEUR = 1       #set session batch

   Call message(“I am in in batch mode”) from GESECRAN

#.....

#.....

 

GSERVEUR =0