IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Doubt in Variable record length


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Husna

New User


Joined: 02 Jun 2006
Posts: 49

PostPosted: Tue Jul 04, 2006 11:00 am
Reply with quote

Hi,

Could you please clarify the following concept?

For Fixedblock: DSN=(RECFM=FB,LRECL=80,BLKSIZE=800)

LRECL =80 and it takes multiples of it (80*10=800) for BLKSIZE

In the case of Variable:

DSN=(RECFM=VB,LRECL=84,BLKSIZE=840)

LRECL =80 (Plus 4 for Variable length record) and it takes multiples of it (84*10=840) for BLKSIZE

In LRECL we need to mention 80 or 84?

Will you please let me know answer for the same?
Awaiting your reply.
Back to top
View user's profile Send private message
prashantshinde

New User


Joined: 25 Nov 2005
Posts: 49
Location: Pune

PostPosted: Tue Jul 04, 2006 11:09 am
Reply with quote

You wrote :
DSN=(RECFM=VB,LRECL=84,BLKSIZE=840) ???

Firstly you should write 'DCB' instead of 'DSN' for defining DCB parameters.

The LRECL for Variable Block record format should be 80,as the 4 bytes for address and length of record are managed internally.
Back to top
View user's profile Send private message
Husna

New User


Joined: 02 Jun 2006
Posts: 49

PostPosted: Tue Jul 04, 2006 11:26 am
Reply with quote

Prashant,

Thanks for the reply.

You wrote:

The LRECL for Variable Block record format should be 80,as the 4 bytes for address and length of record are managed internally.


Could you please let me know about BLKSIZE?
Back to top
View user's profile Send private message
kondakonda

New User


Joined: 20 Mar 2006
Posts: 34

PostPosted: Tue Jul 04, 2006 12:07 pm
Reply with quote

Hi,

For this example,
DCB=(LRECL=80,RECFM=VB,BLKSIZE=84)
Internally each record is stored with maximum length of 84 (4 bytes for record length)
as the BLKSIZE=84 there wont be any unused space

For this example,
DCB=(LRECL=80,RECFM=VB,BLKSIZE=88)
there will be 4 bytes of unused space for every block.

We can define like anything but should always prefer to avoid unused space.


Thanks.
Back to top
View user's profile Send private message
prashantshinde

New User


Joined: 25 Nov 2005
Posts: 49
Location: Pune

PostPosted: Tue Jul 04, 2006 1:09 pm
Reply with quote

Husna wrote:


Could you please let me know about BLKSIZE?


[red]BLKSIZE[/red] :

In the context of JCL BLKSIZE is same as u have written ..like multiple of LRECL . You would find it more iteresting with COBOL and VSAM

See the attachment
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Jul 04, 2006 8:20 pm
Reply with quote

Quote:
LRECL =80 (Plus 4 for Variable length record) and it takes multiples of it (84*10=840) for BLKSIZE


For VB, the BLKSIZE can be any value greater than or equal to LRECL+4. The BLKSIZE does NOT have to be a multiple of LRECL+4. So for an LRECL of 80, the BLKSIZE can be 84 or greater. Usually, the system determined BLKSIZE (SDB) is a good choice (approx. half-track for DASD = 27998 on a 3390 for LRECL=80). A small BLKSIZE like 84 is not an efficient choice.
Back to top
View user's profile Send private message
raviprasath_kp
Warnings : 1

New User


Joined: 20 Feb 2005
Posts: 65
Location: chennai

PostPosted: Sun Oct 08, 2006 8:54 pm
Reply with quote

any one can advice me what is the main diffence between FB VB
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Sun Oct 08, 2006 11:40 pm
Reply with quote

With F, all of the records are the same length as defined by the LRECL.

With V, records can be different lengths up to the maximum as defined by the LRECL.

F or V indicates that the records are unblocked. FB or VB indicates that the records are blocked.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top