yo lo hago asi
 
WRKSPLF    SELECT(USUARIO) OUTPUT(*PRINT)
 
CPYSPLF    FILE(QPRTSPLF) TOFILE(QTEMP/FSPOOL) +
                          JOB(570636/SANTILLANG/QPADE0122) SPLNBR(*LAST)
 
y el archivo FSPOOL  (que aqui te lo envio) tiene la informacion que necesitas, despues lo puedes utilizar para manejarlo con subfiles
 
 
Espero te sirva

Gerardo Santillana
IT Department
Delphi Mechatronic Systems
Phone USA  (956) 554 5832
Phone MX  01868 8128163   x.5832

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Juan Gutierrez Ruiz
Sent: Friday, December 10, 2004 3:34 PM
To: [EMAIL PROTECTED]
Subject: Re: Donde Puedo Tomar los parametros del comando cpysplf

si pero com los almaceno todos en una tabla fisica
----- Original Message -----
Sent: Thursday, December 09, 2004 4:55 PM
Subject: Re: Donde Puedo Tomar los parametros del comando cpysplf


Juan.

Los archivos de spool se alojan en archivos f�sicos en la biblioteca QSPL, pero esto no te sirve para el comando CPYSPLF, lo que tu necesitas no es esto, la informaci�n de un spool la debes obtener de la vista 3 del propio archivo de spool en WRKSPLF:

                          Work with All Spooled Files                          
                                                                               
Type options, press Enter.                                                    
   1=Send   2=Change   3=Hold   4=Delete   5=Display   6=Release   7=Messages  
   8=Attributes        9=Work with printing status                              
                                                                               
                                                                               
                  File                                                          
  Opt File        Nbr     Job         User        Number                        
      QPDSPJOB         3  DIE9307161  IE930716    249680                        
      QPSRVDMP         2  DIE9307161  IE930716    249680                        
      QPDZDTALOG       1  DIE9307161  IE930716    255570                        
      NOM028FM         3  DIE9307162  IE930716    255843                        
      NOM028           4  DIE9307162  IE930716    255843                        
      NOM404CL         1  DIE9307161  IE930716    256483                        
      PF10X66L         3  DIE9307161  IE930716    255842                        
      PF15X88L         4  DIE9307161  IE930716    255842                        
                                                                               
                                                                         Bottom
Parameters for options 1, 2, 3 or command                                      
===>                                                                          
F3=Exit   F10=View 2   F11=View 4   F12=Cancel   F22=Printers   F24=More keys  

Si deseas procesar un archivo de spool generado en el mismo trabajo reemplaza JOB(job_number/job_user/job_name) por JOB(*) y revisa, segun lo que deseas obtener el valor optimo para el parametro CTLCHAR( )

Saludos.


Jes�s Humberto Olague Alcal�
Jefe de Sistemas
Envases y Tapas Modelo, S.A. de C.V.
Compa��a Cervecera de Zacatecas, S.A. de C.V.
Tel:  (478) 985 4040
Red de voz Modelo: 81800
Ext. 1061
Fax: (478) 985 0962






"Juan Gutierrez Ruiz" <[EMAIL PROTECTED]>
Enviado por: [EMAIL PROTECTED]

2004/12/09 04:27 p.m.
Por favor, responda a forum.help400

       
        Para:        "AS400EZ" <[EMAIL PROTECTED]>, "AS400_ES" <[EMAIL PROTECTED]>, "AS400" <[EMAIL PROTECTED]>
        cc:        
        Asunto:        Donde Puedo Tomar los parametros del comando cpysplf



hola foro :  la pregunta de donde se alojan los sool fu por lo siguiente ,
nesesito saber de donde tomar los datos (parameros) del

comando Copiar Archivo en Spool (CPYSPLF)
                        Copiar Archivo en Spool (CPYSPLF)

Teclee elecciones, pulse Intro.

Archivo en spool . . . . . . . . FILE
A archivo de base de datos . . . TOFILE
 Biblioteca . . . . . . . . . .                  *LIBL
Nombre de trabajo  . . . . . . . JOB            *
 Usuario  . . . . . . . . . . .
 N�mero . . . . . . . . . . .
N�mero de archivo en spool . . . SPLNBR         *ONLY
A miembro  . . . . . . . . . . . TOMBR          *FIRST
Sustituir o a�adir registros . . MBROPT         *REPLACE

                           Par�metros adicionales

Car�cter de control  . . . . . . CTLCHAR        *NONE




nombre del archivo , numero etc..   esto me imaguino que esta en alguna
tabla des as400  , la idea que quiero es que cuando trasportamos un spool a
una tabla fisica y despues a exel , nesesitamos hacer el cpysplf y poner
manualmente el numero de spoool, archivo trabajo etc....

y me gustaria hacer un subfile son esos datos y cuando selecciones un spool
llevasrmelos automaticamente,
o alguna idea de como poder simplificar dicho proseso


de antemano gracias

_____________________________________________________
Forum.HELP400 es un servicio m�s de NEWS/400.
� Publicaciones Help400, S.L. - Todos los derechos reservados
http://www.help400.es
_____________________________________________________

Para darte de baja, env�a el mensaje resultante de pulsar
mailto:[EMAIL PROTECTED]


________________________________________________________________________________________________________________________

" Este mensaje es confidencial.   Si usted no es el destinatario de este mensaje, le suplicamos se lo notifique al remitente mediante un correo electr�nico y que borre el presente mensaje y sus anexos de su computadora sin retener copia de los mismos.  No debe copiar este mensaje o usarlo para cualquier prop�sito ni divulgar su contenido.  Muchas gracias.

This e-mail is confidential and may also be privileged. If you are not the intended recipient please immediately advise the sender by reply e-mail and delete this message and its attachments from your computer without retaining a copy. You should not copy it or use it for any purpose nor disclose its contents to any other person.  Thank you. "


****************************************************************************************

Note: The information contained in this message may be privileged and confidential and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.

****************************************************************************************
     A*--------------------------------------------------------------
     A          R RSPOOL
     A            SESP0          1          TEXT('ESPACIO')
     A            SFILE         10          TEXT('FILE')
     A            SESP1          1          TEXT('ESPACIO')
     A            SUSER         10          TEXT('USER')
     A            SESP2          1          TEXT('ESPACIO')
     A            SDEVQ         10          TEXT('DEVICE OR QUEUE')
     A            SESP3          1          TEXT('ESPACIO')
     A            SUSRD         10          TEXT('USER DATA')
     A            SESP4          1          TEXT('ESPACIO')
     A            SSTS           3          TEXT('STATUS')
     A            SESP5          1          TEXT('ESPACIO')
     A            STOTP          6          TEXT('TOTAL PAGES')
     A            SESP6          1          TEXT('ESPACIO')
     A            SCURP          5          TEXT('CURRENT PAGE')
     A            SESP7          1          TEXT('ESPACIO')
     A            SCOPY          4          TEXT('COPY')
     A            SESP8          1          TEXT('ESPACIO')
     A            SFORM          4          TEXT('FORM')
     A            SESP9          1          TEXT('ESPACIO')
     A            STYPE          4          TEXT('TYPE')
     A            SESP10         2          TEXT('ESPACIO')
     A            SPTY           3          TEXT('PRIORITY')
     A            SESP11         1          TEXT('ESPACIO')
     A            SCRTD          8          TEXT('CREATION DATE')
     A            SESP12         1          TEXT('ESPACIO')
     A            SCRTT          8          TEXT('CREATION TIME')
     A            SESP13         1          TEXT('ESPACIO')
     A            SFILN          6          TEXT('FILE NBR')
     A            SESP14         1          TEXT('ESPACIO')
     A            SJOB          10          TEXT('JOB')
     A            SESP15         1          TEXT('ESPACIO')
     A            SNUMB          6          TEXT('NUMBER')
     A            SESP16         1          TEXT('ESPACIO')
     A            SQUEUE        10          TEXT('QUEUE')
     A            SESP17         1          TEXT('ESPACIO')
     A            SLIBR         10          TEXT('LIBRARY')
     A            SESP18         1          TEXT('ESPACIO')
     A            SASP           4          TEXT('ASP')
     A            SESP19         1          TEXT('ESPACIO')
     A            SLSTUD         8          TEXT('LAST USED DATE')
     A            SESP20         1          TEXT('ESPACIO')
     A            SSIZE          9          TEXT('SPOOLED FILE SIZE')
     A          K SCRTD
     A          K SCRTT


Responder a