Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Thu Oct 21, 2004 5:35 am Post subject:
pgorthi,
A file status of 39 is usually caused due to a conflict has been detected between the fixed file attributes and the attributes specified for the file in the program.
This is usually caused by a conflict with record-length, key-length, key-position or file organization.
Other possible causes are:
1. Alternate indexes are incorrectly defined.
2. The Recording Mode is Variable or Fixed or not defined the same as when the file was created..
Now look at your KSDS definition. Especially the keys parameter
You specified keys( 1,4) which will create a key for a LENGTH of 1 and the Key position is from 4. But your cobol program shows that the key length is of 4 bytes and starts at pos 1
So you need to change the definition of keys (4, 0)
Since your input vsam cluster is a not initilized , it is a bad idea to open the file in I-o mode.
check this link which explains in detail about opening empty files.
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