Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make Blocking, Length, Cylinders recognized for FTP
Message
De
18/03/2002 19:47:03
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00633652
Message ID:
00634315
Vues:
23
>>
>>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)  && Close NEW file
>! 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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform