× 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.



I believe you are mistaken.

The user ID / password of the iSeries user running the command is
automatically passed when the QNTC file system is accessed.

Basically, to use QNTC at all you must have a Windows user ID and
password that matches the iSeries use ID and password.

Charles Wilt
--
iSeries Systems Administrator / Developer
Mitsubishi Electric Automotive America
ph: 513-573-4343
fax: 513-398-1121
  

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx 
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Fisher, Don
Sent: Thursday, September 07, 2006 1:01 PM
To: Midrange Systems Technical Discussion
Subject: RE: Verifying Existence of a File on a Server

Now this is very interesting.  If I understand the 
documentation correctly, the user doesn't necessarily have to 
have a valid i.d. and password on the Windows server.  I just 
have to pass "F_OK" as the second parameter (as in your example).

Do I understand correctly?  If so, that just leaves the setup of QNTC.

Donald R. Fisher, III
Project Manager
RoomStore, Inc.
(804) 784-7600 ext. 2124
dfisher@xxxxxxxxxxxxx


<clip>
The iSeries can access Windows file shares via the /QNTC 
filesystem.  For 
example, we have a server named RED (that's just the name we 
used) and on 
that server we have a share named ISDOCS where we store our 
documentation 
for the Information Systems department.  If I wanted to access a file 
named "TimeMgt2.xls" in a folder called "scottk" I could 
refer to it from 
the iSeries using the following IFS path:

     /QNTC/SERVER4/isdocs/scottk/TimeMgt2.xls

When I use that path, it actually logs on to the Windows server named 
SERVER4 (using the userid/password of the iSeries user who 
tried to access 
it) and refers directly to that file.

If I wanted to check if that file existed, I could write an 
RPG program 
(or any other ILE HLL) to call the access() API.  That API 
checks whether 
a file exists (and optionally, whether you have access to it)  for 
example:

  /free
         filename = '/QNTC/SERVER4/isdocs/scottk/TimeMgt2.xls';

         if (access(%trimr(filename): F_OK) = 0);
            // hurray! file exists
         endif;
<clip>

-- 
This is the Midrange Systems Technical Discussion 
(MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.




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.