hi,
please help to find the routine to get the byte count of a fixed block mainframe dataset
thanks
mainframe1 wrote:for dynami allocation of files, i have an input files with lrecl 85 and lrecl 40...
Since you haven't explained precisely what you are doing, the platform you are doing it on, nor pretty much anything, there's no way we can tell you the answer. Who (or what) calculated the byte count?for dynami allocation of files, i have an input files with lrecl 85 and lrecl 40,
the byte count is calcuted as record count*(lrecl+2).
couls u please clarify why its is added 2
Pre-defined by whom?mainframe1 wrote:the byte count is calcuted as record count*(lrecl+2). as pre-defined in the code
The byte count +2 I can understand, but the correct byte count for the larger lrecl is not understandable. How many records in the 40 byte file and how many records in the 85 byte file?iam getting the byte count +2 fro input file whose lrecl <80 and correct byte count for lrecl>80
couls u please clarify why its is added 2