How to copy my user definitions from one TPX into another?
Here are the necessary steps to copy user definitions from one TPX to another:
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.
//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!