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

How to setup a DEBUG for a CLIST


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Gurmeet

New User


Joined: 22 Feb 2006
Posts: 46
Location: Pune

PostPosted: Fri Feb 22, 2008 8:05 pm
Reply with quote

How to setup a DEBUG for a CLIST?

Please help.

Regards,
Gurmeet
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Sat Feb 23, 2008 2:48 am
Reply with quote

What I do is add a parameter that will determine which CONTROL statement is used. The CONTROL statement is used to display conditional logic tests and symbolic values as you exec. My CLIST starts like this:
Code:
PROC 0 DEBUG                                     
IF &DEBUG = DEBUG THEN DO                       
   CONTROL MAIN MSG LIST CONLIST SYMLIST         
   END                                           
ELSE DO                                         
   CONTROL MAIN NOMSG NOLIST NOCONLIST NOSYMLIST
   END                                           
If 'DEBUG' is passed as a parameter, the extra list options take effect.
Back to top
View user's profile Send private message
Gurmeet

New User


Joined: 22 Feb 2006
Posts: 46
Location: Pune

PostPosted: Mon Feb 25, 2008 1:08 pm
Reply with quote

I'm a newbie at this. icon_rolleyes.gif icon_redface.gif What does LIST CONLIST SYMLIST mean?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Feb 25, 2008 2:29 pm
Reply with quote

11.1 Using Diagnostic Options of the CONTROL Statement.
Back to top
View user's profile Send private message
Nikhil Bhole

New User


Joined: 25 Feb 2008
Posts: 12
Location: Pune

PostPosted: Wed Mar 12, 2008 2:22 pm
Reply with quote

When I add the following code in my CLIST as the first three lines:

PROC 0 DEBUG
IF &DEBUG=DEBUG THEN +
CONTROL LIST CONLIST SYMLIST MSG

I get the following error:

COMMAND PROC NOT FOUND
1 *-* PROC 0 DEBUG
+++ RC(-3) +++
2 +++ IF &DEBUG = DEBUG

Help me out please icon_cry.gif
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Same command as on commandline in REX... TSO/ISPF 6
No new posts CICS / JAVA - Setup of definitions CICS 0
No new posts clist to rexx converter CLIST & REXX 2
No new posts Is there a way to determine Clist usa... CLIST & REXX 10
Search our Forums:

Back to Top