Copy users definition from one TPX to another

Document ID : KB000012289
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

How can I copy my user definitions from one TPX into another?

Answer:

Here are the necessary steps to copy user definitions from one TPX to another:

1. Extract the records from your backup with: 

EXTRACT GIVING(TPXDATA) USER ALL SESSIONS (UIDXNAME(xxxxxxxx)) 

xxxxxxxx is the filter for the userids. If you want to copy all users then use eight dashes --------. If you want to copy only all users starting with L then use L------- for xxxxxxxx.

2. Delete the user in your TPX online or via TPXBATCH 

3. Stop the TPX region in which you just deleted the user 

4. REPRO the data from the extract file into your running ADMIN2 files 
Use a JCL like this: 
//STEP1    EXEC PGM=IDCAMS 
//SYSPRINT DD   SYSOUT=* 
//INDS     DD   DSN=AAA.BBB.EXTRACT,DISP=SHR 
//OUTDS    DD   DSN=TPX.ADMIN2,DISP=SHR 
//SYSIN    DD   * 
 REPRO INFILE(INDS) OUTFILE(OUTDS) REPLACE 
/*

Remember that these operations are done at your own risk! Make sure you have a backup in case you get problems after having copied the data!