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

Problem during DBDGEN for SECNDARY INDEX


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shreejita

New User


Joined: 16 Aug 2009
Posts: 60
Location: chennai

PostPosted: Wed Aug 25, 2010 9:57 am
Reply with quote

Hi All,

Please help me to solve this error. I am doing DBDGEN for the secondary index and following is the code

PRINT NOGEN
DBD NAME=EMPTOTAL,ACCESS=(HIDAM,VSAM)
DATASET DD1=DATADD,DEVICE=3390

SEGM NAME=EMPLOYEE,PARENT=0,BYTES=34
LCHILD NAME=(NAMESEG,EMPTOTDX),POINTER=INDEX
FIELD NAME=(EMPNO,SEQ,U),BYTES=4,START=1,TYPE=C
FIELD NAME=EMPNAME,BYTES=20,START=5,TYPE=C
FIELD NAME=DEPTNAME,BYTES=4,START=25,TYPE=C
XDFLD NAME=XDNAME,SRCH=DEPTNAME
FIELD NAME=EMPADDR,BYTES=6,START=29,TYPE=C

DBDGEN
FINISH
END

and

Following is the error received, i tried a lot but could not

1 PRINT NOGEN
2 DBD NAME=EMPTOTAL,ACCESS=(HIDAM,VSAM)
4 DATASET DD1=DATADD,DEVICE=3390
6 *
7 SEGM NAME=EMPLOYEE,PARENT=0,BYTES=34
14 LCHILD NAME=(NAMESEG,EMPTOTDX),POINTER=INDEX
16+ 8,LCHD140 - POINTER OR PTR OPERAND IS INVALID.
19 FIELD NAME=(EMPNO,SEQ,U),BYTES=4,START=1,TYPE=C
21 FIELD NAME=EMPNAME,BYTES=20,START=5,TYPE=C
23 FIELD NAME=DEPTNAME,BYTES=4,START=25,TYPE=C
25 XDFLD NAME=XDNAME,SRCH=DEPTNAME
26+ 8,XDFLD002 - SECONDARY INDEX LCHILD STATEMENT WITH
27+*, PTR=INDX/SYMB MUST PRECEDE THIS XDFLD
28+*, STATEMENT.
30 FIELD NAME=EMPADDR,BYTES=6,START=29,TYPE=C
28+*, STATEMENT.
30 FIELD NAME=EMPADDR,BYTES=6,START=29,TYPE=C
32 *
33 DBDGEN
34+ 8,DGEN150 - LCHILD STATEMENT FOR ROOT SEGMENT EMPLOYEE
35+*, OMITTED OR INVALID.
36+ 8,DGEN110 - DBDGEN TERMINATED; ERRORS IN DBD.
37 FINISH
38 END

Thanks
Shreejita
Back to top
View user's profile Send private message
nareshkp

New User


Joined: 26 Sep 2007
Posts: 28
Location: Bangalore

PostPosted: Wed Aug 25, 2010 1:58 pm
Reply with quote

See if you can get any clue from the below error descripion:

Explanation
One of the following occurred:
1. Both the POINTER and PTR operands were specified.
2. The POINTER or the PTR operand contains an invalid value as related to the access method defined for this DBD.
3. The POINTER or the PTR operand contains an invalid value as related to the relationship currently being described within this DBD.
System action
The value specified is used to validate following parameters.

Programmer response
Correct the POINTER/PTR operand, and rerun DBDGEN.
Back to top
View user's profile Send private message
nareshkp

New User


Joined: 26 Sep 2007
Posts: 28
Location: Bangalore

PostPosted: Wed Aug 25, 2010 2:19 pm
Reply with quote

Can you change POINTER=INDEX to POINTER=INDX and try again?
Back to top
View user's profile Send private message
shreejita

New User


Joined: 16 Aug 2009
Posts: 60
Location: chennai

PostPosted: Wed Aug 25, 2010 3:14 pm
Reply with quote

Thanx for the reply. I tried with PTR=INDX it is working but unable to solve the next error.

23 FIELD NAME=DEPTNAME,BYTES=4,START=25,TYPE=C
25 XDFLD NAME=XDNAME,SRCH=DEPTNAME
26+ 8,XDFLD002 - SECONDARY INDEX LCHILD STATEMENT WITH
27+*, PTR=INDX/SYMB MUST PRECEDE THIS XDFLD
28+*, STATEMENT.
30 FIELD NAME=EMPADDR,BYTES=6,START=29,TYPE=C

Thanks
Satyabrata Dash
Back to top
View user's profile Send private message
nareshkp

New User


Joined: 26 Sep 2007
Posts: 28
Location: Bangalore

PostPosted: Wed Aug 25, 2010 4:35 pm
Reply with quote

Check this error explanation:

XDFLD002

Explanation
This XDFLD statement must be paired to a preceding LCHILD statement which has a POINTER value of INDX or SYMB. This required LCHILD statement is missing.

System action
The specified XDFLD operand information is used in subsequent validity checking.

Programmer response
Correct the error, and rerun DBDGEN.
Back to top
View user's profile Send private message
shreejita

New User


Joined: 16 Aug 2009
Posts: 60
Location: chennai

PostPosted: Fri Aug 27, 2010 11:24 am
Reply with quote

Hi,

I tried as following but nothing worked out

PRINT NOGEN
DBD NAME=EMPTOTAL,ACCESS=HIDAM
DATASET DD1=HIDAMB,DEVICE=3390

SEGM NAME=EMPLOYEE,PARENT=0,BYTES=34
FIELD NAME=(DEPTNAME,SEQ,U),BYTES=4,START=1,TYPE=C
LCHILD NAME=(INPXPNTR,EMPTOTDX),PTR=INDX
XDFLD NAME=DINDX,SRCH=DEPTNAME
FIELD NAME=EMPNO,BYTES=4,START=5,TYPE=C
FIELD NAME=EMPNAME,BYTES=20,START=9,TYPE=C
FIELD NAME=EMPADDR,BYTES=6,START=29,TYPE=C

DBDGEN
FINISH
END

And it returns as following

1 PRINT NOGEN
2 DBD NAME=EMPTOTAL,ACCESS=HIDAM
4 DATASET DD1=HIDAMB,DEVICE=3390
6 *
7 SEGM NAME=EMPLOYEE,PARENT=0,BYTES=34
4 FIELD NAME=(DEPTNAME,SEQ,U),BYTES=4,START=1,TYPE=C
6 LCHILD NAME=(INPXPNTR,EMPTOTDX),PTR=INDX
0 XDFLD NAME=DINDX,SRCH=DEPTNAME
1+ 8,XDFLD002 - SECONDARY INDEX LCHILD STATEMENT WITH
2+*, PTR=INDX/SYMB MUST PRECEDE THIS XDFLD
3+*, STATEMENT.
5 FIELD NAME=EMPNO,BYTES=4,START=5,TYPE=C
7 FIELD NAME=EMPNAME,BYTES=20,START=9,TYPE=C
9 FIELD NAME=EMPADDR,BYTES=6,START=29,TYPE=C

thanks
Back to top
View user's profile Send private message
shreejita

New User


Joined: 16 Aug 2009
Posts: 60
Location: chennai

PostPosted: Tue Sep 28, 2010 3:42 pm
Reply with quote

Hi All,

I tried some changes to the existing DATABASE definition but still error occurs. I am stucked going further.

Following is the Secondary database defined

PRINT NOGEN
DBD NAME=EMPTOTAL,ACCESS=(HIDAM,VSAM)
DATASET DD1=DATADD,DEVICE=3390

SEGM NAME=EMPLOYEE,PARENT=0,BYTES=34
LCHILD NAME=(NAMESEG,EMPTOTDX),POINTER=INDEX
FIELD NAME=(EMPNO,SEQ,U),BYTES=4,START=1,TYPE=C
FIELD NAME=EMPNAME,BYTES=20,START=5,TYPE=C
FIELD NAME=DEPTNAME,BYTES=4,START=25,TYPE=C
XDFLD NAME=XDNAME,SRCH=DEPTNAME
FIELD NAME=EMPADDR,BYTES=6,START=29,TYPE=C

DBDGEN
FINISH
END

Following is the error

1 PRINT NOGEN
2 DBD NAME=EMPTOTAL,ACCESS=HIDAM
4 DATASET DD1=DATADD,DEVICE=3390
6 SEGM NAME=EMPLOYEE,PARENT=0,BYTES=34
13 LCHILD NAME=(NAMESEG,EMPTOTDX),POINTER=INDEX
15+ 8,LCHD140 - POINTER OR PTR OPERAND IS INVALID.
18 FIELD NAME=(DEPTNAME,SEQ,U),BYTES=4,START=25,TYPE=C
20 XDFLD NAME=XDNAME,SRCH=DEPTNAME
21+ 8,XDFLD002 - SECONDARY INDEX LCHILD STATEMENT WITH
22+*, PTR=INDX/SYMB MUST PRECEDE THIS XDFLD
23+*, STATEMENT.
25 FIELD NAME=EMPNO,BYTES=4,START=1,TYPE=C
27 FIELD NAME=EMPNAME,BYTES=20,START=5,TYPE=C
29 FIELD NAME=EMPADDR,BYTES=6,START=29,TYPE=C
31 DBDGEN
32+ 8,DGEN150 - LCHILD STATEMENT FOR ROOT SEGMENT EMPLOYEE
33+*, OMITTED OR INVALID.
34+ 8,DGEN110 - DBDGEN TERMINATED; ERRORS IN DBD.
35 FINISH
36 END

Following is the index database definition.

PRINT NOGEN
DBD NAME=EMPTOTDX,ACCESS=(INDEX,VSAM)
DATASET DD1=HIDAMX,DEVICE=3390
*
SEGM NAME=INPXPNTR,BYTES=4
LCHILD NAME=(EMPLOYEE,EMPTOTAL),INDEX=DEPTNAME
FIELD NAME=(INDEXFLD,SEQ),BYTES=4,START=1,TYPE=C
DBDGEN
FINISH
END

Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Sep 28, 2010 10:00 pm
Reply with quote

Hello,

Is there some reason you have not worked with the dba?
Back to top
View user's profile Send private message
shreejita

New User


Joined: 16 Aug 2009
Posts: 60
Location: chennai

PostPosted: Fri Oct 08, 2010 4:40 pm
Reply with quote

Actually we are into training ( test) server and not having much help from DBA.

thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Oct 08, 2010 7:40 pm
Reply with quote

Hello,

Then the instructor should be able to offer guidance. . .
Back to top
View user's profile Send private message
nareshkp

New User


Joined: 26 Sep 2007
Posts: 28
Location: Bangalore

PostPosted: Wed Oct 13, 2010 3:17 am
Reply with quote

Hi Shreejita,

If you are still facing the issue, remove the below line from your code and run it again.
XDFLD NAME=XDNAME,SRCH=DEPTNAME

I assume you are trying to create primary index rather than secondary. HIDAM will not allow secondary index without the primary being created.

Thanks.
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Cobol file using index COBOL Programming 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
Search our Forums:

Back to Top