Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Procopt Query

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
narasimha.g

New User


Joined: 10 Sep 2009
Posts: 68
Location: Liverpool

PostPosted: Fri Aug 26, 2011 6:13 pm    Post subject: Procopt Query
Reply with quote

Hi yaa....

I have the following PSB on my DBD SDP42DBD

PCB TYPE=DB,
DBDNAME=SDP42DBD
PROCOPT=G,
KEYLEN=7
SENSEG NAME=SSP42MPR,
PARENT=0,
PROCOPT=A
SENSEG NAME=SSP42SPR,
PARENT=SSP42MPR,
PROCOPT=A

Now PROCOPT=G on SDP42DBD means that the DBD has read only access.... But its specified in segments as PROCOPT=A which means they have all access.....

Can I still go ahead and Insert a record into this database????
Back to top
View user's profile Send private message

narasimha.g

New User


Joined: 10 Sep 2009
Posts: 68
Location: Liverpool

PostPosted: Fri Aug 26, 2011 6:25 pm    Post subject:
Reply with quote

and one more question is can I just create a PSB on my own and use it in the program???

or is there anything else we need to do before using a PSB
Back to top
View user's profile Send private message
sai1621

New User


Joined: 22 Jan 2010
Posts: 4
Location: Bhubaneswar

PostPosted: Fri Aug 26, 2011 11:18 pm    Post subject: @narasimha
Reply with quote

1) PROCOPT will have precedence at segment level. The one defined at database level gets overridden with the one at segment level. Hence the insert and all other update operations would work fine with the segment.

2)PSB creation and usage :- You can create a PSB but yet to use it, you need to do a PSB decode using IMS utilities. Also before using these self created PSBs, you need to check with your DBA whether you had provision to use them directly by your programs. Again this would be environment specific.
Back to top
View user's profile Send private message
narasimha.g

New User


Joined: 10 Sep 2009
Posts: 68
Location: Liverpool

PostPosted: Tue Aug 30, 2011 3:07 pm    Post subject:
Reply with quote

Thanks Very much Sai for the reply.... That was very helpful....
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 HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us