You have to use the CPYSPLF command to copy the spool file to a database file, then FTP that database file.
"When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for here you have been, and there you will always long to return."
Terrific, But that leads me to the next question can this be automated? I will have multiple spool files coming down consistently and I want to FTP them automatically with no human intervention. Thanks
If your spool files are going to a specific output queue, you can attach a data queue to the output queue, and a continuously running program monitors the data queue for entries. When an entry is found, read the data queue with the QRCVDTAQ API and use the information to trigger the FTP to the remote system. (Make sure the output queue is not attached to a writer).
Are you trying to print AS/400 spool files on another non-AS/400 system? If so, look at the LPR and LPD functions:
"When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for here you have been, and there you will always long to return."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.