2

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?

Mike Wills
  • 20,959
  • 28
  • 93
  • 149
nearly_lunchtime
  • 12,203
  • 15
  • 37
  • 42

2 Answers2

7

Found it:

RTVJOBA CURLIB(&LIB)

nearly_lunchtime
  • 12,203
  • 15
  • 37
  • 42
0

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

David
  • 33
  • 4