On the GAMS command line
Profile is a valid command line option and may be set as follows
GAMS MYMODEL PROFILE = 1 DOS
GAMS MYMODEL -PROFILE 2 UNIX