Al haber un espacio en la direccion 'c:\pedidos\xxx ooo'
es mejor penerlo entre apostrofes.
DCL        VAR(&HEX) TYPE(*CHAR) LEN(1)  VALUE(X'7D')
y utilizar esta variable.
STRPCCMD   PCCMD('copy s:\REP_AS400\rep' *CAT &REP *CAT +  
                 '\repre' *CAT &REP *CAT '.txt ' +              
    *CAT &hex    *CAT  'c:\pedidos\' *CAT &REP *TCAT &NDO *BCAT +    
                 '.txt' *CAT &hex )  PAUSE(*YES)

> Ya me di cuenta y aun asi no va
> Ahora lo he puesto asi:
>
>     PGM        PARM(&REP &NUM)                                
>                                                                
>     DCL        VAR(&REP) TYPE(*CHAR) LEN(3)                    
>     DCL        VAR(&NUM) TYPE(*DEC) LEN(3 0)                  
>     DCL        VAR(&NDO) TYPE(*CHAR) LEN(3)                    
>                                                                
>     STRPCO     PCTA(*NO)                                      
>     MONMSG     MSGID(CPF0000)                                  
>                                                                
> pia datos de carpeta del Servidor a c: cambiando numero    */  
>                                                                
>     CHGVAR     VAR(&NDO) VALUE(&NUM)                          
>     STRPCCMD   PCCMD('copy s:\REP_AS400\rep' *CAT &REP *CAT +  
>                  '\repre' *CAT &REP *CAT '.txt +              
>                  c:\pedidos\' *CAT &REP *TCAT &NDO *BCAT +    
>                  '.txt')  PAUSE(*YES)                                    
>                                                                
> Y me da error de sintaxis el msdos.
>
>
> -----Mensaje original-----
> De: [EMAIL PROTECTED] [mailto:forum.help400-
> [EMAIL PROTECTED] En nombre de Juan Carlos Paredes
> Enviado el: jueves, 12 de mayo de 2005 18:56
> Para: [email protected]
> Asunto: RE: [Forum.help400] error strpdm
>
> Me temo que el campo &NUM que es num�rico no te permite usarlo en un *CAT,
> tendr�s que pasarlo primero a un alfanum�rico con CHGVAR.
>
> Saludos.
>
> Juan Carlos.
>
> > -----Mensaje original-----
> > De:   medina [SMTP:[EMAIL PROTECTED]
> > Enviado el:   jueves, 12 de mayo de 2005 18:12
> > Para:   [email protected]
> > Asunto:   [Forum.help400] error strpdm
> >
> > Me da error al compilar este cl.
> >
> >  
> >
> > ********* Principio de datos ************************************
> >
> >         PGM         PARM(&REP &NUM)                                  
> >
> >                                                                    
> >
> >         DCL         VAR(&REP) TYPE(*CHAR) LEN(3)                    
> >
> >         DCL         VAR(&NUM) TYPE(*DEC) LEN(3 0)                    
> >
> >                                                                    
> >
> >         STRPCO      PCTA(*NO)                                        
> >
> >         MONMSG      MSGID(CPF0000)                                  
> >
> >                                                                    
> >
> >   Copia datos de carpeta del Servidor a c: cambiando numero     */  
> >
> >                                                                    
> >
> >         STRPCCMD    PCCMD('copy s:\REP_AS400\rep' *CAT &REP *CAT +  
> >
> >                      '\repre' *CAT &REP *CAT '.txt +                
> >
> >                      c:\pedidos\' *CAT &REP *CAT ' ' *CAT &NUM +    
> >
> >                      *CAT '*.*') PAUSE(*NO)                        
> >
> >         ENDPGM                                                      
> >
> >  
> >
> > Aver si me echais una mano , intento despu�s de carpeta Pedidos poner dos
> > par�metros que estoy haciendo mal.
> >
> >  
> >
> >  
> >
> > Saludos
> >
> > Paco Medina
> >
> > Exclusivas Camacho, S.Ltda.
> >
> > Dtor.Informatica
> >
> >  
> >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Anti-Virus.
> > Version: 7.0.308 / Virus Database: 266.11.9 - Release Date: 12/05/2005
> >  
> >
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.11.9 - Release Date: 12/05/2005
>  
>
> __________________________________________________
> 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 visita la siguente URL:
> http://coyote.combios.es/mailman/listinfo/forum.help400
>
>
>
> __________________________________________________
> 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 visita la siguente URL:
> http://coyote.combios.es/mailman/listinfo/forum.help400


_______________________________________________________

AMCOR FLEXIBLES - LEADING THROUGH INNOVATION
_______________________________________________________

CAUTION - This message may contain privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify AMCOR FLEXIBLES immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of AMCOR FLEXIBLES.

Responder a