Thanks Anuj, I will use BBCODE tag in my further postings.
Actually what my requirement was
I want to copy a VSAM file to another VSAM file, both are is VB format.
And want to change few positions as below.
key part 10 bytes same as input and wanted data as mentioned below.
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
Not too sure if I recall correctly, but there isn't an RDW for VSAM files although you may have to add 4 to all of the starting positions but not have to specify the 1,4 for the RDW.
Of course I could be wrong, but it gives you another avenue to research.
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
Just to show yourself what you mean, why don't you define an ESDS - same info except the key - and use that as your output from the sort. Then you can see what you are doing.
Also, look at your manual, examples here with VSAM KSDS output, etc.
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
Rambhupalchowdary wrote:
[...]I want to copy a VSAM file to another VSAM file, both are is VB format.[...]
Whilst at it, have a think about this one as well.
Tell me which page in the VSAM manuals (any one you like) describes Variable Blocked (VB) datasets. Don't tell me all the other obvious stuff, just what it says about VB please.
This may be the root of your failure to create the VSAM file that you want.
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
Bill Woodger wrote:
Yes, it is possible.
The way you are attempting it, sort of.
You mustn't screw up the key. If you chop it about and make a mess of it, it is unlikely to complete successfully and it definitely won't work.
If you ask and then ignore all suggestions, I'm not sure how you expect to get anywhere.
Why don't you give us the full picture of what you are attempting to do?
You'd better disregard this reply of mine. I didn't read the question, but assumed it was related to what you were already doing.
Different question, different topic please. I'd say Yes for Sort, Don't Think So for REPRO. A good way that I'd favour it to actually consider going to the effort of writing a program, if that best fits the requirement (which automatically assumes professionalism).
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
Hi Ram,
You wouldn't see VSAM documentation for VB, because it means nothing in VSAM, because VSAM uses its own methods for storing the data.
Another misconception that you have has been pointed out by Mr Akatsukami. The 1C is not telling you about the input file, but about the output file as has been arranged by your sort statements.
I'm a bit lost as to where you are with all this. I have already suggested you run your output to an ESDS so that you can verify what the key looks like on the output. If that is all OK, then it implies that you have a duplicate key you are trying to insert on your KSDS - a record already existing.
If after this you still have problems, post your current sort cards, a few records from the input, sequential output and the KSDS (same sort of key ranges) and we can have a new look.
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
VSAM LOGICAL ERROR 1C :
Data set cannot be extended because VSAM cannot allocate additional direct-access storage space. Either there is not enough space left in the data space for the secondary-allocation request or an attempt was made to increase the size of a data set by splitting the control area (high used RBA change) during processing with SHROPT=4 and DISP=SHR.