Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Historical/statistical details for me... elixir1986 TSO/ISPF 13 Wed Aug 30, 2017 9:02 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us