Hi Robert,
I have not tried to copy using HLASM yet but just with IDCAMS so far
this is the code
Code: Select all
//STEP010 EXEC PGM=IDCAMS
//********************************************************************
//****** REPRO PS TO VSAM FILE *******
//********************************************************************
//DDI DD DSN=KINGO.TESTDATA,
// DISP=SHR
//DDO DD DSN=KINGO.KSDS.DATA,
// DISP=SHR
//SYSIN DD *
INFILE(DDI) -
OUTFILE(DDO)
/*
//SYSOUT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSABOUT DD SYSOUT=*
//SYSDUMP DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
and I got the error below
Code: Select all
REPRO -
INFILE(DDI) -
OUTFILE(DDO)
IDC3302I ACTION ERROR ON KINGO.KSDS.DATA
IDC3351I ** VSAM I/O RETURN CODE IS 76 - RPLFDBWD = X'4908004C'
IDC31467I MAXIMUM ERROR LIMIT REACHED.
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12
I understood what was the actual problem, I changed the DISP of DDIO to OLD and I got the expected results.
But for the first successful REPRO alone I got
Code: Select all
IDC3351I ** VSAM OPEN RETURN CODE IS 108
Code: Select all
108
Attention message: the time stamps of a data component and an index component do not match; this indicates that either the data or the index has been updated separately from the other. Check for possible duplicate VVRs.
I will try this with HLASM now