nearly_lunchtime
nearly_lunchtime

Reputation: 12923

How can I access the name of a current library in a CL program?

I need to use the current library name explicitly in a CL program.

CHGVAR &LIB *CURLIB

doesn't work (after this line &lib = '*curlib'). This should be simple - any ideas?

Upvotes: 2

Views: 1131

Answers (2)

David
David

Reputation: 33

Be aware that a given job may not have a current library. In which case &LIB will have a value of *NONE

Upvotes: 0

nearly_lunchtime
nearly_lunchtime

Reputation: 12923

Found it:

RTVJOBA CURLIB(&LIB)

Upvotes: 7

Related Questions