IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Index key


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jdeeponline

New User


Joined: 08 Sep 2009
Posts: 27
Location: Charlotte

PostPosted: Thu Oct 08, 2009 7:21 am
Reply with quote

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
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Thu Oct 08, 2009 9:40 am
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Oct 08, 2009 1:51 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Oct 08, 2009 2:25 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Cobol file using index COBOL Programming 2
No new posts DL/I status code AK for GU call using... IMS DB/DC 1
No new posts Add column to existing records using ... JCL & VSAM 2
No new posts choice of clustering index DB2 3
No new posts Secondary index error while loading d... IMS DB/DC 2
Search our Forums:

Back to Top