Set GSERVEUR variable to 1 for example
GSERVEUR = 1 #set session batch
Call message(“I am in in batch mode”) from GESECRAN
#.....
GSERVEUR =0