Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly 370 > Re: Deconcatina...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 241 of 328
Post > Topic >>

Re: Deconcatination of data sets and open every DD

by Jerry Peters <jerry@[EMAIL PROTECTED] > Apr 28, 2005 at 08:30 PM

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.

---snip----

	Jerry
 




 4 Posts in Topic:
Deconcatination of data sets and open every DD
Joerg.Brehe@[EMAIL PROTEC  2005-04-28 01:37:03 
Re: Deconcatination of data sets and open every DD
Greg Price <grogon@[EM  2005-04-29 00:20:15 
Re: Deconcatination of data sets and open every DD
Jerry Peters <jerry@[E  2005-04-28 20:30:35 
Re: Deconcatination of data sets and open every DD
Binyamin Dissen <posti  2005-04-28 23:58:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 2:17:50 CDT 2008.