Is there a way to create one cobol copybook that contains all group level records needed and then access just part of them where needed. For example, let's say I have a trans-in file and trans-out file. I want to put the record layout for both in a copybook and then in my FD section only access the necessary group levels needed for the in file and the out file descriptor. I am relearning cobol from 1983 so i hope this makes sense the way I explained it.
RE: Cobol Copybook
Are the two 01 records the same length (in bytes)? If so then putting the copybook in the FD for either the input or output files will cause no problem. Separate 01 levels in an FD are treated as implicit redefines (therefore the question about lengths).