>>
>>How would mainframe know that you want recordsize 320 bytes for this file?
>
>That's been the question all along,
>Oh well I guess I'm back to the old-way of doing it...
>
>...
> =FPUTS(gnFile, 'locsite recfm=fb lrecl='+ reclen+ ' pri=50 sec=50 cy'
> =FPUTS(gnFile, "put "+ cAllZipDir+ laFileListMF [ifm, 1]+ " "+ lcRemotePath)
> =FWRITE(gnFile, 'bye')
>ENDIF
>=FCLOSE(gnFile)
>! FTP -s:bbbi
>>>>>>>
>Thanks anyway
Edgar,
I'm not sure what you are needing to do, but your "old way" simply seems to be send commonad-like instructions to something. That something looks like it formats either JCL or VSAM control statements for a mainframe.
Ask you mainframe guys what other commands (TSO or whatever) may be useable to accomlish what needs to be done. I remember that there was a command that "sent" records FROM a mainframe to a PC, optionally putting a CR/LF at the end of each record and a complementary "Receive" that would let you say where to store the contained records on the mainframe, accepting them from the PC and stripping any CR/LFs on the way into the mainframe.
This (admittedly old, with probably much better ways by now) would accept any record size.
good luck