WARNINGS Directive The WARNINGS directive turns on or off the output of warnings. Syntax $WARNINGS [ON ] [OFF] Default On; warnings are output. Location The WARNINGS directive can appear anywhere within the program unit. Toggling/ Duration The WARNINGS directive remains in effect until another WARNINGS directive is encountered.