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 4 of 4 Topic 241 of 328
Post > Topic >>

Re: Deconcatination of data sets and open every DD

by Binyamin Dissen <postingid@[EMAIL PROTECTED] > Apr 28, 2005 at 11:58 PM

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.
 




 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 Fri Jul 25 15:17:36 CDT 2008.