Simplify Code
Posted: November 23rd, 2021, 7:43 am
Hi CSPro Team,
Hope all is well. Can you help me simplify my code below? I declared F2001...F2004 individually since when I try displaying their values using concat("F2",edit("999",x)) it display the value F2001 and not the value stored to this variable.
Thank you in advance.
Hope all is well. Can you help me simplify my code below? I declared F2001...F2004 individually since when I try displaying their values using concat("F2",edit("999",x)) it display the value F2001 and not the value stored to this variable.
Thank you in advance.
Numeric F2001,F2002,F2003,F2004;
filewrite(summary_file," TOTAL ERRORS PER ERRORCODE: ");
filewrite(summary_file," F2001: %d", F2001);
filewrite(summary_file," F2002: %d", F2002);
filewrite(summary_file," F2003: %d", F2003);
filewrite(summary_file," F2004: %d", F2004)