by Jerry Peters <jerry@[EMAIL PROTECTED]
>
Apr 27, 2005 at 08:43 PM
j?rg brehe <Joerg.Brehe@[EMAIL PROTECTED]
> wrote:
> I have written an assembler modul, which gives me all dsnames of a
> concatenated data set. Now I will open all data sets. The data sets
> are on different volumes.
> Now I get an S213/4 error. I think it's not enough to write the dsname
> into the JFCB and try to open the data set with (open Type=J). I
> think it's not enough to make a DCB for every data set, I must manage
> to give every data set his own JFCB.
>
> How can I do this? Is there any example?
>
>
> J?rg
You need to use dynamic allocation to allocate the datasets. Just
changing the dsn in the jfcb and using openj will only work if the
datasets are all on the same volume. Openj is trying to open the
additional datasets on the same volume as the _first_ dataset.
Another technique is to set the unlike conatenation bit in dcboflgs?
and have an open exit routine. The open exit routine will get called
at the start of each concatenated dataset after the first, so just
keep track of the open exit being called and correlate that to the
appropriate dataset. There used to be a section on this in one of the
data management guides.
Jerry