Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / January 2008

Tip: Looking for answers? Try searching our database.

Help with db2Load API (COPY= YES USE TSM)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vivek - 30 Jan 2008 11:33 GMT
Hi,

Ive written a test program for loading data into a table using the
db2Load api. It works fine except when i specify COPY = YES USE TSM.
Ive set the aforementioned attribute in the api by the following line
of code:

if(useTsm == 'Y' || useTsm == 'y')
 {
    loadParms.piCopyTargetList = &copyMediaList;
    loadParms.piCopyTargetList->media_type = SQLU_ADSM_MEDIA;
    loadParms.piCopyTargetList->sessions = 1;
 }

On running the program i get the following error:

SQL2032N  The "copy_flag" parameter is not valid

What might be the problem ?
Vivek - 31 Jan 2008 05:33 GMT
> Hi,
>
[quoted text clipped - 15 lines]
>
> What might be the problem ?

I found the problem. In order to create a copy the
"loadInfoIn.iNonrecoverable" parameter should be set to
SQLU_RECOVERABLE_LOAD instead of SQLU_NON_RECOVERABLE_LOAD
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.