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

How to rename a set of files in one shot ?


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

New User


Joined: 26 Aug 2005
Posts: 33
Location: bangalore

PostPosted: Tue Sep 02, 2008 7:44 pm
Reply with quote

How to rename a set of files in one shot ?


Rahman
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Sep 02, 2008 7:50 pm
Reply with quote

Read the IDCAMS manual - ALTER command
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 Sep 02, 2008 7:55 pm
Reply with quote

Read the TSO manual, or online help, for the RENAME command.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Sep 02, 2008 8:02 pm
Reply with quote

Hello Rahman,

You can use idcams /Dfsort for this

Idcams JOb

Code:
//STEP030  EXEC PGM=IDCAMS                   
//SYSUDUMP DD SYSOUT=Z                       
//SYSPRINT DD SYSOUT=*                       
//SYSIN    DD *                               
  SET MAXCC=0                                 
    ALTER   A40661.£K.DB2.CNTL            -   
    NEWNAME(A40661.DB2.CNTL        )         
    ALTER   A40661.£K.DB2.JCLLIB           - 
    NEWNAME(A40661.DB2.JCLLIB      )         


Dfsort job
Code:
//FILTER3  EXEC PGM=ICETOOL                                           
//TOOLMSG  DD SYSOUT=*                                               
//DFSMSG   DD SYSOUT=*                                               
//IN1      DD DSN=A40661.£K.DB2.CNTL ,DISP=SHR
//IN2      DD DSN=A40661.£K.DB2.JCLLIB,DISP=SHR
//OUT1     DD DSN=A40661.DB2.CNTL ,         
//         DISP=SHR                                                   
//OUT2     DD DSN=A40661.DB2.JCLLIB , DISP=SHR 
//TOOLIN   DD *                     
 COPY FROM(IN1) TO(OUT1) USING(CTL1)
 COPY FROM(IN2) TO(OUT2) USING(CTL1)
//CTL1CNTL DD *   
  SORT FIELDS=COPY
/* 


hope it helps
Back to top
View user's profile Send private message
mijanurit
Currently Banned

New User


Joined: 26 Aug 2005
Posts: 33
Location: bangalore

PostPosted: Tue Sep 02, 2008 8:16 pm
Reply with quote

thank you all .. thanka so much

Regards
Rahman
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top