export import procedue

Upload: sreedhar-konduru

Post on 03-Apr-2018

213 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/28/2019 Export Import Procedue

    1/3

    MOVING DATA FROM PRODUCTION REGION TO TEST REGION***************************************************

    IMPORTANT ## Look for the NOTE below :-

    'PART 1 (EXPORT)===============

    1. Go to QMF2P give a Select querry on the data you want.2. Look that values appear on screen.3. Create a dataset with name DXXXX.YYYYY.ZZZZZZ4. At the command prompt enter this, then press enter.

    COMMAND ===> EXPORT DATA TO 'DXXXX.YYYYY.ZZZZZZ'5. If the LOGICAL RECORD LENGTH is not satisfied delete the dataset

    and alocate with new LREC flashed on the screen.6. And repeat the step 4.7. Browse thru the data.8. 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 TABLEand 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 ( )|

  • 7/28/2019 Export Import Procedue

    2/3

    | 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 samequerry given in the production region and check the table.

    8. Go to QMF23 give a Select querry on the data you have IMPORTED.

  • 7/28/2019 Export Import Procedue

    3/3

    *****************************************************************************

    ## NOTE:----------While downloading the data from production to test. If you are usingExport/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 desiredrows which you want to move into test.

    SELECT * FROM CMISDBP.SMSHRPVW WHERE (.................)

    Once you see the result table in report panel, connect the DB2 testregion by typing 'connect to DB23' on command line. You will get themessage 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.SMSHPRVWSELECT * FROM TEMP

    on query panel.