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

File manager length error


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
spoorni

New User


Joined: 29 Nov 2007
Posts: 20
Location: india

PostPosted: Tue Sep 01, 2015 7:35 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 01, 2015 8:47 am
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Sep 01, 2015 12:05 pm
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Tue Sep 01, 2015 8:13 pm
Reply with quote

As Robert Already mentioned, you can take a look at this link to understand it further. Also I see with File manager there are tickets opened in past with various issues with IBM and they have provided a local fix as well so have a look at that too.

www-01.ibm.com/support/knowledgecenter/#!/SSXJAV_12.1.0/com.ibm.filemanager.doc_12.1/base/fmnu1m00123.htm?cp=SSXJAV_12.1.0%2F1-3-3-0-4
Back to top
View user's profile Send private message
spoorni

New User


Joined: 29 Nov 2007
Posts: 20
Location: india

PostPosted: Wed Sep 02, 2015 6:20 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 02, 2015 7:12 pm
Reply with quote

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
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 -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
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 Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top