MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VSAM RC=14 Trying to WRITE records in a VSAM File

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
davinski.bby
Beginner


Joined: 30 Jul 2007
Posts: 31
Topics: 10

PostPosted: Fri Apr 25, 2008 10:38 am    Post subject: VSAM RC=14 Trying to WRITE records in a VSAM File Reply with quote

Hi,

I am trying to write records in a VSAM dataset but I am getting a Return Code of 14.

Here is the defintion of my VSAM file:
Code:

DELETE T1.DATASET PURGE
IF MAXCC = 08 THEN SET MAXCC = 00
DEFINE CLUSTER
             (NAME       (T1.DATASET)
              RECORDSIZE (350 350)
              CYLINDERS  (125 15)
              KEYS       (23 0)
             ) -
       DATA
            (NAME(T1.DATASET.DATA))
       INDEX
            (NAME(T1.DATASET.INDEX))


Here is the sample Key that i am writing in the file:

107340750H11597 0140441

Thanks.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12360
Topics: 75
Location: San Jose

PostPosted: Fri Apr 25, 2008 10:58 am    Post subject: Reply with quote

davinski.bby,

I only see a DELETE and DEFINE cluster , where is the REPRO step? Also it would help if you actually post the entire sysout messages.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri Apr 25, 2008 11:35 am    Post subject: Reply with quote

Should there not be a '-' after the DATA part and before the INDEX part?
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
davinski.bby
Beginner


Joined: 30 Jul 2007
Posts: 31
Topics: 10

PostPosted: Fri Apr 25, 2008 6:16 pm    Post subject: Reply with quote

The file is actually already defined and is working fine on some records.

I am running a cobol program that will insert records in this VSAM file. The return code is 14. Does inserting duplicate rows result to RC=14?

Thanks.
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Sat Apr 26, 2008 9:15 am    Post subject: Reply with quote

kolusu asked you to post the entire sysout messages. Also, isn't there a VSAM feedback code that can be coded in COBOL that would help determine the problem?
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Sun Apr 27, 2008 3:16 am    Post subject: Reply with quote

According to the manuals reached throught the Quick Manuals link above and then selecting VSAM Error Codes:
Code:

A sequential READ statement was attempted for a relative file and the number of significant digits in the relative record number was larger than the size of the relative key data item described for the file

_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group