Page 3 of 3

Re: LMINIT is not being recognized

PostPosted: Thu Feb 07, 2013 1:56 pm
by Stefan
Looking at your error message
ISPF service call not allowed during exit invocation
it seems that your REXX code runs imbedded in an ISPF panel.

If this is the case, be aware of the fact that you are not allowed to use ISPF services within REXX code imbedded in an ISPF panel.

[Edited] I've posted my answer before reading page 2 of the post where the problem has already been solved by Pedro and explained by Akatsukami.
Hope you don't mind. ;)

Re: LMINIT is not being recognized

PostPosted: Thu Feb 07, 2013 2:54 pm
by nikesh_rai
Thanks Stefan, Pedro, Akatsukami and Enrico,

I understood where is the problem with my code. I used the REXX to be called from a panel and it is creating the problem. however I have checked with what Pedro and Akatsukami told me ( calling Panel from REXX, end the panel, then call REXX for copying PDS member ) and its working fine. but what so ever, my requirement was copying a single PDS member to another PDS with the same name each time and SMCOPY is working fine for it.

Re: LMINIT is not being recognized

PostPosted: Thu Feb 07, 2013 3:22 pm
by enrico-sorichetti
SMCOPY is working fine for it.
still using SMCOPY is a bad practice

but if You are happy we are happy, or better we do not care... GOOD LUCK

Re: LMINIT is not being recognized

PostPosted: Thu Feb 07, 2013 9:56 pm
by Pedro
still using SMCOPY is a bad practice


You can also call IEBCOPY from rexx.

Re: LMINIT is not being recognized

PostPosted: Thu Feb 07, 2013 10:06 pm
by prino
This thread seems to be well past its "sell-by" date...