View Full Version : CL - finding spool file number
Guest.Visitor
01-01-1995, 02:00 AM
On Friday, November 07, 1997, 02:45 PM, Derryl Cocks wrote: Hello fellow AS/400 CL coders. Here's my problem: I want to be able to schedule a job to CPYSPLF a spooled report to a database for transfer to a PC. I need to find a way to capture the Job number of the spooled file. ******************************************** The easiest way to do this would be to perform the CPYSPLF from the same job stream which produces the spool. This would allow you to specify *LAST as the spool file number.
Guest.Visitor
11-09-1997, 10:49 PM
Hello Derryl. If you have access to modify the CL-program, but for some reason can't use the suggested solution, then I would create a dataarea to hold the jobname, user and jobnbr (use RTVJOBA). After that, the job that is to do the CPYSPLF just have to retrieve the information from this dataarea. Søren On Friday, November 07, 1997, 02:45 PM, Derryl Cocks wrote: Hello fellow AS/400 CL coders. Here's my problem: I want to be able to schedule a job to CPYSPLF a spooled report to a database for transfer to a PC. I need to find a way to capture the Job number of the spooled file.
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.