MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Change the file name

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
kbn
Beginner


Joined: 14 Nov 2005
Posts: 13
Topics: 10

PostPosted: Mon Jun 29, 2009 1:07 am    Post subject: Change the file name Reply with quote

Hi,

Is it possible to change the DSNAME of the file by submitting a batch job?

For example DSNAME of the file FABC is A11.B22.C33. I want to change it to D44.E55.F66.



thanks,
kbn
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Jun 29, 2009 8:13 am    Post subject: Reply with quote

Check out the ALTER option of pgm IDCAMS or the RENAME option of IEHPROGM.

Use caution when changing the HLQ as the entry may not be in the same USERCAT pointed to by ALIAS D44.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Jun 29, 2009 10:23 am    Post subject: Reply with quote

kbn,

Please search before posting. Check these links

http://www.mvsforums.com/helpboards/viewtopic.php?t=9131&highlight=rename+idcams

http://www.mvsforums.com/helpboards/viewtopic.php?t=3183&highlight=adrdssu

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Mon Jun 29, 2009 10:27 am    Post subject: Reply with quote

since this is in the CICS forum, I assumed that he wanted to make a change to the FCT.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Jun 29, 2009 11:08 am    Post subject: Reply with quote

dbzTHEdinosauer,

If it is indeed FCT entries then he need to use DFHCSDUP program to update the FCT entries.


Code:

//STEP0100 EXEC PGM=DFHCSDUP,REGION=1M           
//STEPLIB  DD DSN=Your CICS.SDFHLOAD,DISP=SHR   
//DFHCSD   DD DSN=YOUR.DFHCSD,DISP=SHR           
//SYSUT1   DD UNIT=SYSDA,SPACE=(1024,(100,100)) 
//SYSPRINT DD SYSOUT=*                           
//SYSIN DD *                                     
  ALTER FILE(FILENAME) DSNAME(DATASET NAME)     
/*


Filename is the 8 character name that is defined in FCT.

Learn more about DFHCSDUP here

http://publib.boulder.ibm.com/infocenter/cicsts/v2r2/index.jsp?topic=/com.ibm.cics.ts22.doc/dfha6/dfha62l.htm
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group