Sunteți pe pagina 1din 3

MOVING DATA FROM PRODUCTION REGION TO TEST REGION *************************************************** IMPORTANT ## Look for the NOTE below :'PART

1 (EXPORT) =============== 1. 2. 3. 4. 5. 6. 7. 8. Go to QMF2P give a Select querry on the data you want. Look that values appear on screen. Create a dataset with name DXXXX.YYYYY.ZZZZZZ At the command prompt enter this, then press enter. COMMAND ===> EXPORT DATA TO 'DXXXX.YYYYY.ZZZZZZ' If the LOGICAL RECORD LENGTH is not satisfied delete the dataset and alocate with new LREC flashed on the screen. And repeat the step 4. Browse thru the data. Once the data is moved to dataset, then IMPORT to the test region.

'PART 2 (IMPORT) =============== 1. Go to the QMF23. 2. At command prompt enter this COMMAND ===> IMPORT TABLE and press enter(twice). 3. The screen below appears ______________________________________________________________________________ +---------------------------------------------------------------------------------+ | IMPORT Command Prompt | | 1 to 15 of 15 | | Type ( TABLE ) | | | | Name ( SMS.SNIVW ) + | | To import an object from a TSO data set into temporary | | storage, enter its type: DATA, QUERY, FORM, or PROC. | | To import an object from a TSO data set into the database, | | enter its type and the name it is to have in the database. | | Type, in this case, can be TABLE (for table or view), | | QUERY, FORM, or PROC. | | FROM | | Data set name ( 'D5995.SNT.SNIVW' ) | | Enter the name of the TSO data set being copied. | | Member ( ) |

| | |

If the TSO data set is partitioned, enter the

member name. | +---------------------------------------------------------------------------------+ | F1=Help F3=End F4=List F7=Backward F8=Forward | +---------------------------------------------------------------------------------+ The data set name must be fully-qualified. 4. Enter the 'Name' of the table on which you want to store. 5. Enter the 'Data set name' where you have stored thru the EXPORT command. 6. After entering reqired field press enter new screen appears, ______________________________________________________________________________ +--------------------------------------------------------------------------------------+ | IMPORT Command Prompt | | 1 to 11 of 11 | | IMPORT type TABLE | | name SMS.SNIVW | | | | Confirm ( YES ) Display the confirmation panel before replacing | | an object in the database? YES or NO. | | | | Comment ( ) | | You can enter a comment to be saved with the object. | | | |'Action' ('REPLACE' ) REPLACE to replace table, APPEND to append imported | | rows to an existing table. | +--------------------------------------------------------------------------------------+ | F1=Help F3=End F7=Backward F8=Forward | +--------------------------------------------------------------------------------------+ Type command on command line or use PF keys. For help, press PF1 or type HELP. ______________________________________________________________________________ Please follow the directions on the command prompt panel. 7. At the 'Action' field change 'REPLACE' to 'APPEND' and then press enter. The values are moved to the test region, then give the same querry given in the production region and check the table. 8. Go to QMF23 give a Select querry on the data you have IMPORTED.

***************************************************************************** ## NOTE:--------While downloading the data from production to test. If you are using Export/Import presently it is asking for TDQUEUE name. Another solution to do the downloading is as follows: Go to the production DB2 region using QMF2P and select the desired rows which you want to move into test. SELECT * FROM CMISDBP.SMSHRPVW WHERE (.................) Once you see the result table in report panel, connect the DB2 test region by typing 'connect to DB23' on command line. You will get the message like 'connected to DB23'. Now save the data by typing 'save data as temp' on command line. Now you can insert the data in test region by typing INSERT INTO CMISDBT.SMSHPRVW SELECT * FROM TEMP on query panel.

S-ar putea să vă placă și