View previous topic :: View next topic
|
Author |
Message |
Anand_Kannan
New User
Joined: 09 Jun 2005 Posts: 3
|
|
|
|
Hi all,
whats the Difference between a Dialog and Include module i.e., i need to code a small subroutine say which is to be called from 3 process.
In this case which is the better option
1. To create a Mapless dialog with a pre-map which executes the necessary code.
(or)
2. Write a Include module and call the same from all the process instead of creating a online dialog.
Please let me know abt this soon.
Anand |
|
Back to top |
|
|
harishskumar
New User
Joined: 18 Feb 2005 Posts: 13 Location: Bangalore
|
|
|
|
Well, It depends what kind of functionality you are going to code in the called subroutine. If it's pure cobol moves and logic , you can go ahead with a call statement.
But if you are doing IDMS related work in the called subroutine then you will code a mapless dialog, which will be native to ADSO and I presume It would be faster compared to a call.
If you need more infromation on performance related stuff I would suggest you get in touch with your DBA. It would be a good learning experience. |
|
Back to top |
|
|
rssomm
New User
Joined: 05 Jun 2005 Posts: 41 Location: Hyderabad
|
|
|
|
Hi Anand,
Your question is not clear.
A dialog consists Premap process module, Process modules which are associated with PF keys and INCLUDE modules. So How can u compare Dialog with Include module?. Include module is something like a subroutine for any ADS/O dialog. Include module can be called from any PF key process module or Premap Process module.
Please be clear with ur question? or Let me know ur requirement witout using conflicting words. I will try to clear it.
Madhu |
|
Back to top |
|
|
Pjoe
New User
Joined: 22 Jul 2005 Posts: 17
|
|
|
|
Hi,
I feel include module will be a better option , becuase the source code of the module will be inserted logically in the current process source code at compile time.If you use a mapless dialog, then you will have to transfer or link to that dialog , which will definitely increase the run time overheads.
Thx,Joe |
|
Back to top |
|
|
|