different library

I can use different library programs?

Program A library X
call program B bibrary Y

If possible, it’s good to do this?

Depending on what you are trying to accomplish, you can either stack the commands LOGON Y and program B or search on the term steplib in the documentation.

If a steplib is configured, Natural will look for the object in the current library then run it in the next library if not found. When issuing an actual LOGON command, certain things happen such as resetting of independent variables.

http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat6313win/using/stu-libraries.htm