View previous topic :: View next topic |
Author |
Message |
davinski.bby Beginner
Joined: 30 Jul 2007 Posts: 31 Topics: 10
|
Posted: Fri Apr 25, 2008 10:38 am Post subject: VSAM RC=14 Trying to WRITE records in a VSAM File |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12360 Topics: 75 Location: San Jose
|
Posted: Fri Apr 25, 2008 10:58 am Post subject: |
|
|
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 |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Fri Apr 25, 2008 11:35 am Post subject: |
|
|
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 |
|
|
davinski.bby Beginner
Joined: 30 Jul 2007 Posts: 31 Topics: 10
|
Posted: Fri Apr 25, 2008 6:16 pm Post subject: |
|
|
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 |
|
|
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Sat Apr 26, 2008 9:15 am Post subject: |
|
|
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 |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Sun Apr 27, 2008 3:16 am Post subject: |
|
|
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 |
|
|
|
|