IBM Support

CTGD START not picking up start parameters - "not found [No such file or directory] -tfile=

Question & Answer


Question

I need to obtain some debug trace for a CICS Transaction Gateway (CICS TG) V9 problem I am experiencing. I was asked to specify the -x and -tfile options on my ctgstart command however I start the CICS TG daemon as a background process as per the ctgd command reference section of the CICS TG documentation.

This lets me know I need to edit my ctgd.conf file and specify the -x for debug and -tfile for my trace file on the CTGD_PARAMS= line. This is what I have in my ctgd.conf file for this parameter.

 #-----------------------------------------------------------------
 # Run the CICS TG with startup options. See the CICS TG Administration  
 # Guide for details of startup options.                                 
                                                                         
 #CTGD_PARAMS=                                     
 CTGD_PARAMS=-x -tfile=/home/userid/ctgJNItrace.txt

The -x debug trace is getting picked up as I immediately get debug output to the console, but the -tfile trace file option is not getting picked up. I get this instead:

./ctgd[808]: .[60]: -tfile==/home/userid/ctgJNItrace.txt: not found [No such file or directory]

Why is it not picking up my -tfile= trace file? I have permission to write to the directory.

Answer

The CTGD_PARAMS= string needs to be enclosed in double quotes for more than one parm with blank space.

From the snippet of the ctgd.conf file based on the preceding comments, this appears to be a ctgd.conf being carried forward from a prior version of CTG. I see those comments in the ctgdsamp.conf file from CTG V7 and V8. In CTG V9, the ctgdsamp.conf member has these comments preceding the CTGD_PARAMS=

 #-----------------------------------------------------------------------   
 # Run the CICS TG with startup options. See the product documentation      
 # for details of startup options.                                          
 #                                                                          
 # Do not use the CTGD_PARAMS variable to specify the -adminport override.  
 # To specify a custom administration port, use the CTGD_ADMINPORT variable.
 #                                                                          
 # When specifying multiple options, separate them with a space and enclose 
 # the entire CTGD_PARAMS value in quotation marks.                         
 #                                                                          
 # The following example shows how CTGD_PARAMS can be used to set the       
 # maximum heap size for the Gateway daemon JVM to 512MB and enable the     
 # specified request monitoring exit.                                       
                                                                            
 #CTGD_PARAMS="-j-Xmx512M -requestExits=<request exit class>"               

The reason the -tfile= did not get picked up in your case was you had more than just the -x parameter and the -tfile had a blank space, so the whole CTGD_PARAMS= string needs to be enclosed in double quotes.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGMJ2","label":"CICS Transaction Gateway"},"Platform":[{"code":"PF035","label":"z\/OS"}],"Component":"","Version":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Product Synonym

CICSTG CICS TG

Document Information

Modified date:
23 May 2017

UID

dwa1374549