IBM i Access Client Solutions

IBM i Access Client Solutions

Connect, learn, share, and engage with IBM Power.

 View Only

Guidance Needed for Automating Processing Loop in

  • 1.  Guidance Needed for Automating Processing Loop in

    Posted Tue July 16, 2024 09:24 AM

    Dear [Manufacturer/Support Team],

    I hope this message finds you well.

    I am currently working on writing a macro using <HAScript> to automatically process a list of parcels within window A. The objective is for the macro to check each parcel, and if a parcel exists, the process will proceed without manual intervention by navigating from window A to B, then to C, and back to the beginning at window A. This loop should continue until no parcels remain, at which point the process in window A should exit.

    In window A, when performing the condition check, if the result is True, the macro should move to window B. If the result is False, it should navigate to the Exit window. However, since <HAScript> does not support Goto statements or looping constructs, I am facing challenges in implementing this logic.

    Could you please provide guidance or suggest an effective method to handle this scenario using <HAScript>?

    Thank you for your assistance.

    Best regards,



    ------------------------------
    Thanh Cac PHAN
    ------------------------------