I ran a good XML file and it produces an empty file (zero bytes).
I changed the output card setting for this card to "CreateOnContent".
No file is produced.
This is nice because I don't want to see any error file produced when there is no error.
Original Message:
Sent: Tue June 04, 2024 12:55 PM
From: Rex Chan
Subject: v10.1.2 Is there a way to stop log files from creating in xml maps?
Another technique available is to use an Output card to capture the XML trace. In a new card, use this function where (1) is input card #1:
=GETXMLERRORMSG (1)
This is what is produced and that's what we usually want to debug an XML error. It tells you exactly which line number and the error. To me, it's more valuable than regular map trace (which may only give you a generic error). The map trace can be set to OFF to get this error message.
Error (-1), "XMLParser: Error(s) occurred."
SAXParseException, Error [line: 235 column: 55] Datatype error: Type:NumberFormatException, Message: Invalid chars encountered.
In addition, you have better control over the output file name and folder location.
------------------------------
Rex Chan
Original Message:
Sent: Tue June 04, 2024 12:28 PM
From: Steve Arbo
Subject: v10.1.2 Is there a way to stop log files from creating in xml maps?
The trace is OFF in the map settings for both but we do have a -T in the run line to create one for trouble shooting on bad files. When I took the -T out, it did not produce a log file. I guess there's no way to have a trace created without creating a log file. I'll just have to execute another line to delete the log file every time.
RUN("GNMA_0363.mmc", "-TIC1=" + cmd_line1 Fields:trigger_out + ".mtr" + " -IF1 " + cmd_line4 Fields:trigger_out + cmd_line1 Fields:trigger_out + " -OF1 " + cmd_line4 Fields:trigger_out + cmd_line1 Fields:trigger_out + ".TRN")
------------------------------
Steve Arbo
Original Message:
Sent: Tue June 04, 2024 11:46 AM
From: Rex Chan
Subject: v10.1.2 Is there a way to stop log files from creating in xml maps?
If the XML file is not read by the main map you showed, it's probably in one of the RUN maps.
In RUN map, you can turn the trace on (-T).
These are the possible RUN options.
https://www.ibm.com/docs/en/ste/10.0.0?topic=commands-execution
If you don't see it, check the map (the one with the RUN command) to see if the Trace is turned on in the Map setting.
------------------------------
Rex Chan
Original Message:
Sent: Tue June 04, 2024 08:57 AM
From: Steve Arbo
Subject: v10.1.2 Is there a way to stop log files from creating in xml maps?
Here are two screen shots of the shell map and the map it calls.
Example input file name; EDII.G0SK1R1.Y22011.R999999.LFN0363.G0001V00
Log file produced; EDII.G0SK1R1.Y22011.R999999.LFN0363.G0001V00_log.xml
------------------------------
Steve Arbo
Original Message:
Sent: Mon June 03, 2024 03:03 PM
From: Rex Chan
Subject: v10.1.2 Is there a way to stop log files from creating in xml maps?
I just want to see if this log is produced by ITX or not. I won't want to be shooting in the dark.
In addition to seeing the content, can you give an example of the xml file name?
------------------------------
Rex Chan
Original Message:
Sent: Mon June 03, 2024 02:34 PM
From: Steve Arbo
Subject: v10.1.2 Is there a way to stop log files from creating in xml maps?
I don't know what's producing the log but it's not an output card. Not clear on what 20 lines you're referring to? We have what we call a shell map that executes several commands, including running the map that translates the xml.
This only happens in our maps that translate xml. We also do flat files, X12, etc. Those don't produce a log.
------------------------------
Steve Arbo
Original Message:
Sent: Mon June 03, 2024 01:57 PM
From: Rex Chan
Subject: v10.1.2 Is there a way to stop log files from creating in xml maps?
I assume this is produced by ITX and not the map (with an output card). Can you cut and paste 20+ lines here so we know what we are dealing with?
------------------------------
Rex Chan
Original Message:
Sent: Mon June 03, 2024 01:46 PM
From: Steve Arbo
Subject: v10.1.2 Is there a way to stop log files from creating in xml maps?
All audit log settings are set to OFF. The file that gets produced is the incoming file name with "_log.xml" appended to it.
------------------------------
Steve Arbo
Original Message:
Sent: Mon June 03, 2024 01:34 PM
From: Rex Chan
Subject: v10.1.2 Is there a way to stop log files from creating in xml maps?
Usually we refer Log file as Audit Log. It's produced by each map execution. It's compiled into the map when it's turned on. Usually it's done by the map developer. For most runtime platforms, you can also turn it off without recompiling the map.
------------------------------
Rex Chan
Original Message:
Sent: Mon June 03, 2024 01:23 PM
From: Steve Arbo
Subject: v10.1.2 Is there a way to stop log files from creating in xml maps?
These files are building up on our production servers. Is there a switch somewhere to stop them from being created on every run?
------------------------------
Steve Arbo
------------------------------