override LRECL AND RECFM in DCB ?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

override LRECL AND RECFM in DCB ?

Postby diptisaini » Tue Sep 28, 2010 6:08 pm

//DD2 DD DSNAME=file1,DISP=OLD,DCB=(RECFM=VB,LRECL=80,
// BLKSIZE=80)

//DD3 DD DSNAME=File2,DISP=(,CATLG,DELETE),UNIT=SYSDA,
// ,VOLUME=SER=600,DCB=(RECFM=FB)

My requirement is that in DD2 LRECL=80 and BLKSIZE=80 so in dd3 file2 will be created with same LRECL=80 and BLKSIZE=80 so is it possible to do that ?
diptisaini
 
Posts: 90
Joined: Sun Mar 14, 2010 5:12 pm
Has thanked: 0 time
Been thanked: 0 time

Re: override LRECL AND RECFM in DCB ?

Postby Bill Dennis » Tue Sep 28, 2010 6:53 pm

You can code LRECL=80,BLKSIZE=80 for DD3 but the DCB in the program may override your values.

Is DD2 really a RECFM=VB file or is it also FB ?

BTW, unblocked files on disk REALLY waste space and cause you to over-allocate!
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: override LRECL AND RECFM in DCB ?

Postby NicC » Tue Sep 28, 2010 8:18 pm

Besides - if your lrecl is 80 and your blocksize is 80 your file is not blocked except in the sense that each record is a block which destroys the reason for blocking and your performance will be really bad.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: override LRECL AND RECFM in DCB ?

Postby steve-myers » Tue Sep 28, 2010 9:16 pm

NicC wrote:Besides - if your lrecl is 80 and your blocksize is 80 your file is not blocked except in the sense that each record is a block which destroys the reason for blocking and your performance will be really bad.
That's not necessarily really true for tape drives that compress data, A major part of tape drive data compression is they combine your records into large physical records and write them that way; the result is especially marked for unblocked data. But what NicC says is very true for disk data.

Assembler programmers have an extra point to influence the contents of the DCB: they can use a DCB OPEN exit to alter the contents of a DCB during OPEN. AFAIK, the capability is not available in high level languages. You have this hierarcy:
  • The DCB as specified at the time of the OPEN.
  • The DCB after it has been altered by the DCB open exit after JCL DCB attributes and data set label DCB attributes have been merged into the DCB by OPEN processing.
  • The DCB parameters as specified in JCL.
  • The DCB attributes retrieved from the data set label (for tape data sets) or the format 1 DSCB (for disk data sets.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post