× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



At 07:42 2/18/2004, you wrote:

I have a task where in I need to automate a file download from a PC to an iSeries at V5.2 and again in the oposite direction as a monthly routine. Only the names of the to and from files will change. I did a cursory search in the archived and on the IBM site but came up empty handed for any examples of how to affect this process. Does anyone know where I can look for examples? Thanks in advance.

If you want to automate that from the AS400, you could create a mount point in QNTC (mkdir) having the same name as the PC host name and then use cpyfrmimpf or cpy to get the file. The path to the network file would be /qntc/hostname/sharename/foldername/subfoldername[/..etc]/file.ext.


There are a few provisos though. The host name can be up to 15 bytes long (I think), but the share name can only be 13 bytes. That can be a significant limitation. There are also some problems dealing with DBCS and SMB signing, which might cause troubles if you need to access any semi-exotic network appliances.

There's an entire service program full of utilities for working with the Unix type APIs in the ISeries Toolkit on Sourceforge. I've been using them in production for over a year now. They have made interfacing with the PC world MUCH easier.

Pete Hall
pbhall@xxxxxxxxxxxxx
http://www.pbhall.us/


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.