On Thu, 28 Apr 2005 20:30:35 GMT Jerry Peters <jerry@[EMAIL PROTECTED]
>
wrote:
:>Greg Price <grogon@[EMAIL PROTECTED]
> wrote:
:>> j?rg brehe wrote:
:>>> This time I get an S413/4
:>> Hmmm, I think either I'm missing something fundamental in trying to
:>> understand your scenario, or you're missing something fundamental.
:>> A DD (Data Definition) name is what we (in OS-***-MVS circles) call
:>> a file name. Computer scientists might call it a logical file name.
:>> A data set name is a physical file name. When a file is OPENed the
:>> logical file (the thing the program knows about) is bound to the
:>> physical file (the thing the file system knows about).
:>> So, we OPEN a DDname (or file) which is allocated to a data set.
:>> As a result the data set is opened. BUT, a file can be a
concatenation
:>> of data sets, and so we come to your particular situation. In JCL,
the
:>> DDname of each (non-first) file in a concatenation is blank.
:>> So what?
:>> So, you cannot OPEN each data set in a concatenation with individual
:>> OPEN macros because you do not have a DDname to supply OPEN with for
:>> each data set in the concatenation.
:>> All you have is the DDname of the first data set which actually refers
:>> to ALL data sets in the concatenation.
:>> If you are not dynamically allocating a new DD to each data set and
:>> saving the DDname for later use in OPEN macros then you cannot OPEN
:>> each data set in separate OPENs.
:>> I did not analyze you code in detail, but I do not see any allocation
:>> calls. AFAICT each OPEN in the loop opens the file called RECINDD.
:>> You can have more than one DCB open for a given file, but it seems
:>> you do not want multiple files open for RECINDD, you want one DCB
:>> open for each data set in the RECINDD concatenation.
:>> But OPEN does not know about data sets, it only knows about DDs.
:>He's using RDJFCB, modifying the dsn and doing OPEN TYPE=J, which
:>_does_ know about datasets. The problem is that the DD statement that
:>he's "modifying" using this technique has an associated UCB, that of
:>the first dataset. Open is complaining that the volume for the second
:>dataset is permanently mounted and/or that the first dataset's volume
:>is permanently mounted, hence open can't mount volume 2 on the unit
:>for volume 1. If all of the datasets were on the same volume it would
:>work. Since they're not, he needs to use dynamic allocation the way
:>he's going about it.
:>It would also be nice to know what the heck he's trying to do, and if
:>he really cares about the dsnames. If he's just trying to read the
:>concatenation with excp, there are other ways to accomplish that,
:>without using openj or dynamic allocation.
My question as well.
If he is using EXCP, he can just go directly to that extent. Why play with
re-opening the dataset?
--
Binyamin Dissen <bdissen@[EMAIL PROTECTED]
>
http://www.dissensoftware.com
Director, Dissen Software, Bar & Grill - Israel
Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.
I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.


|