View previous topic :: View next topic
|
Author |
Message |
jayanta_nit
New User
Joined: 13 Apr 2006 Posts: 22 Location: hyderabad
|
|
|
|
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 |
|
|
ashwinreddy
Active User
Joined: 16 Sep 2004 Posts: 106 Location: Hyderabad
|
|
|
|
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 |
|
|
jayanta_nit
New User
Joined: 13 Apr 2006 Posts: 22 Location: hyderabad
|
|
|
|
thnx..i will check this.. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|