MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » October 2004

RE: CPYF question



fixed

Here's what I'm getting in a real simple version of Pat's suggestion:

Message CPD0084 . . . . :   '*if PTLOC ' not valid for parameter INCREL. 
Here is the erroneous part statement in the job log

INCREL(('*if PTLOC *EQ "0893  "'))      Something is stuffing apostrophes 
at the beginning and end of the &XYZ parameter

Here's the DCL statement: DCL VAR(&XYZ) TYPE(*CHAR) LEN(23) VALUE('*if 
PTLOC *EQ "XXXXXX" ')
Here's the CHGVAR statement: CHGVAR VAR(%SST(&XYZ 16 6)) VALUE(&loc)
The variable &loc is 6 characters


Paul Nelson
Arbor Solutions, Inc.
708-670-6978  Cell
pnelson@xxxxxxxxxx





jsilberberg@xxxxxxxxxxxxxx
Sent by: midrange-l-bounces@xxxxxxxxxxxx
10/07/2004 04:12 PM
Please respond to Midrange Systems Technical Discussion
 
        To:     Midrange Systems Technical Discussion 
<midrange-l@xxxxxxxxxxxx>
        cc: 
        Subject:        RE: CPYF question


Dan, 

   Something is wrong here.  In the code for increl you show three ( opens 
and three ) closes.  Yet line 700 only shows two pairs.   Are you sure you 
are looking at the right/same stuff...

  Also, can you cut & past the second level text for the CPF2843 that you 
are reciving so we can see it please..

   JMS..

-----Original Message-----
From: Dan Bale <dbale@xxxxxxxxxxxxx>
Sent: Oct 7, 2004 12:59 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: RE: CPYF question

Well, here is the example I am trying to get to work:

  Dcl   &Var5    *Char  (    5   ) Value( 'MI   ')
  Dcl   &A       *Char  (    1   ) Value( '''' )
  CPYF  FROMFILE(VATTBL) TOFILE(*PRINT) +
        INCREL((*IF TXSUF *EQ  ( &A *cat &Var5 *cat &A )))

TXSUF is a 5-byte alpha.  Still getting the CPF2843 error.  The job log
shows:

 700 - CPYF FROMFILE(AMFLIB/VATTBL) TOFILE(*PRINT)
         INCREL((*IF TXSUF *EQ '''MI   '''))

CL dump shows:

Variable  Type   Length  Value         Value in Hexadecimal
                          *...+....1   * . . . + . . . . 1
&A        *CHAR     1    '''           7D
&VAR5     *CHAR     5    'MI   '       D4C9404040

Try again?

tia,
db

> -----Original Message-----
> From: midrange-l-bounces@xxxxxxxxxxxx / Marco Facchinetti
> Sent: Thursday, October 07, 2004 12:29 PM
>
> PGM
> DCL        VAR(&Q) TYPE(*CHAR) LEN(1) VALUE('''')
> DCL        VAR(&FIELD) TYPE(*CHAR) LEN(5) VALUE('XXXX ')
> CPYF       FROMFILE(LIB/FILE) +
>              TOFILE(QTEMP/FILE) MBROPT(*REPLACE) +
>              CRTFILE(*YES) INCREL((*IF DBFIELD1 *EQ +
>              'YYY') (*AND DBFIELD2 *EQ (&Q *CAT +
>              &FIELD *CAT &Q)))
> ENDPGM
>
> HTH
> Marco

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing 
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing 
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.







Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact