Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Want to know the length of a copybook

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
jayanta_nit

New User


Joined: 13 Apr 2006
Posts: 22
Location: hyderabad

PostPosted: Wed May 09, 2007 3:31 pm    Post subject: Want to know the length of a copybook
Reply with quote

Hi,
I want to know the length of a copybook,but while I am trying to see that in FILEAID then I am geeting error mentioning that the error in line no something but there is no such error.And I also dnt able to calculate the copybook length ib footprint also because some fields are redefines by other field,so nt sure how that field uses the address spaces.
Please give me any suggestion so that I can see the copybook length.

Thanks
Jayanta
Hyderabad.
Back to top
View user's profile Send private message

ashwinreddy

Active User


Joined: 16 Sep 2004
Posts: 106
Location: Hyderabad

PostPosted: Wed May 09, 2007 3:59 pm    Post subject:
Reply with quote

Hi,

Check the copybook layout without using the file. check the option in FileAid as copybook layout.

And once you confirmed with the layout, create the input data. Redifines is not a problem as the same length would have been redifined as Header, detail and trailer.

As the above error is due to wrong input data entered or mismatch in the record layout.

Hope this hepls

Cheers
Ashwin
Back to top
View user's profile Send private message
jayanta_nit

New User


Joined: 13 Apr 2006
Posts: 22
Location: hyderabad

PostPosted: Wed May 09, 2007 4:15 pm    Post subject: Re: Lenght of the copybook??????
Reply with quote

thnx..i will check this..
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 962
Location: Richmond, Virginia

PostPosted: Wed May 09, 2007 5:39 pm    Post subject:
Reply with quote

If this is COBOL, the compiler's datamap has lengths of all fields. This may be in 0-based hex, which means convert to decimal, then add 1, to get 1-based decimal.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed May 09, 2007 6:46 pm    Post subject:
Reply with quote

Hi jayanta_nit,

Use the following file aid option: f;fa;8
there proivde the PDS name & the copybook name, you'l get the lentgth of the copybook

If you've already used the above option, please ignore my reply.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed May 09, 2007 7:54 pm    Post subject:
Reply with quote

Hello,

If you post the actual error that you received it will help us help you. If you press PF1 when the error is presented, you should see help info for the error.

While what follows is not exactly what you ask, but you might look at the dcb info for the file the copybook describes. The dcb info will tell you the length. . .

You could also run a compile and get the length from the output of the compile. You don't need a whole program, just the expansion of the copybook.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 6 Sun Nov 06, 2016 8:11 pm
No new posts Joinkeys operation when key1 and key2... Susanta DFSORT/ICETOOL 5 Wed Nov 02, 2016 5:35 pm
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us