In the following example, the param p1 = "Hello" parameter must be declared after the "bye" parameter. (If swapping the parameters around in the code below, you would also need to swap the procedure division declaration in the method so that p2 is declared first, and p1 declared second.)
class-id myClass. method-id main static. invoke self::myMethod(param p1 = "Hello", "bye") *> incorrect invoke self::myMethod("bye", param p1 = "Hello") *> correct end method. method-id myMethod static. procedure division using by value p1 as string, p2 as string. end method. end class.