Hi All,
I need to determine the size of an input file which contains variable records. The goal is to split this input file into smaller files of 2megs in size.
For instance, if we get a file of 10meg in size then my COBOL module should be able to split this file into say... 5 different output files of 2megs in size.
Now, Microfocus NetExpress has CBL_routines that can determine a file size which I can easily use to determine whether or not the file needs to be split... Now, if I know the file size is say 4megs, then I would assume that 2 files will need to be created... but just not too sure how to split the VARIABLE length records into output files with a size <= 2megs.
I need to determine the size of an input file which contains variable records. The goal is to split this input file into smaller files of 2megs in size.
For instance, if we get a file of 10meg in size then my COBOL module should be able to split this file into say... 5 different output files of 2megs in size.
Now, Microfocus NetExpress has CBL_routines that can determine a file size which I can easily use to determine whether or not the file needs to be split... Now, if I know the file size is say 4megs, then I would assume that 2 files will need to be created... but just not too sure how to split the VARIABLE length records into output files with a size <= 2megs.