Page 1 of 1

User abend 4038

PostPosted: Thu Feb 28, 2013 10:16 am
by surime72
Hi,

can any one how to resolve this error, i was facing these error while running job.

A user abend,4038,occurred in module CEEPLPKA at offset X'D3E40'.


THE REFERENCE TO TABLE REPB1-OPTION-CODE BY VERB NUMBER 01 ON LINE
001638 ADDRESSED AN AREA OUTSIDE THE REGION OF THE TABLE.,

Re: User abend

PostPosted: Thu Feb 28, 2013 11:27 am
by BillyBoyo
On line 1638 in your compile listing, you will find a reference to a table with OCCURS. The field being used to reference the table (a subscript or an index, defined by INDEXED BY) is pointing at an entry in the table of zero or less, or of greater than the number of entries in the table. You have compiled with option SSRANGE, and this is what it does, it does "bounds checking" for you.

Note, use of reference-modification will also be checked, which need not be used for a table.

Whatever you are using on line 001638, it is accessing storage that is not part of the item which is the apparent "target" of the code (the one named).

Re: User abend

PostPosted: Thu Feb 28, 2013 3:18 pm
by Robert Sample
To amplify what BillyBoyo said, line 1638 is the line number in the compile listing, NOT your source code. Using a COPY statement, for example, will be one line of your source (maybe more depending upon how you coded it), but could expand to hundreds of lines in the compile listing.