Page 1 of 1

Know the length of copybook?

Posted: Mon Dec 30, 2013 12:29 am
by Angel
Hi,

Is there any way in file-aid to know the length of the copybook? Any help is appreciated.

Re: Know the length of copybook?

Posted: Mon Dec 30, 2013 2:45 am
by Robert Sample
First, your question is imprecise since you did not tell us if you want to know how many lines are in the copybook, or the length of the data structure described by the copybook, or something else.

The number of lines can be found by doing a TSO/ISPF edit or browse or view of the copybook member and scrolling to the end.

The length of the data structure can be found by compiling a program with the copybook and looking at the data map generated by the compile. File Aid and similar tools can also give you the length of the data structure.

Re: Know the length of copybook?

Posted: Tue Dec 31, 2013 4:43 pm
by Angel
Robert Sample wrote:the length of the data structure described by the copybook
This is what I'm asking. Using file-aid can we get that?

Re: Know the length of copybook?

Posted: Tue Dec 31, 2013 5:38 pm
by Robert Sample
Yes, File Aid can tell you the length of the data structure. Using interactive (online) File Aid, use the View option to select the copy book and file to view with that copy book; the length of each group (including the copy book) is given on the screen.

Re: Know the length of copybook?

Posted: Mon Jan 20, 2014 1:37 pm
by Angel
Thanks Robert. At my mainframe using File-Aid,F, FA, 8 - I could locate the option to see the length of copybook.