Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Copy members to a Dataset using a wildcard

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Copy members to a Dataset using a wildcard
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: 2360
Location: Israel

PostPosted: Thu Nov 22, 2007 9:48 pm    Post subject:
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: 1703
Location: Australia

PostPosted: Fri Nov 23, 2007 5:25 am    Post subject: Reply to: Copy members to a Dataset using a wildcard
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us