Object module output

To create an object module and store it on disk or tape, you can use the OBJECT compiler option.

If you do not specify filename with the OBJECT option, the compiler stores the object code in the file that you define in the SYSLIN DD statement. If you do not specify filename with the OBJECT option, and did not allocate SYSLIN, the compiler generates a default file name, as described in OBJECT | NOOBJECT.

Under z/OS® UNIX System Services, an object name specified with -o will take priority over the file name specified with the OBJECT option.

Differences in object modules under IPA

The format of the object module generated by a regular compile might differ from that generated by an IPA Compile, depending on the IPA suboption setting. If the IPA suboption is set to OBJECT, the object module contains an IPA object in addition to optimized object code and associated symbolic information. If NOOBJECT is specified, only the IPA object is written to the object module. The IPA Link phase can only read the IPA object code from the input object modules. It is the only process which can do so. Therefore, if you attempt to bind an IPA object file that was created by using the IPA(NOLINK,NOOBJECT) option, the binder issues an error message and the bind will fail.

Refer to Valid input/output file types for information about valid input and output file types.