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
 

 

How to rename a set of files in one shot ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to rename a set of files in one shot ?
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: 8593
Location: Back in jolly old England

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

Read the IDCAMS manual - ALTER command
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Sep 02, 2008 7:55 pm    Post subject: Reply to: How to rename a set of files in one shot ?
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: 1187
Location: Bangalore,India

PostPosted: Tue Sep 02, 2008 8:02 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm


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