Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Problem during DBDGEN for SECNDARY INDEX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
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    Post subject: Problem during DBDGEN for SECNDARY INDEX
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Reply to: Problem during DBDGEN for SECNDARY INDEX
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    Post subject: Reply to: Problem during DBDGEN for SECNDARY INDEX
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

Site Director


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

PostPosted: Tue Sep 28, 2010 10:00 pm    Post subject:
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    Post subject: Reply to: Problem during DBDGEN for SECNDARY INDEX
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

Site Director


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

PostPosted: Fri Oct 08, 2010 7:40 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts Problem with GETMAIN command amitc23 CICS 6 Thu Sep 01, 2016 1:01 pm
No new posts TXT2PDF problem - printing @ in PDF vipul65 All Other Mainframe Topics 9 Thu Aug 25, 2016 12:48 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us