[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UPS tracking using Example16 Program



Hello,

On 8/4/2010 2:35 PM, J. Carlos Lugo wrote:
> now I have to send the file Name with the following format:
> EIR_Cnnnn_mmddyyyy_nn.sam

You have to write a program that creates your FTPSCP source member. 
Source PFs are just regular PFs (with specific fields in them.)  An 
ordinary RPG program can write records to them.  So that's what you have 
to do -- clear the member, then re-write the FTP script each time, 
inserting the proper filename at the proper point.

That assumes that you want to continue to use the IBM FTP client.

You can use variables directly if you use FTPAPI instead of IBM's 
client.  (This mailing list is for FTPAPI and HTTPAPI.)

    rc = FTP_put(sess: MyFromFile: MyDestFile);

But your example isn't using FTPAPI, it's using IBM's client.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------