Location in the JCL

If the /*MESSAGE statement is after the JOB statement, JES2 appends the job number to the beginning of the message.

If the /*MESSAGE statement is not within a job, JES2 appends the input device name to the beginning of the message.