support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets
 

Veryant Knowledge Base
Home > All Categories > Debugging > Starting a new trace log file for the current run unit
Question Title Starting a new trace log file for the current run unit

isCOBOL has a feature that will enable you to start a new trace log for the current run unit.

When a COBOL program sets "iscobol.logfile" using SET ENVIRONMENT the isCOBOL framework will close the current log and open the new one for the current run unit.

For example, suppose you want to have a separate trace log file for each user in an application server environment. To separate log files you could add the following code:

           STRING "MYAPP_" 
             USER-ID DELIMITED BY SPACE 
             ".log" INTO LOGFILE-NAME.
           SET ENVIRONMENT "logfile" TO LOGFILE-NAME.

If USER-ID is 1234 then the above code will cause isCOBOL to close the current log file if any and open a new log named MYAPP_1234.log.

The above assumes you have a variable in working storage similar to the following:

       01 LOGFILE-NAME PIC X ANY LENGTH.

Authored by: Veryant Support This question has been viewed 4021 times so far.
Click Here to View all the questions in Debugging category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
  1. How do I set things up to remote debug just one program when the server executes it?
  2. Why do I get "File not valid" when I run the debugger?
  3. How do I configure the debugger to find source code that is not in CLASSPATH?
  4. How do I specify isCOBOL, Java or application properties on the command line?
  5. How to tell the Debugger to pause with a different key than the Pause key?
  6. Did you know how to show variables in Debugger using a tree structure?
  7. Did you know you can see the content of variables while debugging?
Article Information Additional Information
Article Number: 134
Created: 2010-07-06 10:33 AM
Rating: No Rating
 
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
 
Search Knowledge Base Search Knowledge Base



 
 

© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.