×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to find copybooks on as/400
2

How to find copybooks on as/400

How to find copybooks on as/400

(OP)
Can someone share the directory that contains all copybook (.cob, .cbl, .cpy) files on an AS/400?

Thank you.

 

RE: How to find copybooks on as/400

Try the same lib as cobol source.

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

Dave

RE: How to find copybooks on as/400

Talk with the support people who are responsible for the compile process.

RE: How to find copybooks on as/400

(OP)
dneufarth, papadba,

Thanks for the 'to the point' replies.  

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

 

RE: How to find copybooks on as/400

On the AS/400, aka iSeries, aka [b]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).

 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close