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

Copy members to a Dataset using a wildcard


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
yianis

New User


Joined: 14 Aug 2006
Posts: 45

PostPosted: Thu Nov 22, 2007 6:26 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Nov 22, 2007 9:48 pm
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Nov 23, 2007 5:25 am
Reply with quote

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
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top