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: 8569
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: 7311
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: 2588
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: 8569
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
This topic is locked: you cannot edit posts or make replies. Writng matched records into output fi... DFSORT/ICETOOL 11
No new posts Compare the file record count percent... DFSORT/ICETOOL 4
No new posts compare two file to find position/dat... SYNCSORT 2
No new posts Secondary index error while loading d... IMS DB/DC 2
No new posts Converting a file from PD to display ... SYNCSORT 4
Search our Forums:

Back to Top