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
 
Query regarding usage of PSB

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

Active User


Joined: 14 Sep 2009
Posts: 147
Location: Coimbatore

PostPosted: Fri Mar 26, 2010 3:15 pm    Post subject: Query regarding usage of PSB
Reply with quote

I am designing a new IMSdc screen. i have created the transaction for it.
When i am creating a psb i got a thought like,

The segment which the new imsdc screen is going to update is only A07SPART which is under database A07PMATL.

I already have a psb for another online screen where other segments like A07SECOT, A07STDSQ is being updated including A07SPART in the same database A07PMATL.

Now can I use my existing psb for both the screens bec both the screens update the segment A07SPART.
Back to top
View user's profile Send private message

manikawnth

New User


Joined: 07 Feb 2007
Posts: 61
Location: Mumbai

PostPosted: Fri Mar 26, 2010 3:42 pm    Post subject:
Reply with quote

Hi Abdul,

I really dint understand ur A07* language.
But You can use the same PSB for both of ur screens (PSB is assigned to each transactions and not for screens). Instead of using two different transactions u can use the same transaction for both the screens.

The way to differentiate b/w the screens if u r using the same transaction is that in the IOPCB check for the modname (screen name).

lemme know if it is as clear as mud.

thanks,
manikanth
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Fri Mar 26, 2010 5:45 pm    Post subject:
Reply with quote

NO - absolutely NO!!!!! First of all, you don't have a choice for DC programs. Think about - and research - how the transaction - screen - PSB - program - all fits together - there is NO JCL.
Back to top
View user's profile Send private message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 147
Location: Coimbatore

PostPosted: Fri Mar 26, 2010 6:05 pm    Post subject:
Reply with quote

I think we cannot have the same transaction for two screens. how can we differentiate while during the scheduling part.??.
So I have created a new psb itself. let me check if it works. :-)

Anyhow thanks a lot your reply.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Fri Mar 26, 2010 6:15 pm    Post subject:
Reply with quote

IF - only when you have the same application program receiving the message can you use the same tran and PSB.

For example, at one time, I wrote a system with just 2 transactions. I used one transaction for update and one for inquiry. From each of these transactions, I had an application program and what sub-routine programm to invoke. You then determine from what screen you arrived into your process. I had over 50 screens - many within the same process.

When your application program is invoked - you will then determine which sub-program to execute. It is tricky and if you are a novice and do not need to do it - then do not.
Back to top
View user's profile Send private message
manikawnth

New User


Joined: 07 Feb 2007
Posts: 61
Location: Mumbai

PostPosted: Fri Mar 26, 2010 6:45 pm    Post subject:
Reply with quote

Hi Sandy,

I was saying the same.
Let the application program be same and based on the Mod names let him call two different sub-program drivers for different screens.
If its not a very active transaction (atleast triggering 100s in 1 second), it is of no use defining a new transaction.

Hi Abdul,
Dont wast organizations money by creating new transactions and psbs even if it is not actually necessary.
Back to top
View user's profile Send private message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 147
Location: Coimbatore

PostPosted: Mon Mar 29, 2010 3:55 pm    Post subject:
Reply with quote

Hi mani and Sandy,

Thanks for your guidance. By the way as my DBA has asked me to create a new psb itself I din't go into an argument with him. But one thing I am not able to understand is why should the PSB name and the online program name should be same.? while generating the ACBGEN whether will they relate the psb with that of the online program or something like that. ??.

If at any point my question or my understanding is wrong please correct me.

Could you please clarify on this.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Mon Mar 29, 2010 5:13 pm    Post subject:
Reply with quote

Most installations - at least where I have worked - INSIST that each application have its very own PSB - no sharing! I fully agree for many reasons for DLI, BMP and DC. The standard is that the PSB name closely match the application. Somewhere I had posted a link showing how the TRAN, PSB, MFS and program all fit together.

Don't argue with your DBA!!! They want to help you and you will learn. Let's say that you wrote a simple DLI program. It's fully tested and running well. All of a sudden, the PSB gets stopped. How do you think that happened? Yep - someone else is using your PSB. Do not share your PSB!!!
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 )SEL and )ENDSEL usage cvnlynn TSO/ISPF 4 Thu Jun 15, 2017 1:15 am
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am

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