I need an urgent bit of help!
We have a VB sequential file on TAPE. The definition is as given below:
I need to convert this to a VSAM file (for keyed reading) but keep the lengths/blocks intact. How do I do this? (will a normal IDCAMS do?)
Once we have the VSAM, we need to read it and write the selected records in an output of the original sequential format. (RECFM=VB,LRECL=940). Is this possible? We are using normal COBOL370.
thanx for the reply but i need something more specific!
the seq file I have has a max record length of 940. But the length varies depending on the data in each row.
How do I get the average Rec L required to allocate the VSAM?
If i remember correctly, you need to give
b) Avg Recl
to specify the KSDS VSAM rite?
Is there any way I could allocate the VSAM without having to specify the avg length? If not, then what do i put in the avg length?
Or else, is there any way by which I can directly copy the seq to the variable length VSAM while maintaining each indiv rec l intact??
I tried to find any calculations to be followed for finding the average lrecl. But found none.
As far as my knowledge goes, in the DEFINE cluster, use the RECORDSIZE parameter to specify if it is VB or FB.
RECORDSIZE(average lrecl, max lrecl)
If both average and max are equal ==> FB
average may be calculated as the average between the minimum recl possible in your file and the maximum lrecl. I believe the value in the average clause may not make a difference in the VSAM allocation.