IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Want to know the length of a copybook


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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
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
Reply with quote

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

Senior Member


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

PostPosted: Wed May 09, 2007 5:39 pm
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

Superior Member


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

PostPosted: Wed May 09, 2007 6:46 pm
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

Moderator Emeritus


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

PostPosted: Wed May 09, 2007 7:54 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top