Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


The following example shows that options in the command line override options in an environment variable.

SET ILINK=/NOI /AL:256 /DE
cob2 test
cob2 /NODEF /NODEB prog

The first command above sets the environment variable ILINK to the options /NOIGNORECASE, /ALIGNMENT:256, and /DEBUG.

The second command links test.obj, using the options specified in ILINK, to produce test.exe.

The last command links prog.obj to produce prog.exe, using the options /NODEFAULTLIBRARYSEARCH and /NODEBUG in addition to the options /NOIGNORECASE and /ALIGNMENT:256. /NODEBUG in the command line overrides the /DEBUG setting in the environment variable.

related tasks
Linking from the command line


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)