Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

File manager length error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
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    Post subject: File manager length error
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: 7908
Location: Bellevue, IA

PostPosted: Tue Sep 01, 2015 8:47 am    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7225

PostPosted: Tue Sep 01, 2015 12:05 pm    Post subject: Reply to: File manager length error
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

Senior Member


Joined: 21 Sep 2010
Posts: 1609
Location: NY,USA

PostPosted: Tue Sep 01, 2015 8:13 pm    Post subject:
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.

http://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    Post subject:
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: 7908
Location: Bellevue, IA

PostPosted: Wed Sep 02, 2015 7:12 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us