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

RE: Changing Local Directory



Sender: "Calabro, Buck" <Buck.Calabro@xxxxxxxxxxxx>

> I am not 100% sure of how to handle changing 
> the local directory on the iSeries that I 
> want to receive files in to.  

I don't bother to change the directory.  I concatenate the path and the file name (for each transfer) and use that.

> I see there is a NAMEFMT command, so I think 
> maybe I should use that, but I wanted to ask. 

You can use the IFS naming style to specify QSYS.LIB files: /qsys.lib/mylib.lib/myfile.file/mymbr.mbr

> On a related note, my practice in the past 
> has been to pull the files from the remote 
> server in to the DB2 side of the iSeries, 
> since the data is typically text only and 
> many times is coming from another iSeries.  
> Would I be better off to pull the file to 
> the IFS? 

It all depends on what you're going to do with it.  You can certainly read IFS files directly with RPG IV easily enough, but if the receiving application expects a QSYS.LIB file, then why do the extra work to store it in the IFS and then move it to DB2?
  --buck


The information contained in this electronic mail transmission is intended by Communications Software Consultants, Inc. for the use of the named individual or entity to which it is directed
and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please notify the sender immediately and delete this
message from your system without copying or forwarding it.

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------