|
If you are replying to my suggestion of using REUSEDLT(*YES), then I apologize for not being clear. This is not a command that you run to do something to the file. It is an option on the CRTPF and CHGPF commands that makes a permanent change to the file, so you only need to do it once. I meant to suggest that you change the file now to use that option. (Go to the AS/400 command line when the file is not in use, and type CHGPF FILE(xxx) REUSEDLT(*YES).) PC2 -----Original Message----- From: Xu, Weining [mailto:Weining.Xu@aig.com] Sent: July 11, 2001 10:12 To: 'JAVA400-L@midrange.com' Subject: RE: DB2 SQL This is what I try to avoid if I could. Since this task is in the middle of a continuing batch process, I can not stop the program to run a AS400 command (Maybe I could try to run AS400 commard inside my Java program??). -----Original Message----- From: Tanveer, Mohammad [mailto:MTanveer@friedmancorp.com] Sent: Wednesday, July 11, 2001 11:47 AM To: 'JAVA400-L@midrange.com' Subject: RE: DB2 SQL Drop table and create table as simple as it is. -----Original Message----- From: Clapham, Paul [mailto:pclapham@core-mark.com] Sent: Wednesday, July 11, 2001 10:18 AM To: JAVA400-L@midrange.com Subject: RE: DB2 SQL I assume that you are using an SQL "delete all" statement to "clear" the file; if you used the AS/400 CLRPFM command, you wouldn't need to ask this question. However, if you can't use CLRPFM the simplest way to solve your question is to change the physical file to REUSEDLT(*YES). Then the first record added after you delete all of the records will reuse relative record number 1, and so on. PC2 -----Original Message----- From: Xu, Weining [mailto:Weining.Xu@aig.com] Sent: July 11, 2001 05:51 To: 'JAVA400-L@midrange.com' Subject: DB2 SQL I am using JDBC to process DB2 data on AS400 in a Java application. A table in Db2 database will be cleared every month after the monthly batch process and then re-load the data. Before loading the new data, I want to reoganize this table after the data are deleted in order to have RRN reset to zero. How to do this in SQL? So I can execute SQL statement to the database in my Java program. Thanks for your help. +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +--- +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +--- +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +--- +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.