Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Deleting data from more than one partitions using DB2 LOAD

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
rakesh17684

New User


Joined: 08 Oct 2006
Posts: 60
Location: San Diego

PostPosted: Mon May 14, 2012 8:45 am    Post subject: Deleting data from more than one partitions using DB2 LOAD
Reply with quote

Hi,

I am planning to delete records from more than 1 partitions in a table using the DB2 load utility.

I have used :
Code:
LOAD DATA RESUME(YES)  ENFORCE CONSTRAINTS                     
  INDDN(SYSRECAC) INTO TABLE IXY1.MAIN_ITM PART 2 REPLACE
where SYRECAC contains an empty file
to delete records from second partition and it works successfully.
Do we have LOAD commands to delete from a range of partitions- say partitions 2 to 4 or 1 to 2.
I have tried
Code:
LOAD DATA INDDN(SYSRECAC)                       
RESUME YES                                     
INTO TABLE IXY1.MAIN_ITM REPLACE PART 1:2
but I get error messages like INVALID OPERAND '2' FOR KEYWORD 'INTO' .

Thanks in advance for any help and info. on this
Back to top
View user's profile Send private message

gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Mon May 14, 2012 4:26 pm    Post subject:
Reply with quote

Hi,

Please find below control card... not tested...

Code:

LOAD DATA                                                                                                                             
  INTO TABLE DBA01.TBLX3303                                               
    PART 1 REPLACE                                                               
    INDDN PART1                                                           
    DISCARDDN DISC1                                                       
      (EMPNO      POSITION(1)    CHAR(6),                                 
       LASTNAME   POSITION(8)    VARCHAR(15),                             
       SALARY     POSITION(25)   DECIMAL(9,2))                           
  .                                                                       
  .                                                                       
  .                                                                       
  INTO TABLE DBA01.TBLX3303                                               
    PART 5 REPLACE                                                               
    INDDN PART5                                                           
    DISCARDDN DISC5                                                       
      (EMPNO      POSITION(1)    CHAR(6),                                 
       LASTNAME   POSITION(8)    VARCHAR(15),                             
       SALARY     POSITION(25)   DECIMAL(9,2))               


Let us know if this works...
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts 3270 Data stream error Benchwarmer CICS 6 Tue Apr 17, 2018 12:06 am
No new posts How to list data set names with diffe... murali.andaluri CLIST & REXX 8 Thu Apr 12, 2018 11:33 pm
No new posts Invalid XML character while producing... nikhil.bhole IBM Tools 4 Tue Mar 20, 2018 1:24 am
No new posts Get the list of data sets on DASD and... rakaitn JCL & VSAM 3 Thu Mar 08, 2018 12:38 pm
No new posts can we hardcode a value in db2 load c... ram_vizag DB2 2 Wed Feb 28, 2018 11:04 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us