Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
Posted: Thu Oct 28, 2004 10:30 am Post subject: DCB OF DEB VS DCB OF JFCB
What is the difference b/w the DCB which is available in JFCB control block and that available in the DEB control block. I recently downloaded a COBOL program to read the job information (Jobname, step,...,LRECL, BLKSIZE, VOL, RECFM, DSORG...). The author had adopted the following procedure to retrieve the RECFM, LRECL, BLKSIZE, DSORG... for all the datasets.
PSA -> TCB -> TIOT -> JFCB -> DEB -> DCB.
When the DCB (DSNAME, DSORG, RECFM, LRECL, BLKSIZE, VOL...) is already available in JFCB control block why should we take the overhead of reading the DEB control block and then access the DCB from there ? What is the reason for this redundancy ? Does the DEB block contain some additional information that is not available in JFCB ?
Also, could someone please provide me the layout for DEB control block ? (The DEB Map). I searched the Data Area manuals for the DEB control block but didn't find the information that I was looking for.
Joined: 04 Dec 2002 Posts: 71 Topics: 0 Location: Little Falls, NJ
Posted: Thu Nov 18, 2004 3:12 pm Post subject:
Quote:
When the DCB (DSNAME, DSORG, RECFM, LRECL, BLKSIZE, VOL...) is already available in JFCB control block why should we take the overhead of reading the DEB control block and then access the DCB from there ? What is the reason for this redundancy ? Does the DEB block contain some additional information that is not available in JFCB ?
Two different purposes. The JFCB is created at step initiation from information in your JCL. It may be updated with additional information when the dataset is opened. The DEB describes an open dataset and is only created when it is opened. It has the address of the device UCB, the extents of the dataset on the disk, and other info. _________________ Bruce A. Black
Senior Software Developer
Innovation Data Processing
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum