vinaym
asked on
module-file and module-program
Hi,
I have to develop module-file and module-program reference.
how to do that.
Is there any way i can take these information and dump in a file.
or any api or file oniseries server which provides this information.
I have to develop module-file and module-program reference.
how to do that.
Is there any way i can take these information and dump in a file.
or any api or file oniseries server which provides this information.
ASKER
DSPPGMREF is applicable to dump program references that I already know.
but I need to dump module reference information and for this I need your help.
but I need to dump module reference information and for this I need your help.
Do you know how to create service programs, how to add bindind directory entries?
Dave
Dave
I have to develop module-file and module-program reference.
I'm not aware of any way to create a "module-file" cross-reference. The only such cross-reference that might be generated is at the program level, not the module level; and you can't query a module to ask what files are referenced by it. Further, it might not be worth much since a file object can be accessed dynamically; the module might not have any reference to a file but still access it. Pointing to different files by way of OVRDBF is a simple example.
A "module-program" reference is fairly easy to generate. The List ILE Program Information (QBNLPGMI) API can provide a list of modules for each program. Store the entries into a table and retrieve the entries by module name to select which programs a module is bound into. But that shouldn't be very useful either -- if a module will be in more than one program, it ought to be in a service program. But there are reasons for binding some modules 'by copy' rather than 'by reference'.
Tom
I'm not aware of any way to create a "module-file" cross-reference. The only such cross-reference that might be generated is at the program level, not the module level; and you can't query a module to ask what files are referenced by it. Further, it might not be worth much since a file object can be accessed dynamically; the module might not have any reference to a file but still access it. Pointing to different files by way of OVRDBF is a simple example.
A "module-program" reference is fairly easy to generate. The List ILE Program Information (QBNLPGMI) API can provide a list of modules for each program. Store the entries into a table and retrieve the entries by module name to select which programs a module is bound into. But that shouldn't be very useful either -- if a module will be in more than one program, it ought to be in a service program. But there are reasons for binding some modules 'by copy' rather than 'by reference'.
Tom
ASKER
Hi,
Actually the need is, there is file which is declared in some of the modules and these modules are compiled in many programs. I have no idea how many are they.
I have to add few fields to the file and recompile the module and program which are using these modules. But first I have to see the impact . Due to this, better to develop a tool like that.
Answers to Dave's question, yes I am aware of service programs and how to add them in binding directory.
Actually the need is, there is file which is declared in some of the modules and these modules are compiled in many programs. I have no idea how many are they.
I have to add few fields to the file and recompile the module and program which are using these modules. But first I have to see the impact . Due to this, better to develop a tool like that.
Answers to Dave's question, yes I am aware of service programs and how to add them in binding directory.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
answer did not meet requirement
service programs are a bit harder.
Dave