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

A006 program interrupt


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sanil m

New User


Joined: 24 Aug 2007
Posts: 38
Location: chennai

PostPosted: Tue Dec 11, 2007 3:49 pm
Reply with quote

Hi,

I have an easytrieve program where termdate is declared as

TERMDATE 57 6 N
TRMYY 57 2 N
TRMMM 59 2 N
TRMDD 61 2 N

When i execute the condition

IF TERMDATE = 020318

I am getting the error

*******A006 PROGRAM INTERRUPT - CODE 7 (DATA EXCP)

Could anyone please help me on this.

P.S: I have seen a previous topic with the same error, but was not clarified with the answer.
Back to top
View user's profile Send private message
G-Johnson

New User


Joined: 12 Mar 2007
Posts: 20
Location: USA

PostPosted: Wed Dec 12, 2007 4:59 am
Reply with quote

This is similar to a SOC7 - data exception. You probably have non-numeric data in field TERMDATE of your input file.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Dec 12, 2007 5:04 am
Reply with quote

Hello,

Yes, it is a s0c7.

As suggested, the value in TERMDATE is not numeric.

If you post the actual value in TERMDATE, we can help.
Back to top
View user's profile Send private message
sanil m

New User


Joined: 24 Aug 2007
Posts: 38
Location: chennai

PostPosted: Wed Dec 12, 2007 11:38 am
Reply with quote

@ dich scherrer

There are 10,000 records with the termdate. So will not be able to find which record is having non-numeric data using displays.
Back to top
View user's profile Send private message
sanil m

New User


Joined: 24 Aug 2007
Posts: 38
Location: chennai

PostPosted: Wed Dec 12, 2007 3:01 pm
Reply with quote

how will i be able to identify which record is having non-numeric data when there are close to 10,000 records?

Putting displays will not be a good method.
Back to top
View user's profile Send private message
G-Johnson

New User


Joined: 12 Mar 2007
Posts: 20
Location: USA

PostPosted: Wed Dec 12, 2007 8:47 pm
Reply with quote

You can try changing the file definition to TERMDATE 57 6 A and test for
IF TERMDATE NE '000000' THRU '999999'
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Dec 12, 2007 8:51 pm
Reply with quote

G-Johnson wrote:
You can try changing the file definition to TERMDATE 57 6 A and test for
IF TERMDATE NE '000000' THRU '999999'


What about '00zzz9'?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Dec 12, 2007 10:21 pm
Reply with quote

Hello,

Quote:
There are 10,000 records with the termdate. So will not be able to find which record is having non-numeric data using displays.
You might test if TERMDATE is numeric and display the value when it is not. . . (along with the record number). . .

Then that/those record(s) could be viewed on the terminal.
Back to top
View user's profile Send private message
sanil m

New User


Joined: 24 Aug 2007
Posts: 38
Location: chennai

PostPosted: Wed Dec 12, 2007 11:36 pm
Reply with quote

Hi,

Thanks all of you.

I was able to solve the issue. I declared the termdate as alphanumeric

and used the condition

Code:
IF TERMDATE NOT NUMERIC
                             
DISPLAY 'TERM DATE WHICH IS NOT NUMERIC IS ' TERMDATE

END-IF                                               
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Thu Dec 13, 2007 12:46 am
Reply with quote

You're welcome icon_smile.gif

Thank you for posting that it is solved.

d
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts After newcopy the CICS program user f... CICS 7
No new posts Starting a CICS Transaction from a Th... CICS 0
No new posts Problem moving a cobol program into E... COBOL Programming 3
No new posts Error to invoke MPP program through B... IMS DB/DC 4
No new posts Using API Gateway from CICS program CICS 0
Search our Forums:


Back to Top