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

Variable Block file


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

New User


Joined: 27 Mar 2006
Posts: 97
Location: India

PostPosted: Wed Nov 26, 2008 3:22 pm
Reply with quote

Can any one clarify why we need to add 4 bytes with actual length for variable block file during submission of jcl?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Nov 26, 2008 3:25 pm
Reply with quote

how else would tell the block and record lengths
he VB layout is...
four bytes for the BDW bock descripotor word
followed by N tuples of
four bytes for the RDW record description word
the data itself

but anyway the practical reason is ... the manual says so
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Wed Nov 26, 2008 3:27 pm
Reply with quote

The 4bytes contain the RDW (record descriptor word) which contains each individual record's length. Similarly, an additional 4 bytes are used to contain the size of the block containing the variable records.

Garry.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Nov 27, 2008 12:06 am
Reply with quote

Hi,

A variable-length logical record consists of a 4-byte record descriptor word (RDW) followed by the data. The first 2 bytes contain the length of the logical record. The last 2 bytes must be 0 because these are used for spanned records. When using variable-length records on output, you must provide the RDW; for input, the operating system provides the RDW.

Click here, this link would give you a pictorial representation of what goes behind.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Nov 27, 2008 4:59 pm
Reply with quote

Quote:
The first 2 bytes contain the length of the logical record. The last 2 bytes must be 0 because these are used for spanned records.


Adding to what Anuj had posted, last 2 bytes are populated with hexadecimal Zeroes.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top