Hi Booth,

I guess I don't really understand the problem. You say you want to write to a windows PC. Let's assume that the Windows PC is named BOOTHSPC and on that PC is a shared named "SharedDir".

You code your open statement like this:

filename = '/QNTC/BOOTHSPC/SharedDir/MyFile.txt';
fd = open( %trimr(filename): O_CREAT+O_WRONLY; S_IRWXU);

That's pretty much it. Just by starting the filename with '/QNTC/BOOTHSPC/SharedDir' the system will automatically connect to BOOTHSPC, log in (using the userid/password you're signed into i5/OS under) and create the file on that PC.

How could it be more easy/straightforward that that?

Things only get tricky when your Windows network won't let i5/OS connect, or when your userid/password on i5/OS doesn't match the ones that Windows accepts.


Booth Martin wrote:
Man, I can be dense. None of these answers look easy & straight forward.

I am using Scott Klement's examples to write a PC file to the IFS of the System i. It uses a path & file name, which of course I expect. It occurs to me that one can type in any path name and there is no real reason that it won't write directly to what ever is at that path?

But like so many things, it just isn't so. My first question is: Am I dreaming? Is it really simple, or is it a lot of hoop-jumping and therefore of limited value??


This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2019 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].