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

help needed for copying selective members


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

New User


Joined: 25 Jun 2008
Posts: 60
Location: chennai

PostPosted: Mon Sep 08, 2008 8:43 am
Reply with quote

Hi,

I am copying selective members from a pds to make a rexx backup tool.

I am using iebcopy utility.

COPYMODULE:
ARG INDD,OUTDD,R
CTLCARD.1 = ' COPY OUTDD=SYSUT2,INDD=SYSUT1 SELECT MEMBER=((ARRAY))'
"DELETE '"USERID()".CTLTEMP'"
"ALLOCATE DA('"USERID()".CTLTEMP') FI(CTLCRD) NEW REUSE ",
"SPACE(1 0) TRACKS NEW BLKSIZE(80) RECFM(F,B) LRECL(80)"
"EXECIO 1 DISKW CTLCRD(STEM CTLCARD. FINIS"
"FREE FILE(CTLCRD)"
"ALLOCATE DA('"USERID()".TEMP') FI(SYSPRINT) NEW DELETE REUSE"
"ALLOC FILE(SYSIN) DA('"USERID()".CTLTEMP') SHR REUSE"
IF I <> 0 THEN
"CALL 'SYS1.LINKLIB(IEBCOPY)' ',REGION=1024K'"
"FREE ALL"
TRACE OFF
RETURN

the code used is this . but it is copying the whole of the pds not selecting the particular member.
Can anybody help????????????
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Sep 08, 2008 12:56 pm
Reply with quote

Hi,

I can't help much with REXX but can help with IEBCOPY. You might like to check the below link for IEBCOPY to copy selected member & then appropriate changes in REXX/CLSIT can follow -

ibmmainframes.com/about10496.html

Please use BBcode when You post some code, that's rather readable.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Mon Sep 08, 2008 6:06 pm
Reply with quote

I have this feeling that SELECT MEMBER should be on a different line by itself. I'll have to run a little test and see ...
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Sep 08, 2008 6:42 pm
Reply with quote

Yes, each member should have its own line
Code:

  S M=member   
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Sep 09, 2008 4:09 am
Reply with quote

Hi Expat,

you can code multiple members per line



Code:
  SELECT MEMBER=(A,AA,AAA,AAAAA)     
  SELECT MEMBER=(AAAA)               



Gerry
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 Duplicate several members of/in one l... JCL & VSAM 7
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts Help needed to assemble IMS sample co... ABENDS & Debugging 4
No new posts list pds members name starting with xyz CLIST & REXX 11
Search our Forums:

Back to Top