Thanks Kolusu for your quick response. Please clarify one thing, what has to be supplied in LRECL when it wil be the variable length record and we really don't know the length at the time of creating the sequential file.
Joined: 26 Nov 2002 Posts: 12382 Topics: 75 Location: San Jose
Posted: Thu Jul 28, 2005 10:11 am Post subject:
Quote:
Please clarify one thing, what has to be supplied in LRECL when it wil be the variable length record and we really don't know the length at the time of creating the sequential file.
Nancy,
Even though a file is defined as variable the actual LRECL is fixed. It is the records inside the file that have the variable length.
ex: let us say I want to create a file as variable block file. So I need to consider the maximum length of each record that I want to store in that file , let us assume 4500 and minimum length would be 1 bytes.So you define/create the file with max record possible.. By doing so , you can store the max lrecl record as well as min lrecl record.
Remember that VB files have an extra 4 bytes for the RDW. So when you create a VB file you need to create it with (max lrecl+ 4) as LRECL on the DCB parameter.
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