Joined: 05 Jun 2006 Posts: 51 Location: Bangalore,India
I am facing the issue with one of my insert call. I am gettinf V1 status code.Please le t me know what amy be the reason.
the below is the reason which i got from IBM sources.
The program tried to insert or replace a variable-length segment that is too long. The length of the segment must be equal to or less than the maximum length specified in the DBD. IMS also returns status code V1 when the specified minimum length cannot hold the complete sequence field of the segment type. In this situation, status code V1 results from one of three instances: processing without an edit/compression routine; processing with an edit/compression routine, but not specifying the key compression option; or coding a length field (LL) that is less than the specified minimum length. The length must be long enough to include the entire reference field; if the segment is a logical child, it must include the entire concatenated key of the logical parent and all sequence fields for the paired segment. The program tried to delete a variable-length segment. The copy of this segment in the user's I/O area contains an invalid length field.
IMS also returns this status code when an invalid record length is specified in a GSAM call.
Joined: 02 Jul 2007 Posts: 109 Location: Chennai - India
Can you please increase the occurs if it uses for the GSAM file to which ur inserting and check it. We usually get V1 when the data of the current insertion GSAM file is merged with some other data. I had similar kind of issue sometime back. Which i have solved by increasing the occurs class and solved the problem.