Solved

module-file and module-program

Posted on 2010-09-12
7
550 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to end AS400 scheduled job after a certain time 7 909
Find Date Difference in AS400 Query 11 418
DB2 return first match 3 103
iSeries DB2 query across local and remote site 4 67
Large Outlook files lead to various unwanted errors and corruption issues. Furthermore, large outlook files can also make Outlook take longer to start-up, search, navigate, and shut-down. So, In this article, i will discuss a method to make your Out…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

867 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

26 Experts available now in Live!

Get 1:1 Help Now