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

online abended with 310 sql error code


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kapil dev arora

New User


Joined: 29 Dec 2008
Posts: 37
Location: india

PostPosted: Mon Apr 27, 2009 11:58 am
Reply with quote

My online cics program abended during addition operation with -310 code.

The reason we got is when we keep the first row empty and fill second row with data its abending. But if we fill data in first row it will validate it and wont abend.

Now i need to improve the program to resolve and give a fix to it. But I am not getting how to approach for this kind of probem.

Thanks in anticipation.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Apr 27, 2009 12:01 pm
Reply with quote

Your explanation is confusing icon_eek.gif

what does the manual say about -310 ??
Back to top
View user's profile Send private message
kapil dev arora

New User


Joined: 29 Dec 2008
Posts: 37
Location: india

PostPosted: Mon Apr 27, 2009 12:06 pm
Reply with quote

while some columns expected decimal data and there is no data in first row so its abending with -310 sql error code doing insert oepration on table.

let me know for more explanation.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Apr 27, 2009 12:13 pm
Reply with quote

still confusing...

Quote:
while some columns expected decimal data

make sure that the host variables used have the proper format and content
review/fix the program

Quote:
... there is no data in first row ...
icon_eek.gif
make sure that the first row contains the proper data,
or explain better the meaning of the sentence
( usually no data implies no row/record )
review/fix the program

review the overall application logic for the data validation/insertion/retrieval

nothing we can do from here expecially
I agree that there might be a language barrier,
but .... the explanation/description is very unexplaining/undescriptive icon_rolleyes.gif
Back to top
View user's profile Send private message
kapil dev arora

New User


Joined: 29 Dec 2008
Posts: 37
Location: india

PostPosted: Mon Apr 27, 2009 12:22 pm
Reply with quote

make sure that the first row contains the proper data
review/fix the program


This is what i wana do. Modifying program in such way so that it will validate first row.

Problem is if i just give data in first row it will validate it.

If i give data( or no data) in first row and valid data in in 2nd row it wont validate first row.

I know its confusing. But i need just a guidline just like u gave in last reply -

make sure that the first row contains the proper data
review/fix the program
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Apr 27, 2009 12:30 pm
Reply with quote

]we are just losing time here,

we are not supposed to read minds, but I' ll give it a try

when talking about a -310 sqlcode and row everybody will associate the term row
to a database row,

going over the post for the n' th time I am making a wild guess

by row perchance you intend to refer to the first row of data on the screen?

still I stand by my opinion
fix the program in order to validate all the data that comes as input from the screen
and we cannot give any advice,
we know nothing about:
Your application, Your screen layout, the data format

ask a peer, or the consult your application guidelines on how to validate
screen data

I have seldom seen a worse description of a problem icon_evil.gif

to solve it You are on Your own, do not expect too much help!
people are adamant to help people who describe poorly their issues
Back to top
View user's profile Send private message
kapil dev arora

New User


Joined: 29 Dec 2008
Posts: 37
Location: india

PostPosted: Mon Apr 27, 2009 12:35 pm
Reply with quote

I will check application flow.
Thanks again.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Apr 27, 2009 6:36 pm
Reply with quote

Hello,

All columns of all rows should have valid data.

If someone who believes it is proper to maintain a row with "bad" data, they should be removed from the design process.

If you explain what business requirement you are trying to meet and the data involved, someone may have a suggestion about how to implement.

You have not provided anything for us to use to help. All you have done is describe a very poor design and that it causes problems.
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
Search our Forums:

Back to Top