IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

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

Senior Member


Joined: 14 Mar 2007
Posts: 10696
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: 2429
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: 2429
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. All times are GMT + 6 Hours
Forum Index -> COBOL Programming
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts JCL for replacing code in Cobol JCL & VSAM 8
No new posts COBOL VS SORT Utility for file format... COBOL Programming 6
This topic is locked: you cannot edit posts or make replies. Sample CICS Webservices Program CICS 1
No new posts XML Parsing in COBOL creating "h... COBOL Programming 0
No new posts Calling Rexx program from Cobol CLIST & REXX 12

Back to Top