View previous topic :: View next topic
|
Author |
Message |
anirudh1985 Currently Banned New User
Joined: 22 Aug 2007 Posts: 66 Location: bangalore
|
|
|
|
Hi all,
We are having a load program whill load the IMS database(OSAM). The input is a flat file. When we execute the batch JCL we are getting DB status code as XC. Please help us to proceed. its a batch program. |
|
Back to top |
|
|
anirudh1985 Currently Banned New User
Joined: 22 Aug 2007 Posts: 66 Location: bangalore
|
|
|
|
Can somebody please help me.... |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
Back to top |
|
|
anirudh1985 Currently Banned New User
Joined: 22 Aug 2007 Posts: 66 Location: bangalore
|
|
|
|
Thanx a lot for your reply can you tell me how a load PSB looks like..
This is how our psb looks like...:
PCB TYPE=DB,DBDNAME=YJEPU,PROCOPT=A,KEYLEN=23
SENSEG NAME=EPROOT,PARENT=0
PSBGEN LANG=COBOL,PSBNAME=YEPPSB,CMPAT=YES
END
Since we are new to ims we are finding this a lil difficult kindly guide us thru |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
Can you do some research? That is the best way to learn. But, first of all, for a load, the databases must be stopped - offline. The only processing option will be PROCOPT=L. Your flat file must be sorted. |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
TYPE=DB,DBDNAME=YJEPU,KEYLEN=23,PROCOPT=LS
SENSEG NAME=EPROOT,PARENT=0
PSBGEN PSBNAME=YEPPDB,LANG=COBOL
END
Here is an example - assuming that this is truly a root only database. |
|
Back to top |
|
|
anirudh1985 Currently Banned New User
Joined: 22 Aug 2007 Posts: 66 Location: bangalore
|
|
|
|
Thank you for your reply SANDY We tried changing the PROCOPT too but in vain.....the sysout shows the following:
FUNC ISRT ISRT
DB-PCB-MASK
IN-EPROOT BUF 011as02cs060
SSA EPROOTU EPROOT *--
IN-EPROOT BUF 011as02cs060
DB STATUS CODEXC
PCB STATUS CODE XC YEPPSB
FUNC ISRT ISRT
DB-PCB-MASK XC
IN-EPROOT BUF 021sj02me007
SSA EPROOTU EPROOT *--
IN-EPROOT BUF 021sj02me007
We have done a lot of research but still unable to solve this...Please try to help us:) |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
Display the PSB - /dis pgm YEPPDB |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
Back to top |
|
|
anirudh1985 Currently Banned New User
Joined: 22 Aug 2007 Posts: 66 Location: bangalore
|
|
|
|
Sandy Zimmer wrote: |
Display the PSB - /dis pgm YEPPDB |
We do this every time before we run the run jcl
/DISP PROG YEPPSB
/DISP DB YJEPU OPEN
Inspite of this we are facing the problem.In fact we have tried with our own sample program which loads a sample db..This works correctly however the above program fails... |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
Your display of the database should indicate that it is stopped.
Compare what you have done with the procedure that works against the procedure that does not work. |
|
Back to top |
|
|
anirudh1985 Currently Banned New User
Joined: 22 Aug 2007 Posts: 66 Location: bangalore
|
|
|
|
Sandy Zimmer wrote: |
Your display of the database should indicate that it is stopped.
Compare what you have done with the procedure that works against the procedure that does not work. |
We are still not able to solve the XC please help us. |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
I'm afraid TS only modified the PROCOPT but didn't remove the CMPAT=Y so the first PCB is still the IO/PCB. |
|
Back to top |
|
|
anirudh1985 Currently Banned New User
Joined: 22 Aug 2007 Posts: 66 Location: bangalore
|
|
|
|
Bitneuker wrote: |
I'm afraid TS only modified the PROCOPT but didn't remove the CMPAT=Y so the first PCB is still the IO/PCB. |
But when we change the procopt to L or LS The PSB terminates and we need to restart....we are getting NOTINIT status in IMS region |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Just my 2€ worth...
for what reason are You running the load as a BMP,
wouldn' t it be faster and safer to run it as a standalone batch IMS job.
I might be wrong, since it has been a long time since I played with IMS, but... meditate |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
You need to REMOVE the CMPAT=Y - recompile the PSB - stop the database. |
|
Back to top |
|
|
|