Solved

module-file and module-program

Posted on 2010-09-12
7
547 Views
Last Modified: 2012-05-10
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.
0
Comment
Question by:vinaym
  • 3
  • 3
7 Comments
 
LVL 14

Expert Comment

by:daveslater
ID: 33659982
you can use the dsppgmref, dspfd , dspffd commands to generate the info for programs & files
service programs are a bit harder.

Dave
0
 

Author Comment

by:vinaym
ID: 33664670
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.
0
 
LVL 14

Expert Comment

by:daveslater
ID: 33669824
Do you know how to create service programs, how to add bindind directory entries?

Dave
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 27

Expert Comment

by:tliotta
ID: 33688124
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
0
 

Author Comment

by:vinaym
ID: 33718315
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.

0
 
LVL 14

Accepted Solution

by:
daveslater earned 500 total points
ID: 34246051
Hi
am I missing somthing. If you simply want the DSPPGMREF info for all program objects then use

DSPPGMREF PGM(MYLIB/*ALL) OBJTYPE(*ALL)

this does
*PGM    
*SQLPKG  
*SRVPGM  
*MODULE  
object types

Dave
0
 

Author Closing Comment

by:vinaym
ID: 36235993
answer did not meet requirement
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now