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

specify huge number of members in the select list of IEBCOPY


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sjothimani

New User


Joined: 04 Apr 2006
Posts: 10

PostPosted: Tue Apr 18, 2006 8:41 pm
Reply with quote

HI........

i was trying to copy a huge PDS to another using IEBCOPY with the selective copy option of IEBCOPY. I cant specify elements more than a line in the SELECT MEMBER feild. It says the following error,

IEB107I INVALID CONTINUATION
IEB118I CONTROL STATEMENT ERROR
IEB105I PARAMETER INVALID
IEB115I END OF FILE ON SYSIN
IEB151I JOB HAS TERMINATED WITH ERROR(S)

and my sysin card is

//SYSIN DD *
COPYOPER COPY OUTDD=OUT1
INDD=IN5
SELECT MEMBER=($AB,$CD,$EF,$GH,$IJ,
$KL,$LM)
/*

IN5 = specifies the input data set
OUT1 = specifies the output data set

I got a bigger list of members to be specified in the SELECT MEMBER option also I need it to be in a continous manner within a single SELECT MEMBER.

thanks
ram
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Apr 18, 2006 9:30 pm
Reply with quote

Make sure you are following the appropriate rules for continuation:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt1u104/3.5.2.2?SHELF=&DT=19990113105507&CASE=

Also, you can use one SELECT statement per member, if desired:

COPY OUTDD=OUT1,INDD=IN5
SELECT MEMBER=($AB)
SELECT MEMBER=($CD)
...
SELECT MEMBER=($ZZ)
Back to top
View user's profile Send private message
pspreddy

New User


Joined: 14 Mar 2006
Posts: 24
Location: Chicago

PostPosted: Thu Apr 20, 2006 1:32 am
Reply with quote

If you are trying to copy all the members, can't we use MEMBER=(*) in that case. You may want to try it

Thanks
Shiva
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Apr 22, 2006 6:50 am
Reply with quote

Hi Ram,

I use something like this. Just add members as needed:
Code:

//CMEM  JOB (PACE),'COPYMEM',MSGCLASS=X,CLASS=C,
//    NOTIFY=JSLEIG
//* ROUTE PRINT ACMC1
//*
//*********************************
//*
//***********************************
//STEPCPY  EXEC PGM=IEBCOPY,REGION=4M
//SYSUT2    DD DISP=SHR,DSN=&SYSUID..TEMP.JCL
//SYSUT1    DD DISP=SHR,DSN=AC.PROD.CNTL
//SYSPRINT  DD SYSOUT=*
//SYSIN     DD *
  COPY     INDD=SYSUT1,OUTDD=SYSUT2
  SELECT   MEMBER=AAA0101P,                X
                  TRX101DP,               X
                  TRX102DP,            X
                  TRX103DP,           X
                  TRX104DP 

The x must be in col 72. I forget if they have to continue in col 16. You could play is safe and use col 16 or you can experiment and try w/o 16.

You can also use ISPF 3.4 to create a list of members and use the SAVE cmd to create a dataset w/the member names; then edit it to look like the cntl cards shown.

Not sure of the syntax: SAVE your1-8chars or SAVE MEMBER your1-8chars. This produces a dataset containing the image of the screen contents. The DSN is yrTSOid.your1-8chars.MEMBER.

You can do the same with dataset lists, but use DATASET not MEMBER.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Increase the number of columns in the... IBM Tools 3
Search our Forums:

Back to Top