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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Online resource for subfiles in cobol?

Status
Not open for further replies.

billybobcc

Programmer
Oct 24, 2006
3
US
I'm looking for a good online resource on how to code subfiles for COBOL. Thanks.
 
Might Try the book Programming in COBOL 400 by Cooper, Stern & Stern. Has some example programs in it.

I was thinking of using a Logical file made up of two files where when you read the file it joins the two files together and just shows you the fields you need to use. If you set up the logical file on the AS400 it should be able to join the files together and you use it as if it was all one file. The AS400 considers files like separate databases so it is no big deal to join them together.

A logical file is like a file description or DD that you set up kind of like a file description. If the file descriptions are set up ahead of time it works better. We use to write the file descriptions up and then use the file description to enter in data through a built-in process on the AS400. You might have to actually set up the file description before you write the file. You can also use the file description to create the file. I am thinking it writes some king of Data Dictionary. Then we also used the copy commands to copy the file descriptions into the programs like a copybook on a mainframe.

I kind of like this particular book, but it is about 10 years old.

You might not be interested in this.

If you do not like my post feel free to point out your opinion or my errors.
 
I just wanted something to use as framework for learning how to do this for an interactive program. Thanks for the thoughts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top