My actual problem is, Iam invoking a Rexx exec thru another Rexx.
Rexx1 --> Executes Rexx 2 . In rexx2 iam allocating a lib to sysexec and now it is allocated.
When iam trying to execute again the Rexx1--> executes rexx2 .. here the problem occurs .. it is again trying to allocate one more .. time ...As the lib was already allocated ,it fails to allocate again. I tried Free that dataset before it allocates . but it says it was open unable to unallocate the dataset . Is there any way to handle the open dataset and to by pass this particular allocation when it is trying to allocates for the second time