View previous topic :: View next topic
|
Author |
Message |
jdeeponline
New User
Joined: 08 Sep 2009 Posts: 27 Location: Charlotte
|
|
|
|
DATA-TBL OCCURS 1 TO 290 TIMES
DEPENDING ON NUM-RECS
ASCENDING KEY IS NUM-KEY
INDEXED BY NUM-IDX
In the above case, do we have any restriction to declare the variable NUM-KEY. I am getting a SOC7 when I declare this as paked decimal (COMP-3).
Since, the source from where I load NUM-KEY is declared as COMP-3, I have declared NUM-KEY as the same.
Is this some sort of violation? |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Not that I can see from what you've posted. Please post the exact definition using copy/paste, not keying manually. Also post the exact code that's giving you the S0C7. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
I am getting a SOC7 when I declare this as paked decimal (COMP-3). |
the above statement is false. you received a soc7 because you have non-numeric data. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
I'd echo Dick. S0C7 is caused by a data exception and can only occur when decimal (packed) instructions are used. To get better replies, suggest you post the SYSOUT or diagnostic messages from the failed job. |
|
Back to top |
|
|
|