On Tue, Dec 16, 2014 at 7:17 AM, David Crayford <[email protected]> wrote:
> On 16/12/2014 9:13 PM, John McKown wrote: > >> On Tue, Dec 16, 2014 at 12:46 AM, Paul Gilmartin < >> [email protected]> wrote: >> >> On Mon, 15 Dec 2014 22:24:28 -0600, Paul Edwards wrote: >>> >>> It produces a V-format file that can be >>>>> processed by a C program. >>>>> >>>> As an example, I want to be able to transmit an >>>> SMF file (which I believe contains binary data) to >>>> the PC, and then have a PC program to process >>>> the SMF file. The PC program must handle the >>>> RDW itself, but that's all. >>>> >>>> I believe that is even RECFM=VBS. Does FTP RDW >>> do something reasonable with the spanning? >>> >>> Each segment comes in separately, just as it is on the file. FTP does >> not >> reassemble a spanned record into a single record. So your code must >> reassemble the entire record from the segments. I have C code which does >> this. If you (or others) would like to look at it, it is available as a >> "gist" on GitHub via the URL: >> https://gist.github.com/JohnArchieMckown/8ae2fb6f457eaf8d6d7b >> >> > > I don't like the look of that unchecked malloc! > > That was left as an exercise for the reader? <grin/>. I'll fix it, thanks. -- While a transcendent vocabulary is laudable, one must be eternally careful so that the calculated objective of communication does not become ensconced in obscurity. In other words, eschew obfuscation. Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
