COPY XCOMCNFG

book

Article ID: 129529

calendar_today

Updated On:

Products

CA XCOM Data Transport CA XCOM Data Transport - Windows CA XCOM Data Transport - Linux PC CA XCOM Data Transport - z/OS

Issue/Introduction

Received the following message when trying to copy the XCOMCNFG

00 03/08/19 10:00:00.093792 QWTPCRJA QSYS 0110 *EXT 
Message . . . . : Job 927847/XCOM/MATXCOMMT submitted. 
Cause . . . . . : Job 927847/XCOM/MATXCOMMT submitted to job queue ZSAJOBQ 
in ZSASYS from job 900184/QSYS/QJOBSCD. 
30 03/08/19 10:00:00.096457 QCPFLD QSYS 0F03 QCMD QSYS 
Message . . . . : FMTOPT(*MAP) or FMTOPT(*NOCHK) required for copy. 
Cause . . . . . : The record format for to-file XCOMCNFG in library XCOMMT either has more fields or the fields have different attributes than the from-file XCOMCNFG in library XCOM. Recovery . . . : Specify FMTOPT(*MAP) or FMTOPT(*NOCHK). Then try the request again. Technical description . . . 
. . . . . : 12 extra fields in the to-file record format do not exist in the from-file format. 53 fields have different attributes or positions in the from-file and to-file record formats. 
40 03/08/19 10:00:00.096485 QCPFLD QSYS 0F03 QCMD QSYS 
Message . . . . : Copy command ended because of error. 
50 03/08/19 10:00:00.124914 QCMD QSYS 066F *EXT 
Message . . . . : Job ended. Cancel message received at command processor. 
00 03/08/19 10:00:00.126214 QWTMCEOJ QSYS 0161 *EXT 
Message . . . . : Job 927847/XCOM/MATXCOMMT ended on 03/08/19 at 10:00:00; 
.006 seconds used; end code 20 .

Environment

XCOM r11.0

Resolution

The command in question is not an XCOM command, but the CPYF command from AS/400. Per the message they have to add the FMTOPT(*MAP) to the command. Sample command:

CPYF FROMFILE(XCOM/XCOMCNFG) TOFILE(XCOM/XCOMCNFG) FROMMBR(XCOMCNFG) TOMBR(XCOMCNFG) MBROPT(*REPLACE) FMTOPT(*MAP)