You are using the very old syntax without quotes and commas which is only supported for compatibility with old versions. With this syntax the second parameter is 0000 and it is treated as a number. As a result of that you don't get a fixed format string. You should change your script to FORMAT number, "0000", number or Format( number, "0000", number ) or even better Format( number, "0000;0000", number ) : Windows 2000 Advanced server with 24x7 Scheduler 3.2.3 : I am trying to create a JulianDate script library call. : It returns numbers between 1 and 366. I tried using : the "FORMAT number 000 number" for this, but it returns : a the number without padded zeros. I look at the script : log, and the command is working, but the leading zeros : are removed. I tried using FORMAT in the main script, : and get the same results. It pads the number, but when : I use the variable in the CONCAT, it removes the padded : zeros. Result below of ConcatEx should be "nrb020298" : but I get nrb02298. : 110: FORMAT : 110: Executing FORMAT("298", "0000", "298") : Return "0298" : 111: CONCATEX : 111: Executing CONCATEX("nrb", "02", "298", : "") : 112: CONCAT : 112: Executing CONCAT("\\DOLIHPS3\dolpls\daily\alexs\", : "nrb02298", "") : Return "\\DOLIHPS3\dolpls\daily\alexs\nrb02298"
|