IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DCOLLECT ERROR While reading backupinfo from BCDS Datasets


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jayp_agrawal

New User


Joined: 23 Jun 2005
Posts: 25
Location: Norwich

PostPosted: Wed Dec 09, 2009 12:10 pm
Reply with quote

Hello,

I am trying to collect some backupinfo from BCDS using DCOLLECT.
I am using following parameter in my DCOLLECT JOB.

//SYSIN DD *
DCOLLECT -
OUTFILE(DCOUT) -
BACKUPDATA


This DCOLLECT fails with the following error message.
IDC21804I FAILURE DURING MIGRATION DATA COLLECTION SERVICE PROCESSING -
IDC21804I RETURN CODE WAS X'0C' REASON CODE WAS X'00000002
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8

there are 4 BCDS component BCDS1,BCDS2,BCDS3,BCDS4, for all except BCDS1 it works fine.

I have done dataset audit, BCDS audit, have run a IDCAMS EXANINE and diagnose. but all seems to have ended OK.

Could anyone suggest how we can identify what the problem is and any possible way of solving it.


Thanks
Jay
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Dec 09, 2009 12:24 pm
Reply with quote

Post the JCL as well
Back to top
View user's profile Send private message
jayp_agrawal

New User


Joined: 23 Jun 2005
Posts: 25
Location: Norwich

PostPosted: Wed Dec 09, 2009 1:35 pm
Reply with quote

//DCOLLECT EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//BCDS DD DSN=HSM6.BCDS1,DISP=SHR
//DCOUT DD DSN=AGARWJ1.DCOL.HSM.IBM6.T,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(1000,1000),RLSE),
// DCB=(RECFM=VB,LRECL=32756,BLKSIZE=0)
//SYSIN DD *
DCOLLECT -
OUTFILE(DCOUT) -
BACKUPDATA

IF MAXCC = 8 THEN SET MAXCC = 0
/* END OF DCOLLECT COMMAND
**************************** Bottom of Data ********
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Dec 09, 2009 2:02 pm
Reply with quote

Have you tried adding the DD statements for all of the BCDS components
Back to top
View user's profile Send private message
jayp_agrawal

New User


Joined: 23 Jun 2005
Posts: 25
Location: Norwich

PostPosted: Wed Dec 09, 2009 2:23 pm
Reply with quote

I have tried initially with all BCDS components - It was giving the same error.

Then I tried with individual datasets.

with BCDS2 BCDS3 abd BCDS4 it ended with RC=0
only in case of BCDS1 it is causing this problem.



Cheers
Jay
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Dec 09, 2009 3:03 pm
Reply with quote

Please post the code and output from the failure where you have defined all of the BCDS components.
Back to top
View user's profile Send private message
jayp_agrawal

New User


Joined: 23 Jun 2005
Posts: 25
Location: Norwich

PostPosted: Wed Dec 09, 2009 4:51 pm
Reply with quote

JCL Code


//DCOLLECT EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//BCDS DD DSN=HSM6.BCDS1,DISP=SHR
//BCDS2 DD DSN=HSM6.BCDS2,DISP=SHR
//BCDS3 DD DSN=HSM6.BCDS3,DISP=SHR
//BCDS4 DD DSN=HSM6.BCDS4,DISP=SHR
//DCOUT DD DSN=AGARWJ1.DCOL.HSM.IBM6.T,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(1000,1000),RLSE),
// DCB=(RECFM=VB,LRECL=32756,BLKSIZE=0)
//SYSIN DD *
DCOLLECT -
OUTFILE(DCOUT) -
BACKUPDATA

IF MAXCC = 8 THEN SET MAXCC = 0
/* END OF DCOLLECT COMMAND


Error Message :

IDCAMS SYSTEM SERVICES TIM

DCOLLECT -
OUTFILE(DCOUT) -
BACKUPDATA
IDC21804I FAILURE DURING MIGRATION DATA COLLECTION SERVICE PROCESSING
IDC21804I RETURN CODE WAS X'0C' REASON CODE WAS X'00000002
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Dec 09, 2009 5:13 pm
Reply with quote

It says that the failure is during the collection of migrated data, which you have not shown in your submitted JCL.

Are you sure that you are showing us the submitted JCL, or just what you want to show us. Admitedly only with one BCDS I have just processed a DCOLLECT ofr only BACKUPDATA and had no problems.

Have you tried adding the MCDS DD ststement to see what happens. Although the error messages / codes do point to a BCDS problem.

How much HSM processing is going on at the time.
Does the BCDS need a reorg.
How was the BCDS split.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Dec 09, 2009 5:54 pm
Reply with quote

Oh, almost forgot, is the BCDS RLS ?
Back to top
View user's profile Send private message
jayp_agrawal

New User


Joined: 23 Jun 2005
Posts: 25
Location: Norwich

PostPosted: Fri Dec 11, 2009 3:16 pm
Reply with quote

Hello,

Though this message says migration dataset collection error,
it is actually a problem while reading data from BCDS.
It is clear from error code definition

IDC21804I RETURN CODE WAS X'0C' REASON CODE WAS X'00000002

JCL given here is the one which I have used.

There is no HSM processing going on as it is a test lpar and we an shut down HSM if needed.

We have already done reorg for all 4 BCDS datasets.


All BCDS files are RLS files
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Dec 11, 2009 7:06 pm
Reply with quote

Unfortunately I don't have too much time at the moment, but have you tried
Code:
//BCDS  DD DSN=HSM6.BCDS1,DISP=SHR,RLS=NRI
//BCDS2 DD DSN=HSM6.BCDS2,DISP=SHR,RLS=NRI
//BCDS3 DD DSN=HSM6.BCDS3,DISP=SHR,RLS=NRI
//BCDS4 DD DSN=HSM6.BCDS4,DISP=SHR,RLS=NRI
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts Find the size of a PS file before rea... COBOL Programming 13
Search our Forums:

Back to Top