Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find copybooks on as/400 2

Status
Not open for further replies.

tburk

Programmer
Oct 22, 2004
5
US
Can someone share the directory that contains all copybook (.cob, .cbl, .cpy) files on an AS/400?

Thank you.

 
Try the same lib as cobol source.

Look for a member naming convention that may identify a copybook v. pgm.

Dave
 
Talk with the support people who are responsible for the compile process.
 
dneufarth, papadba,

Thanks for the 'to the point' replies.

Using the DIR command, is there a syntax that will list directories only?

 
On the AS/400, aka iSeries, aka IBM i[/b the native file system called QSYS.LIB doesn't have directories, but it has libraries and objects. If the objects are files, they contain members. So, COBOL sources are stored in the source file members. For example the copybook MYCPY could be stored in the source file QCBLLESRC placed in the library MYLIB, so the full path is MYLIB/QCBLLESRC(MYCPY).
Use the STRPDM command to browse libarries, files and members.

By default the ILE COBOL compiler searches for copybooks in the libraries from the user's library list (LIBL) in the source files QCBLLESRC, QCBLSRC and QLBLSRC. (I'm using for my programs the source file QCBLSRC and for my copybooks the source file QCBLLESRC).

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top