I was having this exact problem. This is a screenshot of the library, yes? So you're including it from some other program file? I found that I had to use EXEC "PRG1:LIB" instead of USE "PRG1:LIB". This allows the library to define its local variables. They remain in memory, but they can only be accessed by the library's functions. That should solve your A array.