Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
Husna

New User

Joined: 02 Jun 2006
Posts: 49

 Posted: Wed Aug 30, 2006 8:59 am    Post subject: How can we calculate the BLKSIZE for Variable Block Hi all, I have small doubt in the DCB Parameter. Any one of you please clarify the same? Fixed Block ------------- // RECFM=FB,LRECL=80,BLKSIZE=9040 This dataset will have fixed length records with a length of 80. There will be 113 records of data per block. BLKSIZE/LRECL = 9040/80 = 113 records of data per block Note: Multiple's of LRECL is BLKSIZE (80*113=9040) Variable Block -------------- // RECFM=VB,LRECL=255,BLKSIZE=3120 This dataset will have variable length records with a maximum of 255 characters. The blocksize of the dataset will be 3120. Here, I am unable to understand this BLKSIZE concept. Here, BLKSIZE =3120 (But, it is not multiple's of 255). How can we calculate the BLKSIZE for Variable Block? Could you please let me know the same?

priyesh.agrawal

Senior Member

Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

Posted: Wed Aug 30, 2006 10:19 am    Post subject: Re: Doubt in DCB Parameter?

Husna,

 Quote: I am unable to understand this BLKSIZE concept. Here, BLKSIZE =3120 (But, it is not multiple's of 255).

In case of VB, its not necessary for BLKSIZE to be a multiple of LRCEL.
It should be either same as or greater than LRECL in case of VB recs.
Husna

New User

Joined: 02 Jun 2006
Posts: 49

 Posted: Wed Aug 30, 2006 10:27 am    Post subject: Hi Priyesh, Thanks...
Dariusz
Warnings : 1

New User

Joined: 11 Aug 2005
Posts: 27
Location: POLAND

 Posted: Wed Aug 30, 2006 3:45 pm    Post subject: VB records. Hi. For VB records minimal BLKSIZE must be equal LRECL+4. Regards.
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm Move from Comp3 variable to Edited Va... Revathy.nair0485 COBOL Programming 7 Fri Nov 03, 2017 3:30 pm Can a alphanumeric data be moved to a... nico_neoz COBOL Programming 10 Mon Oct 30, 2017 8:28 am Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us