View previous topic :: View next topic
|
Author |
Message |
abdulrafi
Active User
Joined: 14 Sep 2009 Posts: 184 Location: Coimbatore
|
|
|
|
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 |
|
|
manikawnth
New User
Joined: 07 Feb 2007 Posts: 61 Location: Mumbai
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
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 |
|
|
abdulrafi
Active User
Joined: 14 Sep 2009 Posts: 184 Location: Coimbatore
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
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 |
|
|
manikawnth
New User
Joined: 07 Feb 2007 Posts: 61 Location: Mumbai
|
|
|
|
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 |
|
|
abdulrafi
Active User
Joined: 14 Sep 2009 Posts: 184 Location: Coimbatore
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
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 |
|
|
|