Search the web
Sign In
New User? Sign Up
vbra · Visual Basic - Reliable Answers
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
File Transfer Protocol   Message List  
Reply | Forward Message #26 of 42 |

When sending a file to the Mainframe using FTP, when the file gets to
the Mainframe It gets truncated from a 254 bytes file to 80 bytes.

Every 254 bytes record creates four 80 byte records on the output file.

I need help on how to set the attributes (LRECL) of the file to 254 in
my VB code.

This is a piece of the code that transfers the file.


Private Declare Function FtpPutFile Lib "wininet.dll" Alias
"FtpPutFileA" _
(ByVal hInet As Long, ByVal lpszLocalFile As String, ByVal
lpszNewRemoteFile As String, _
ByVal dwFlags As Long, ByVal dwContext As Long) As Boolean

'Open internet session
If ComboOpenFTP(HSESSION, HINTERNET, strservername) = False Then
GoTo Exit_Mfrm_Ftp
End If

'Sends the file to the mainframe
If FtpPutFile(HSESSION, strFilenameLocal, strFilenameServerIn, _
FTP_TRANSFER_TYPE_ASCII, lngContext) = False Then
MsgBox "Ftp Put Failed. Try again."
GoTo Exit_Put_FTP
End If




I appreciate your help!

Thanks,
Dalio H. Mercado






Wed Aug 15, 2001 3:57 pm

Dalio.mercado@...
Send Email Send Email

Forward
Message #26 of 42 |
Expand Messages Author Sort by Date

When sending a file to the Mainframe using FTP, when the file gets to the Mainframe It gets truncated from a 254 bytes file to 80 bytes. Every 254 bytes...
Dalio.mercado@...
Send Email
Aug 15, 2001
3:58 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help