I have written a map/reduce script to check a box on thousands of journal entry records. I have a dynamic parameter that passes in journal status when script is run. In suitescript 1.0 I grab script parameters off context object.
I'm sure it is similar in 2.0, but I can't seem to find it on context object in 2.0.