IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

IEBCOPY using REXX..getting RC=04


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
frudo

New User


Joined: 16 Aug 2005
Posts: 5

PostPosted: Wed May 06, 2009 9:07 pm
Reply with quote

Hi,
I am trying to copy a selected member from one PDS to another using IEBCOPY in REXX. I am getting a return code of 4. I am not sure what I am doing wrong. Can someone please assist me with this. The following is my code,
Code:

/***REXX****/
"ALLOC F(SYSUT1) DS('"TEST.FIRST.PDS"')   
 SHR REUSE"                                         
"ALLOC F(SYSUT2) DS('"TEST.SECOND.PDS"')           
 SHR REUSE"                                         
"ALLOC F(SYSPRINT) SYSOUT REUSE"                   
"ALLOC F(SYSIN) UNIT(SYSDA) SPACE(1 1) TRACKS REUSE"
SYSIN.0 = 2                                         
SYSIN.1 = "  C I=SYSUT1,O=SYSUT2"         
SYSIN.2 = "  SELECT MEMBER=WORD1"         
"EXECIO * DISKW SYSIN (FINIS STEM SYSIN."
DROP SYSIN.                             
"CALL *(IEBCOPY)"
SAY 'COPY RETURN CODE = 'RC             
"FREE F(SYSUT1 SYSUT2 SYSPRINT SYSIN)"
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed May 06, 2009 9:13 pm
Reply with quote

How about posting the SYSPRINT output for starters?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed May 06, 2009 9:15 pm
Reply with quote

Does WORD1 already exist in the destination PDS?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu May 07, 2009 11:10 am
Reply with quote

Without the SYSPRINT information all we can do is guess.
Psychic day is Friday this week, so post today and get answered early.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu May 07, 2009 11:21 am
Reply with quote

Hi,

This is my psychic day, icon_lol.gif member WORD1 does not exist in the input PDS.


Gerry
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu May 07, 2009 11:45 am
Reply with quote

Ladeeeeeeeeeeez and Gentlemen

IBM mainframes have the greatest of pleasure in presenting the Great Geraldo, Thursday psychic in all matters mystical and IEBCOPY return codes.

drum roll .............. applause ...................
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Fri May 08, 2009 4:52 am
Reply with quote

Since Fridays are psychic days, positioning yourself on the correct side of the International Date Line will get you an answer ahead of time. Likewise, positioning yourself on the wrong side of it, will get you no answer at all. icon_lol.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri May 08, 2009 5:44 am
Reply with quote

And once again, we seem to have lost the TS. . .

Answers to questions - nope.

Requested info provided - nope.

Update on status - nope.

And we even had some of our psychics on the case - - - bummer icon_neutral.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri May 08, 2009 11:40 am
Reply with quote

Dick,

Was that a typo ?

Did you mean psychics or psychos icon_lol.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri May 08, 2009 7:49 pm
Reply with quote

Yes. . .
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Mon May 11, 2009 12:47 pm
Reply with quote

Maybe TS has no sense of humor? You need one to work in IT. icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top