Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 6968
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us