OnDemand User Group

Support Forums => iSeries => Topic started by: Joe Wolken on March 04, 2016, 11:44:06 AM

Title: How to copy SCS Spool files to PC Files ?
Post by: Joe Wolken on March 04, 2016, 11:44:06 AM
I have a request to copy large quantities of SCS spool files from select OnDemand Folders to PC files (ideally in PDF format) with PC file names that include some or all of the OnDemand meta-data indexing values.

My first thought was to programatically use the ARSDOC Print API to create spool files, then use the CPYSPLF command to create PDF formatted *STMF.  This works when performed manually one step at a time, EXCEPT I lose any opportunity to automate the naming of either the spool file or naming the PDF file with the original OnDemand index keys.

With the old SFA feature, I would use the PRTRPTRDAR command to respool the segments, change the UserDefinedData value of each spool file with Index key values, then use InfoPrint Server/400 to create PDF files with PC file names taken from the UserDefinedData value.

Does anyone have any suggestions on how to extract large volumes of SCS data from Common Server folders to usable PC files?

Thanks for any ideas you may have.

Joe
Title: Re: How to copy SCS Spool files to PC Files ?
Post by: jlsherr on October 07, 2016, 08:48:34 AM
For common server there is an equivalent command to PRTRPTRDAR.  It is PRTRPTOND.  Also in 7.3 there are new commands invoke arsdoc.  PRTDOCOND, QRYDOCOND, and RTVDOCOND.  Maybe one of these will help.
Title: Re: How to copy SCS Spool files to PC Files ?
Post by: Darrell Bryant on September 26, 2017, 08:26:07 AM
The PRTDOCOND, QRYDOCOND, and RTVDOCOND commands are now available at v7.2.