PDA

View Full Version : Summary Compare output question


johnrb3
20-Nov-2011, 11:19 PM
I'm doing a folder compare summary report. One of the files in the folders I'm comparing keeps showing up in the category of "Left Newer Files". I don't understand why the file is listed in this category. The data in the file is the same, and the time stamps of the files is the same. Is it looking at the seconds in the time stamp? I can't see the "seconds" in windows explorer...or at least not that I know of, but it's the only thing I can think of as to why it's listed as "Left Newer". The hour and minutes is exactly the same...and I thought I was ignoring the time stamp anyway. Below is the script I'm using. I'd really like the summay report to ONLY list differences? Thanks for all your help with this! JB

On a side note...if I run the same report through the BC GUI interface the output shows no differences in the folders and no "newer" files? I even double checked that I was running against the same data.

load "C:\iS_Comp\Bank99\" "C:\iS_Comp\Bank98\"
expand all

folder-report layout:summary options:display-mismatches,column-size title:"iSeries Comparison Summary Report" output-to:"C:\iS_Comp\Results\Summary\OvRslt%date%.html" output-options:html-color

Aaron
21-Nov-2011, 10:11 AM
Hello,

If you load the the graphical interface and load your two folders in a new Folder Compare session, the file shows up as Newer, correct? If you expand the size of the date/timestamp column by grabbing one of the column header sides and dragging it, you should be able to see it in greater detail.

Our timestamp comparison can be set to include a tolerance in the Folder Compare: Session Settings. By default it is 2 seconds. This can be for a specific saved Folder Compare session, or set as a default for all future folder compare sessions.

johnrb3
21-Nov-2011, 03:48 PM
Is there something incorrect with the code in my script? Yes, I can open up a comparison of the same folder content manually through the GUI and it shows No differences and No left/right newer. I've tried several different updates to the Comparison default settings. I've tried running the script with botht the Quick tests "Compare timestamps" unchecked and checked. If checked I set the tolerance to 20 seconds. I've had it overide the Quick test results, and not overide them. I'm just at a loss as to why the files are showing up under "left newer" when the file time stamps are the same hour and minutes...my tolerance is set at 20, and from my script I didn't even think it should be including the time stamp as a condition? Again thanks for you patience with this. I'm just wondering if there is maybe a bug that is causing this?

Aaron
22-Nov-2011, 09:44 AM
Hello,

Your script looks fine, though you probably do not need ",column-size" since it is included by default unless you use column-none to clear it.

If you set the tolerance to 2 seconds in the graphical interface, what do you see?

The script should be using the default settings set in the graphical interface (using either the "Also set global defaults" dropdown in the Session Settings dialog, or by altering the defaults from the Home screen). If when you change the option you are still set to "Use for this view only" it would not apply to the script. Also, if the script is run as a different user account, each user has their own BC3 settings and would be using the factory default of 2 seconds. That's why I'd like to verify what the comparison shows in the graphical interface with a 2 second tolerance; it would let us know if the factory defaults are currently in use for your script. We can then use the criteria script command to set this tolerance to anything we want, but I would recommend the test first to determine that is the actual problem we are running into.

The script command would be criteria, placed on the line above load (if placed above, the criteria is used during the load, if placed below the load performs a comparison and the criteria change performs another comparison). For example:
criteria timestamp:20sec;IgnoreDST size

johnrb3
02-Dec-2011, 02:32 PM
I'm at a loss. I've only been running this on my own computer and my user account...so that shouldn't be the issue. I still continue to get different results in the Folder Compare report when using the GUI vs. using a Script to produce one. I use the exact same data for the 2 different ways of running the compare. They should be the same. Attached is a screenshot of setting vs. what my script looks like. To me they should produce same results in a report.
load "C:\iS_Comp\Bank37\" "C:\iS_Comp\Bank42\"


folder-report layout:summary options:display-mismatches title:"iSeries Comparison Summary Report" output-to:"C:\iS_Comp\Results\Summary\OvRslt%date%.html" output-options:html-color

I'll try to follow up with a screenshot...didn't realize it was an html link required. On the Folder Compare Session settings...Comparison Tab...in the Quick test section I have nothing selected. In the Requires opening files I have Compare contents>Rules-based comparison selected, and I checked the Override quick test results. I then chose "Also update session defaults". The GUI report outputs exactly how I would expect, but the Folder Compare report from the script look incorrect...and doesn't match the one done through the GUI?

Aaron
02-Dec-2011, 04:33 PM
Instead of a screenshot, would it be possible to get your Support package (Help menu -> Support; Export) emailed to support@scootersoftware.com ? Please also include a link to this forum thread for our reference.

It may also help to try saving a specific session with the configuration you want, then load the session name instead of a pair of folders (as a test).