View previous topic :: View next topic
|
Author |
Message |
spoorni
New User
Joined: 29 Nov 2007 Posts: 20 Location: india
|
|
|
|
if i open a file using a copybook which has an 'occurs depending on', will it always give me a length error in file manager since each record is of different length? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
File Manager for z/OS, Version 12.1, User's Guide and Reference
Data description support
Support for COBOL data description entries
In the COBOL data description entries specified in a copybook, File Manager supports:
ASSIGN clause
OCCURS clause (including OCCURS DEPENDING ON)
PICTURE clause
REDEFINES clause
RENAMES clause
USAGE clause
VALUE clause
File Manager ignores:
BLANK WHEN ZERO clause
DATE FORMAT clause
EXTERNAL clause
GLOBAL clause
JUSTIFIED clause
Note:
In general, File Manager treats Numeric Edited fields as alphanumeric. A special code, ZA, is used for unsupported zoned decimals.
File Manager supports all data item level numbers except 88 (condition-names). |
So the manual says that you will not get a length error if your record contains variable length data (COBOL OCCURS DEPENDING ON). This section of the manual does assume you have a copy book that you are using to provide the record layout to File Manager. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
I wonder what they mean by describing the ASSIGN clause, associated with SELECT, in the ENVIRONMENT DIVISION, as being "data description entries specified in a copybook"? |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3051 Location: NYC,USA
|
|
Back to top |
|
|
spoorni
New User
Joined: 29 Nov 2007 Posts: 20 Location: india
|
|
|
|
But i still face a length error. The records with the max. number of occurrences do not show a length error. But other records with occurrences lesser than the max. number of occurrences show a length error. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
How is the data set defined? Have you verified the length field in the record has the correct value? Have you contacted the vendor about the problem?
You are not providing very much information to help us diagnose and resolve your issue -- your best bet would be to go to the vendor for help. |
|
Back to top |
|
|
|