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

Usage of IF condition while using IBM Debug tool


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
aiswarya_suresh

New User


Joined: 24 Feb 2012
Posts: 2
Location: India

PostPosted: Fri Feb 24, 2012 12:06 pm
Reply with quote

I am using IBM Debug tool to debug a Cobol-DB2 program and my input is the database which is having so much of records. But I want to put a condition that will enable me to skip line-by line execution of first 2000 records and will show me directly the line by line execution of 2001 th record.

I know we can use IF condition to skip the execution, but I am not sure about the usage of the same. Can anyone help me?
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Fri Feb 24, 2012 10:22 pm
Reply with quote

If you can't figure it out using debug commands, you could add the if statement to the cobol program and put a break on THAT.
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Sat Feb 25, 2012 1:30 am
Reply with quote

My favourite way is to massage the input file. If all you care about is record 2001, then delete the first 2000 records in the file.

Failing that, you could try commands such as:

AT STATEMENT 20 WHEN (MYVAR = 25)
Back to top
View user's profile Send private message
aiswarya_suresh

New User


Joined: 24 Feb 2012
Posts: 2
Location: India

PostPosted: Tue Feb 28, 2012 11:14 am
Reply with quote

Thanks for your suggestions.. Let me try it out.
Back to top
View user's profile Send private message
satish kompella

New User


Joined: 22 Feb 2012
Posts: 4
Location: india

PostPosted: Tue Feb 28, 2012 5:37 pm
Reply with quote

you can try this



AT CHANGE <var-name>
PERFORM
IF <var-name> NOT = 'something' THEN
GO;
END-IF;
END-PERFORM;
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 -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts STEM usage in REXX CLIST & REXX 14
No new posts Mass JCL release via IDZ tool(eclipse... CA Products 1
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
Search our Forums:

Back to Top