View previous topic :: View next topic
|
Author |
Message |
Sahoo
New User
Joined: 08 Jun 2006 Posts: 53
|
|
|
|
There is some compilation problem in the folowing piece of easytrive code. Could anybody help me solvinig this?
PARM LINK(NBBPRMIS, R) +
DEBUG (CLIST, DMAP, XREF LONG)
FILE FILEA WORKAREA 13219
IN*REC 1 13219 A
IMP*PEND*REC 1 1 A
POLICY*NO 10 8 A
ENT*STAT*CD 31 2 A
ENT*PAID*DT 225 6 A
ENT*PAID*YR 225 2 N
ENT*PAID*MO 227 2 N
*
A1 1 254 A
A2 * 254 A
*******B055 INVALID LENGTH, TYPE OR DECIMAL PLACES - 254
A3 * 254 A
*******B055 INVALID LENGTH, TYPE OR DECIMAL PLACES - 254
A4 * 254 A
*******B055 INVALID LENGTH, TYPE OR DECIMAL PLACES - 254
A5 * 254 A
*******B055 INVALID LENGTH, TYPE OR DECIMAL PLACES - 254
A6 * 254 A
*******B055 INVALID LENGTH, TYPE OR DECIMAL PLACES - 254
A7 * 254 A
*******B055 INVALID LENGTH, TYPE OR DECIMAL PLACES - 254
A8 * 254 A
*******B055 INVALID LENGTH, TYPE OR DECIMAL PLACES - 254 |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Sahoo wrote: |
There is some compilation problem in the folowing piece of easytrive code. Could anybody help me solvinig this?
Code: |
PARM LINK(NBBPRMIS, R) +
DEBUG (CLIST, DMAP, XREF LONG)
FILE FILEA WORKAREA 13219
IN*REC 1 13219 A
IMP*PEND*REC 1 1 A
POLICY*NO 10 8 A
ENT*STAT*CD 31 2 A
ENT*PAID*DT 225 6 A
ENT*PAID*YR 225 2 N
ENT*PAID*MO 227 2 N
*
A1 1 254 A
A2 * 254 A
*******B055 INVALID LENGTH, TYPE OR DECIMAL PLACES - 254
A3 * 254 A
*******B055 INVALID LENGTH, TYPE OR DECIMAL PLACES - 254
A4 * 254 A
*******B055 INVALID LENGTH, TYPE OR DECIMAL PLACES - 254
A5 * 254 A
*******B055 INVALID LENGTH, TYPE OR DECIMAL PLACES - 254
A6 * 254 A
*******B055 INVALID LENGTH, TYPE OR DECIMAL PLACES - 254
A7 * 254 A
*******B055 INVALID LENGTH, TYPE OR DECIMAL PLACES - 254
A8 * 254 A
*******B055 INVALID LENGTH, TYPE OR DECIMAL PLACES - 254 |
I'm thinking that the asterisk on the A2 line is being interpreted thus: "The * (asterisk) indicates that the field begins in the next available starting position (highest location defined so far, plus 1)" which is putting it at the end of "IN*REC" plus 1. Is that what you intended? |
|
|
Back to top |
|
|
Sahoo
New User
Joined: 08 Jun 2006 Posts: 53
|
|
|
|
There is no replationship between file layout with the A1 and A2 declaration. That is what was intended. Why Compilation is failing? |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
CA-Easytrieve/Plus Reference Guide wrote: |
The * (asterisk) indicates that the field begins in the next available starting position (highest location defined so far, plus 1) |
|
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
CA-Easytrieve/Plus Reference Guide wrote: |
The * (asterisk) indicates that the field begins in the next available starting position (highest location defined so far, plus 1) |
Opps dang button
Try replacing the asterisks with +1 |
|
Back to top |
|
|
|