Variable GTRACE contains name of active trace file. Assign the trace file name you want to open as per snippet below.
Local Char ZTMP
[L]ZTMP = GTRACE
GTRACE = "file name of trace file"
Call LEC_TRACE From LECFIC ##### to display the trace/log file
GTRACE = [L]ZTMP
End