Link to home
Create AccountLog in
Avatar of Jackson_62
Jackson_62

asked on

Is it possible to redirect folders on the as400 (IFS) to a network folder

We have a program that is currently outputting to an IFS folder on the i-seriers (as400).  Is there a way (as we do not have access to the program source) to redirect the folder to a network drive (we wish to have the contents going to that folder redirected to a different network folder
Avatar of Barry Harper
Barry Harper
Flag of Canada image

You can use the QNTC file system to access windows data from the AS/400. A program that accesses a stream file in the IFS can access a file on one of the windows servers.
Netserver may already have been set up on your system, so you can check if you can  see the windows box using
WRKLNK OBJ('\QNTC\server_name')

Otherwise,  check out this document on how to get started with QNTC:
http://www-912.ibm.com/s_dir/slkbase.nsf/1ac66549a21402188625680b0002037e/aea450153eebf8ff8625670f0072550f?OpenDocument

If you have any questions, post back!
Barry
I don't know of a direct method to redirect an existing IFS directory, but it is not difficult to code an exit point program that monitors the creation of new files in a given IFS directory, waits until the file is closed, and then moves the file to a new location.  

Registered exit point programs are called automatically by the operating system whenever the underlying event occurs.

Check out this thread for more information, and post back here if you need more help.

http://archive.midrange.com/midrange-l/200501/msg01214.html
 
ASKER CERTIFIED SOLUTION
Avatar of Theo Kouwenhoven
Theo Kouwenhoven
Flag of Netherlands image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer