Link-editing 64-bit applications
For 64-bit applications, you must link-edit your applications with the DFSMS binder. 64-bit applications are compiled as XPLINK applications.
About this task
For 64-bit applications, you must use the 64-bit ODBC driver.
Procedure
To link-edit 64-bit applications:
Take one of the following actions:
Option | Description |
---|---|
To link-edit the application in z/OS®: | Include the following items in your JCL:
For an example of a z/OS link-edit job for a 64-bit application, see the DSNTEJ8E sample job in DSN1310.SDSNSAMP. |
To link-edit the application in z/OS UNIX System Services: | Use the c89 command to prelink and link-edit C applications and the cxx command to prelink and link-edit C++ applications. Include the following items in the command:
Alternatively, you can use the xlc utility on z/OS UNIX System Services to link-edit the application. Follow the appropriate syntax for that utility. |
Example of link-editing in z/OS UNIX when you specify an alias for the ODBC definition sidedeck
Assume that you have already compiled an application named myapp.c to create a myapp.o file in the current working directory. Assume that you also specified an alias that uses .EXP as the last qualifier for the Db2 ODBC definition sidedeck.You use the following
c89
command to prelink and link-edit a 64-bit C application: c89 -W l,lp64,map -o dsn8o3vp dsn8o3vp.o "//'DSN1310.SDSNC.EXP(DSNAO64C)'"
You use the following
cxx
command to prelink and link-edit a 64-bit C++ application: cxx -W l,lp64,map -o dsn8o3vp dsn8o3vp.o "//'DSN1310.SDSNC.EXP(DSNAO64C)'"