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

COBOL program might be running in loops - not sure


IBM Mainframe Forums -> HomeWorks & Requests
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
07wickedwizard

New User


Joined: 24 Jul 2024
Posts: 2
Location: India

PostPosted: Wed Jul 24, 2024 2:40 pm
Reply with quote

Wrote my first COBOL program, but i think the code is running but at a certain point I think it is running in loops or not even taking up to read the ksds file. Can anyone check if there are any errors?

Have declared some temporary variables but haven't used them
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1315
Location: Vilnius, Lithuania

PostPosted: Wed Jul 24, 2024 3:16 pm
Reply with quote

Look at line 42 of your code, but given that you're a du-fu, that probably won't help you.
Back to top
View user's profile Send private message
07wickedwizard

New User


Joined: 24 Jul 2024
Posts: 2
Location: India

PostPosted: Wed Jul 24, 2024 3:59 pm
Reply with quote

I didn't get you, can you please elaborate
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2141
Location: USA

PostPosted: Wed Jul 24, 2024 6:49 pm
Reply with quote

07wickedwizard wrote:
I didn't get you, can you please elaborate

Here you can find the explanation: Webster Dictionary
Please, read it carefully.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Wed Jul 24, 2024 6:57 pm
Reply with quote

Quote:
Can anyone check if there are any errors?
Check what?

Use standard COBOL debugging methods -- use DISPLAY statements, code review, dumps (if any), etc. -- to figure out what is going on in your program.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2594
Location: Silicon Valley

PostPosted: Thu Jul 25, 2024 12:42 am
Reply with quote

You can use Ration Developer for Z (RD/z) to debug Cobol programs. You can do debugging tasks like setting break points, and monitor variables.

note: my experience was with PLI; only assuming Cobol should work the same way.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3076
Location: NYC,USA

PostPosted: Thu Jul 25, 2024 4:47 pm
Reply with quote

How do you expect anyone to help with 0 information.. so help yourself by putting some displays

Moved to beginners section.
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 -> HomeWorks & Requests

 


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