View previous topic :: View next topic
|
Author |
Message |
yianis
New User
Joined: 14 Aug 2006 Posts: 45
|
|
|
|
I have a dataset with 100's of members in it.
Code: |
BROWSE ABC.XXX.SYSIN Row 00001 of 00621
Command ===> Scroll ===> CSR
Name Prompt Size Created Changed ID
_________ ALB001
_________ ALB002
_________ ALB031
_________ ALB032
_________ ALB033
_________ ALB034
_________ ALB035
_________ ALB041
_________ ALB078
_________ ALB079
_________ ALB107
_________ BRI031
_________ BRI032
_________ BRI033
_________ BRI034
_________ BRI035
_________ BRI041
_________ BRI078
_________ BRI107
etc..
|
What i want to do is create a jcl job to copy ALB*** to a single dataset XXX.XXX.ALB
and BRI*** to another dataset XXX.XXX.BRI and so on.
So, is there something that you can use a wildcard to do this? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
If you want to do it using JCL, my recommendation will me REXX with the ISPF service LMMCOPY.
If you want to do it in forground, you can either use the SELECT command from the member list panel, or use screen 3.3.
O. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
here is a FILEAID if you have it that will do the trick.
Gerry
Code: |
//FILEAID EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=*
//DD01 DD DSN=INPUT PDS
//TOALBPDS DD DSN=OUTPUT PDS
//TOBRIPDS DD DSN=OUTPUT PDS
//SYSIN DD *
$$DD01 USER MEMBERS=ALB,WRITE=TOALBPDS
$$DD01 USER MEMBERS=BRI,WRITE=TOBRIPDS
//*
//********************************************************************** |
|
|
Back to top |
|
|
|