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

Cobol db2 program going in loop


IBM Mainframe Forums -> COBOL Programming
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
sivasaras

New User


Joined: 29 Sep 2007
Posts: 93
Location: chenna/i-

PostPosted: Sat Feb 29, 2020 7:44 pm
Reply with quote

My requirement to match a account number from input file and match that acct no in a table when both acct no match in 2 tables the person name will write to a file and if acct no is character no need to go to table fetch. I have give a if condition like if acct no character open cursor para else go to read file but it is not going correctly
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Sat Feb 29, 2020 8:52 pm
Reply with quote

Quote:
My requirement to match a account number from input file and match that acct no in a table when both acct no match in 2 tables the person name will write to a file and if acct no is character no need to go to table fetch. I have give a if condition like if acct no character open cursor para else go to read file but it is not going correctly


do you really think that anybody will reply to such a sloppy description of Your problem

remember ...
we reply on our own time, and we do not like to waste it icon_evil.gif
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Sun Mar 01, 2020 2:40 am
Reply with quote

Quote:
not going correctly

How is it "not going correctly"? In which part of your program is it "not going correctly"? Show the relevant code (making sure that you use the code tags to display the code nicely) and also describe the steps that you have taken to analyse the problem.
Back to top
View user's profile Send private message
sivasaras

New User


Joined: 29 Sep 2007
Posts: 93
Location: chenna/i-

PostPosted: Sun Mar 01, 2020 11:20 am
Reply with quote

If acct no = number perform open cursor else perform read file endif but when I use this only last record it write then exit or else go into loop
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Sun Mar 01, 2020 5:50 pm
Reply with quote

No code tags used and no relevant code shown as requested. This person does not want to be helped. Topic locked.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL sorting, with input GDG base COBOL Programming 7
No new posts Need help with ADABAS query (COBOL-AD... All Other Mainframe Topics 0
No new posts Replacing FILLER with FILLER<SeqNu... DFSORT/ICETOOL 2
No new posts Error to invoke MPP program through B... IMS DB/DC 3
No new posts Compile Sp Cobol base COBOL Programming 1
Search our Forums:

Back to Top