I need help to print an omnibus "summary" string. I have a trigger that executes a procedure:
begin
for each row critical in alerts.status where critical.AlertKey = 'DISK_USAGE_CRIT'
begin
execute send_email( critical.Node, critical.Severity, critical.AlertKey, 'NetcoolEmail', critical.Summary, 'WINITMSVR631');
end;
end
That trigger passes the values of critical node, severity, alertkey, 'NetcoolEmail', summary and host name as parameters to a procedure named send_email
.
This is the procedure body:
(node char(1), severity int, situation char(1), email char(1), summary char(1), hostname (1)).
This procedure then passes the values of those parameters to variables in a batch file.
set node=%1
set situation=%3
set summary=%5
echo %node% >> C:\IBM\logtest.txt
echo %situation% >> C:\IBM\logtest.txt
echo %summary% >> C:\IBM\logtest.txt
When I echo all the variables and redirect them into a text file, the summary
string is truncated while the others being printed as expected.
This is how summary variable looks if it's fully printed:
DISK_USAGE_CRIT[(%_Used>=1 AND WTLOGCLDSK.INSTCNAME AND Disk_Name="C:" ) ON Primary:WINSVR2K8:NT ON C: (%_Used=41 Disk_Name=C: )]
And yet, it is printed like this:
DISK_USAGE_CRIT[(%_Used
The rest is not being printed.
Why is the summary string not output completely?