Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Cobol db2 program going in loop

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Cobol db2 program going in loop
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: 10662
Location: italy

PostPosted: Sat Feb 29, 2020 8:52 pm    Post subject: Reply to: Cobol db2 program going in loop
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: 2312
Location: Hampshire, UK

PostPosted: Sun Mar 01, 2020 2:40 am    Post subject: Reply to: Cobol db2 program going in loop
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    Post subject:
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: 2312
Location: Hampshire, UK

PostPosted: Sun Mar 01, 2020 5:50 pm    Post subject: Reply to: Cobol db2 program going in loop
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.    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts COBOL batch program using large size ... Akriti Mishra COBOL Programming 3 Thu Mar 26, 2020 11:37 pm
No new posts Trying to submit COBOL PGM - JCL ERRO... sandeep prajapati JCL & VSAM 5 Tue Mar 24, 2020 11:21 pm
No new posts How to create UUID using COBOL PORYES COBOL Programming 0 Tue Mar 17, 2020 4:43 pm
No new posts Navigation program in CICS Ziko13 CICS 11 Fri Mar 06, 2020 2:30 pm
No new posts Cobol redefines for Signed pictured c... gvvjags COBOL Programming 4 Thu Feb 27, 2020 4:33 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us