How to copy UAMS to another LPAR

Document ID : KB000103277
Last Modified Date : 13/09/2018
Show Technical Document Details
Question:
Is there a way to offload the UAMS File  so that it can be copied for use on another system?
Answer:
You can use a standard IDCAMS REPRO for copying UAMS. 

Sample JCL for backup (you would adjust the DSN's, SPACE and other allocation parameters to match your environment): 
//UAMSBKUP EXEC  PGM=IDCAMS 
//UAMSIN   DD DISP=SHR,DSN=hlq.UAMS 
//UAMSOUT  DD DSN=hlq.UAMS.FLATFILE, 
//            DISP=(NEW,CATLG), 
//            SPACE=(TRK,(9000,9000),RLSE), 
//            DCB=(RECFM=VB,LRECL=4096,BLKSIZE=23445), 
//*           VOL=SER=VOLSERX,UNIT=SYSDA 
//            STORCLAS=NMDPOOL 
//SYSPRINT  DD SYSOUT=* 
//SYSIN     DD * 
  REPRO OUTFILE(UAMSOUT) INFILE(UAMSIN) 
// 


Then create an empty UAMS file using the appropriate allocate job from your region build JCL and REPRO the contents back in. 

We have no restrictions for using the standard IDCAMS capability for UAMS. 

Other options: 
- File Master or FileAid, can also be used to copy the VSAM file. 
- DFDSS DUMP and RESTORE to a newname will also work successfully. 


PLEASE NOTE: We recommend ensuring that the UAMS file is not in use when it is being copied to avoid potential corruption of the file.