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
 

 

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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Omegamon for DB2 query ashek15 DB2 0 Wed Feb 15, 2017 11:25 am
No new posts Query on DB2 WLM stored procedures ashek15 DB2 8 Sun Feb 12, 2017 11:13 pm
No new posts GETMAIN/FREEMAIN query Suja.Sai CICS 9 Tue Jan 31, 2017 12:01 pm


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