Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AS400 and FTP

Status
Not open for further replies.

James64

Vendor
Jun 19, 2003
2
US
When using an AS400 would I have the ability to FTP a spool file? And if so any information would be appreciated.
 
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."

--Leonardo da Vinci

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

--Leonardo da Vinci
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top