Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

IEBCOPY using REXX..getting RC=04

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: IEBCOPY using REXX..getting RC=04
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

Moderator Team Head


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

PostPosted: Wed May 06, 2009 9:13 pm    Post subject: Reply to: IEBCOPY using REXX..getting RC=04
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu May 07, 2009 11:10 am    Post subject:
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: 1703
Location: Australia

PostPosted: Thu May 07, 2009 11:21 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu May 07, 2009 11:45 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri May 08, 2009 5:44 am    Post subject: Reply to: IEBCOPY using REXX..getting RC=04
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: 8593
Location: Back in jolly old England

PostPosted: Fri May 08, 2009 11:40 am    Post subject:
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

Site Director


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

PostPosted: Fri May 08, 2009 7:49 pm    Post subject: Reply to: IEBCOPY using REXX..getting RC=04
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us