IBM i Global

IBM i 

A space for professionals working with IBM’s integrated OS for Power systems to exchange ideas, ask questions, and share expertise on topics like RPG and COBOL development, application modernization, open source integration, system administration, and business continuity.


#Power


#IBMi
#Power
 View Only

Read integers from a text file into an ArrayList and iterate through them using Java classes

  • 1.  Read integers from a text file into an ArrayList and iterate through them using Java classes

    Posted Wed July 03, 2024 02:03 PM
      |   view attached

    Hello,
    I am new to the group and to HAScript (complete beginner).
    I have attempted to write a HAScript macro that will read integers (account numbers) from a text file into an ArrayList using Java classes. Ultimately, I would like to then iterate through them and perform action on each account number. The code is incorrect, I do not know how to write the "while condition" correctly. Would someone please help me correct my code? Any help would be appreciated. Thanks!



    ------------------------------
    Cal Moffitt
    ------------------------------

    #IBMiAccessClientSolutions

    Attachment(s)

    txt
    post.txt   1 KB 1 version