Using OCOPY in REXX gives return code -2.

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Post Reply
durga
Registered Member
Posts: 53
Joined: Mon Jul 01, 2013 3:28 pm

Using OCOPY in REXX gives return code -2.

Post by durga »

I'm trying to copy a load module from one library to another. For this I am using OCOPY in REXX. But OCOPY gives a return code -2. Code is something like this:

Code: Select all

   "ALLOC F(IN) DS('ORIGINAL.LOAD.PDS(MEMBER)') SHR" 
   "ALLOC F(OUT) DS('NEW.LOAD.PDS(MEMBER)') SHR" 
   "OCOPY INDD(IN) OUTDD(OUT) BINARY" 
Because I get a negative return code. I thought it can be an environmental error, but I can't find an explanation of -2 anywhere. Any pointers on what might be going on will be very helpful?

Thanks.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”